Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\bpf\devmap.c Create Date:2022-07-28 13:22:15
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:dev_map_enqueue

Proto:int dev_map_enqueue(struct bpf_dtab_netdev *dst, struct xdp_buff *xdp, struct net_device *dev_rx)

Type:int

Parameter:

TypeParameterName
struct bpf_dtab_netdev *dst
struct xdp_buff *xdp
struct net_device *dev_rx
464  dev = must be first member, due to tracepoint
468  If Not ndo_xdp_xmit Then Return -EOPNOTSUPP
471  err = xdp_ok_fwd_dev(dev, data_end - data)
472  If Value for the false possibility is greater at compile time(err) Then Return err
475  xdpf = Convert xdp_buff to xdp_frame
476  If Value for the false possibility is greater at compile time(!xdpf) Then Return -EOVERFLOW
479  Return Runs under RCU-read-side, plus in softirq under NAPI protection.* Thus, safe percpu variable access.