Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:include\linux\filter.h Create Date:2022-07-28 06:07:50
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:xdp_ok_fwd_dev

Proto:static inline int xdp_ok_fwd_dev(const struct net_device *fwd, unsigned int pktlen)

Type:int

Parameter:

TypeParameterName
const struct net_device *fwd
unsigned intpktlen
902  If Value for the false possibility is greater at compile time(!(flags & sysfs )) Then Return -ENETDOWN
905  len = Note : dev->mtu is often read without holding a lock.* Writers usually hold RTNL.* It is recommended to use READ_ONCE() to annotate the reads,* and to use WRITE_ONCE() to annotate the writes. + hard_header_len + The additional bytes required by VLAN* (in addition to the Ethernet header)
906  If pktlen > len Then Return -EMSGSIZE
909  Return 0
Caller
NameDescribe
dev_map_enqueue
dev_map_generic_redirect