Function report |
Source Code:kernel\bpf\devmap.c |
Create Date:2022-07-28 13:22:15 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:dev_map_enqueue
Proto:int dev_map_enqueue(struct bpf_dtab_netdev *dst, struct xdp_buff *xdp, struct net_device *dev_rx)
Type:int
Parameter:
Type | Parameter | Name |
---|---|---|
struct bpf_dtab_netdev * | dst | |
struct xdp_buff * | xdp | |
struct net_device * | dev_rx |
468 | If Not ndo_xdp_xmit Then Return -EOPNOTSUPP |
471 | err = xdp_ok_fwd_dev(dev, data_end - data) |
472 | If Value for the false possibility is greater at compile time(err) Then Return err |
476 | If Value for the false possibility is greater at compile time(!xdpf) Then Return -EOVERFLOW |
479 | Return Runs under RCU-read-side, plus in softirq under NAPI protection.* Thus, safe percpu variable access. |
Source code conversion tool public plug-in interface | X |
---|---|
Support c/c++/esqlc/java Oracle/Informix/Mysql Plug-in can realize: logical Report Code generation and batch code conversion |