函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:dev_map_enqueue

函数原型:int dev_map_enqueue(struct bpf_dtab_netdev *dst, struct xdp_buff *xdp, struct net_device *dev_rx)

返回类型:int

参数:

类型参数名称
struct bpf_dtab_netdev *dst
struct xdp_buff *xdp
struct net_device *dev_rx
464  dev等于 must be first member, due to tracepoint
468  如果非ndo_xdp_xmit则返回:负EOPNOTSUPP
471  err等于xdp_ok_fwd_dev(dev, data_end - data)
472  如果此条件成立可能性小(为编译器优化)(err)则返回:err
475  xdpf等于Convert xdp_buff to xdp_frame
476  如果此条件成立可能性小(为编译器优化)(!xdpf)则返回:负EOVERFLOW
479  返回:Runs under RCU-read-side, plus in softirq under NAPI protection.* Thus, safe percpu variable access.