Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\bpf\devmap.c Create Date:2022-07-28 13:22:16
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:dev_map_generic_redirect

Proto:int dev_map_generic_redirect(struct bpf_dtab_netdev *dst, struct sk_buff *skb, struct bpf_prog *xdp_prog)

Type:int

Parameter:

TypeParameterName
struct bpf_dtab_netdev *dst
struct sk_buff *skb
struct bpf_prog *xdp_prog
487  err = xdp_ok_fwd_dev( must be first member, due to tracepoint , len)
488  If Value for the false possibility is greater at compile time(err) Then Return err
490  dev = must be first member, due to tracepoint
491  generic_xdp_tx(skb, xdp_prog)
493  Return 0