Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:cpu_map_enqueue

Proto:int cpu_map_enqueue(struct bpf_cpu_map_entry *rcpu, struct xdp_buff *xdp, struct net_device *dev_rx)

Type:int

Parameter:

TypeParameterName
struct bpf_cpu_map_entry *rcpu
struct xdp_buff *xdp
struct net_device *dev_rx
673  xdpf = Convert xdp_buff to xdp_frame
674  If Value for the false possibility is greater at compile time(!xdpf) Then Return -EOVERFLOW
678  used by cpumap = dev_rx
680  Runs under RCU-read-side, plus in softirq under NAPI protection.* Thus, safe percpu variable access.
681  Return 0