函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:include\linux\filter.h Create Date:2022-07-27 07:05:37
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:xdp_ok_fwd_dev

函数原型:static inline int xdp_ok_fwd_dev(const struct net_device *fwd, unsigned int pktlen)

返回类型:int

参数:

类型参数名称
const struct net_device *fwd
unsigned intpktlen
902  如果此条件成立可能性小(为编译器优化)(!(flags & sysfs ))则返回:负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_lenThe additional bytes required by VLAN* (in addition to the Ethernet header)
906  如果pktlen大于len则返回:负EMSGSIZE
909  返回:0
调用者
名称描述
dev_map_enqueue
dev_map_generic_redirect