Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:__bpf_offload_dev_match

Proto:static bool __bpf_offload_dev_match(struct bpf_prog *prog, struct net_device *netdev)

Type:bool

Parameter:

TypeParameterName
struct bpf_prog *prog
struct net_device *netdev
552  If Not bpf_prog_is_dev_bound( Auxiliary fields ) Then Return false
555  offload = offload
556  If Not offload Then Return false
558  If netdev == netdev Then Return true
561  ondev1 = bpf_offload_find_netdev(netdev)
562  ondev2 = bpf_offload_find_netdev(netdev)
564  Return ondev1 && ondev2 && offdev == offdev
Caller
NameDescribe
bpf_offload_dev_match
bpf_offload_prog_map_match