Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:Runs under RCU-read-side, plus in softirq under NAPI protection.* Thus, safe percpu variable access.

Proto:static int bq_enqueue(struct bpf_dtab_netdev *obj, struct xdp_frame *xdpf, struct net_device *dev_rx)

Type:int

Parameter:

TypeParameterName
struct bpf_dtab_netdev *obj
struct xdp_frame *xdpf
struct net_device *dev_rx
440  flush_list = this_cpu_ptr(flush_list)
441  bq = this_cpu_ptr(bulkq)
443  If Value for the false possibility is greater at compile time(count == DEV_MAP_BULK_SIZE) Then bq_xmit_all(bq, 0, true)
450  If Not dev_rx Then dev_rx = dev_rx
453  q[count++] = xdpf
455  If Not prev Then list_add - add a new entry*@new: new entry to be added*@head: list head to add it after* Insert a new entry after the specified head.* This is good for implementing stacks.
458  Return 0
Caller
NameDescribe
dev_map_enqueue