Lines Matching refs:vlan_tci
86 #define skb_vlan_tag_get(__skb) ((__skb)->vlan_tci)
87 #define skb_vlan_tag_get_id(__skb) ((__skb)->vlan_tci & VLAN_VID_MASK)
88 #define skb_vlan_tag_get_cfi(__skb) (!!((__skb)->vlan_tci & VLAN_CFI_MASK))
89 #define skb_vlan_tag_get_prio(__skb) (((__skb)->vlan_tci & VLAN_PRIO_MASK) >> VLAN_PRIO_SHIFT)
335 * @vlan_tci: VLAN TCI to insert
344 __be16 vlan_proto, u16 vlan_tci,
375 veth->h_vlan_TCI = htons(vlan_tci);
384 * @vlan_tci: VLAN TCI to insert
392 __be16 vlan_proto, u16 vlan_tci)
394 return __vlan_insert_inner_tag(skb, vlan_proto, vlan_tci, ETH_HLEN);
401 * @vlan_tci: VLAN TCI to insert
414 u16 vlan_tci,
419 err = __vlan_insert_inner_tag(skb, vlan_proto, vlan_tci, mac_len);
431 * @vlan_tci: VLAN TCI to insert
442 __be16 vlan_proto, u16 vlan_tci)
444 return vlan_insert_inner_tag(skb, vlan_proto, vlan_tci, ETH_HLEN);
451 * @vlan_tci: VLAN TCI to insert
461 u16 vlan_tci)
463 skb = vlan_insert_tag(skb, vlan_proto, vlan_tci);
491 dst->vlan_tci = src->vlan_tci;
498 * Pushes the VLAN tag from @skb->vlan_tci inside to the payload.
516 * @vlan_tci: VLAN TCI to insert
518 * Puts the VLAN TCI in @skb->vlan_tci and lets the device do the rest
521 __be16 vlan_proto, u16 vlan_tci)
524 skb->vlan_tci = vlan_tci;
531 * @vlan_tci: buffer to store value
535 static inline int __vlan_get_tag(const struct sk_buff *skb, u16 *vlan_tci)
542 *vlan_tci = ntohs(veth->h_vlan_TCI);
549 * @vlan_tci: buffer to store value
551 * Returns error if @skb->vlan_tci is not set correctly
554 u16 *vlan_tci)
557 *vlan_tci = skb_vlan_tag_get(skb);
560 *vlan_tci = 0;
568 * @vlan_tci: buffer to store value
572 static inline int vlan_get_tag(const struct sk_buff *skb, u16 *vlan_tci)
575 return __vlan_hwaccel_get_tag(skb, vlan_tci);
577 return __vlan_get_tag(skb, vlan_tci);