函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:dev_map_generic_redirect

函数原型:int dev_map_generic_redirect(struct bpf_dtab_netdev *dst, struct sk_buff *skb, struct bpf_prog *xdp_prog)

返回类型:int

参数:

类型参数名称
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  如果此条件成立可能性小(为编译器优化)(err)则返回:err
490  dev等于 must be first member, due to tracepoint
491  generic_xdp_tx(skb, xdp_prog)
493  返回:0