Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\bpf\cpumap.c Create Date:2022-07-28 13:24:09
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_cpu_map_entry *rcpu, struct xdp_frame *xdpf)

Type:int

Parameter:

TypeParameterName
struct bpf_cpu_map_entry *rcpu
struct xdp_frame *xdpf
645  flush_list = this_cpu_ptr(flush_list)
646  bq = this_cpu_ptr( XDP can run multiple RX-ring queues, need __percpu enqueue store )
648  If Value for the false possibility is greater at compile time(count == 8 == one cacheline on 64-bit archs ) Then bq_flush_to_queue(bq, true)
660  q[count++] = xdpf
662  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.
665  Return 0
Caller
NameDescribe
cpu_map_enqueue