Lines Matching refs:vlan_tci

88 #define skb_vlan_tag_get(__skb)		((__skb)->vlan_tci)
89 #define skb_vlan_tag_get_id(__skb) ((__skb)->vlan_tci & VLAN_VID_MASK)
90 #define skb_vlan_tag_get_cfi(__skb) (!!((__skb)->vlan_tci & VLAN_CFI_MASK))
91 #define skb_vlan_tag_get_prio(__skb) (((__skb)->vlan_tci & VLAN_PRIO_MASK) >> VLAN_PRIO_SHIFT)
340 * @vlan_tci: VLAN TCI to insert
349 __be16 vlan_proto, u16 vlan_tci,
381 veth->h_vlan_TCI = htons(vlan_tci);
390 * @vlan_tci: VLAN TCI to insert
398 __be16 vlan_proto, u16 vlan_tci)
400 return __vlan_insert_inner_tag(skb, vlan_proto, vlan_tci, ETH_HLEN);
407 * @vlan_tci: VLAN TCI to insert
420 u16 vlan_tci,
425 err = __vlan_insert_inner_tag(skb, vlan_proto, vlan_tci, mac_len);
437 * @vlan_tci: VLAN TCI to insert
448 __be16 vlan_proto, u16 vlan_tci)
450 return vlan_insert_inner_tag(skb, vlan_proto, vlan_tci, ETH_HLEN);
457 * @vlan_tci: VLAN TCI to insert
467 u16 vlan_tci)
469 skb = vlan_insert_tag(skb, vlan_proto, vlan_tci);
502 * Pushes the VLAN tag from @skb->vlan_tci inside to the payload.
520 * @vlan_tci: VLAN TCI to insert
522 * Puts the VLAN TCI in @skb->vlan_tci and lets the device do the rest
525 __be16 vlan_proto, u16 vlan_tci)
528 skb->vlan_tci = vlan_tci;
534 * @vlan_tci: buffer to store value
538 static inline int __vlan_get_tag(const struct sk_buff *skb, u16 *vlan_tci)
545 *vlan_tci = ntohs(veth->h_vlan_TCI);
552 * @vlan_tci: buffer to store value
554 * Returns error if @skb->vlan_tci is not set correctly
557 u16 *vlan_tci)
560 *vlan_tci = skb_vlan_tag_get(skb);
563 *vlan_tci = 0;
571 * @vlan_tci: buffer to store value
575 static inline int vlan_get_tag(const struct sk_buff *skb, u16 *vlan_tci)
578 return __vlan_hwaccel_get_tag(skb, vlan_tci);
580 return __vlan_get_tag(skb, vlan_tci);
708 * @vlan_tci: buffer to store value
715 static inline void *vlan_remove_tag(struct sk_buff *skb, u16 *vlan_tci)
719 *vlan_tci = ntohs(vhdr->h_vlan_TCI);