函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\bpf\devmap.c Create Date:2022-07-27 14:39:58
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_dtab_netdev *obj, struct xdp_frame *xdpf, struct net_device *dev_rx)

返回类型:int

参数:

类型参数名称
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  如果此条件成立可能性小(为编译器优化)(count == DEV_MAP_BULK_SIZE)则bq_xmit_all(bq, 0, true)
450  如果非dev_rxdev_rx等于dev_rx
453  q[count++]等于xdpf
455  如果非链表前项添加链表项
458  返回:0
调用者
名称描述
dev_map_enqueue