Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:vlan_features_check - drop unsafe features for skb with multiple tags.*@skb: skbuff to query*@features: features to be checked* Returns features without unsafe ones if the skb has multiple tags.

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

Type:netdev_features_t

Parameter:

TypeParameterName
struct sk_buff *skb
netdev_features_tfeatures
718  If skb_vlan_tagged_multi - check if skb is vlan tagged with multiple headers.*@skb: skbuff to query* Returns true if the skb is tagged with multiple vlan headers, regardless* of whether it is hardware accelerated or not. Then
724  features &= NETIF_F_SG | NETIF_F_HIGHDMA | NETIF_F_HW_CSUM | NETIF_F_FRAGLIST | NETIF_F_HW_VLAN_CTAG_TX | NETIF_F_HW_VLAN_STAG_TX
729  Return features