Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:skb_needs_linearize - check if we need to linearize a given skb* depending on the given device features.*@skb: socket buffer to check*@features: net device features* Returns true if either:* 1. skb has frag_list and the device doesn't support FRAGLIST, or

Proto:static inline bool skb_needs_linearize(struct sk_buff *skb, netdev_features_t features)

Type:bool

Parameter:

TypeParameterName
struct sk_buff *skb
netdev_features_tfeatures
3596  Return skb_is_nonlinear(skb) && ( skb_has_frag_list(skb) && Not (features & NETIF_F_FRAGLIST) || nr_frags && Not (features & NETIF_F_SG) )