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:19
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:vlan_get_tag - get the VLAN ID from the skb*@skb: skbuff to query*@vlan_tci: buffer to store value* Returns error if the skb is not VLAN tagged

Proto:static inline int vlan_get_tag(const struct sk_buff *skb, u16 *vlan_tci)

Type:int

Parameter:

TypeParameterName
const struct sk_buff *skb
u16 *vlan_tci
564  If features & NETIF_F_HW_VLAN_CTAG_TX Then
565  Return __vlan_hwaccel_get_tag - get the VLAN ID that is in @skb->cb[]*@skb: skbuff to query*@vlan_tci: buffer to store value* Returns error if @skb->vlan_tci is not set correctly
566  Else
567  Return __vlan_get_tag - get the VLAN ID that is part of the payload*@skb: skbuff to query*@vlan_tci: buffer to store value* Returns error if the skb is not of VLAN type