函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\bpf\cpumap.c Create Date:2022-07-27 14:42:09
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

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

函数原型:static int bq_enqueue(struct bpf_cpu_map_entry *rcpu, struct xdp_frame *xdpf)

返回类型:int

参数:

类型参数名称
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  如果此条件成立可能性小(为编译器优化)(count == 8 == one cacheline on 64-bit archs )则bq_flush_to_queue(bq, true)
660  q[count++]等于xdpf
662  如果非链表前项添加链表项
665  返回:0
调用者
名称描述
cpu_map_enqueue