Lines Matching full:vlan
3 * VLAN An implementation of 802.1Q VLAN tagging.
16 #define VLAN_HLEN 4 /* The additional bytes required by VLAN
28 #define VLAN_MAX_DEPTH 8 /* Max. number of nested VLAN tags parsed */
31 * struct vlan_hdr - vlan header
32 * @h_vlan_TCI: priority and VLAN ID
41 * struct vlan_ethhdr - vlan ethernet header (ethhdr + vlan_hdr)
45 * @h_vlan_TCI: priority and VLAN ID
66 #define VLAN_VID_MASK 0x0fff /* VLAN Identifier */
108 * struct vlan_pcpu_stats - VLAN percpu rx/tx stats
141 * struct vlan_priority_tci_mapping - vlan egress priority mappings
143 * @vlan_qos: vlan priority: (skb->priority << 13) & 0xE000
156 * struct vlan_dev_priv - VLAN private device data
161 * @vlan_proto: VLAN encapsulation protocol
162 * @vlan_id: VLAN identifier
206 * VLAN's TCI */ in vlan_dev_get_egress_qos_mask()
297 * eth_type_vlan - check for valid vlan ether type.
300 * Returns true if the ether type is a vlan ether type.
324 * __vlan_insert_inner_tag - inner VLAN tag inserting
326 * @vlan_proto: VLAN encapsulation protocol
327 * @vlan_tci: VLAN TCI to insert
328 * @mac_len: MAC header length including outer vlan headers
330 * Inserts the VLAN tag into @skb as part of the payload at offset mac_len
373 * __vlan_insert_tag - regular VLAN tag inserting
375 * @vlan_proto: VLAN encapsulation protocol
376 * @vlan_tci: VLAN TCI to insert
378 * Inserts the VLAN tag into @skb as part of the payload
390 * vlan_insert_inner_tag - inner VLAN tag inserting
392 * @vlan_proto: VLAN encapsulation protocol
393 * @vlan_tci: VLAN TCI to insert
394 * @mac_len: MAC header length including outer vlan headers
396 * Inserts the VLAN tag into @skb as part of the payload at offset mac_len
397 * Returns a VLAN tagged skb. If a new skb is created, @skb is freed.
420 * vlan_insert_tag - regular VLAN tag inserting
422 * @vlan_proto: VLAN encapsulation protocol
423 * @vlan_tci: VLAN TCI to insert
425 * Inserts the VLAN tag into @skb as part of the payload
426 * Returns a VLAN tagged skb. If a new skb is created, @skb is freed.
440 * vlan_insert_tag_set_proto - regular VLAN tag inserting
442 * @vlan_proto: VLAN encapsulation protocol
443 * @vlan_tci: VLAN TCI to insert
445 * Inserts the VLAN tag into @skb as part of the payload
446 * Returns a VLAN tagged skb. If a new skb is created, @skb is freed.
462 * __vlan_hwaccel_clear_tag - clear hardware accelerated VLAN info
465 * Clears the VLAN information from @skb
473 * __vlan_hwaccel_copy_tag - copy hardware accelerated VLAN info from another skb
477 * Copies VLAN information from @src to @dst (for branchless code)
487 * __vlan_hwaccel_push_inside - pushes vlan tag to the payload
490 * Pushes the VLAN tag from @skb->vlan_tci inside to the payload.
505 * __vlan_hwaccel_put_tag - hardware accelerated VLAN inserting
507 * @vlan_proto: VLAN encapsulation protocol
508 * @vlan_tci: VLAN TCI to insert
510 * Puts the VLAN TCI in @skb->vlan_tci and lets the device do the rest
521 * __vlan_get_tag - get the VLAN ID that is part of the payload
525 * Returns error if the skb is not of VLAN type
539 * __vlan_hwaccel_get_tag - get the VLAN ID that is in @skb->cb[]
558 * vlan_get_tag - get the VLAN ID from the skb
562 * Returns error if the skb is not VLAN tagged
576 * @type: first vlan protocol
577 * @depth: buffer to store length of eth and vlan tags in bytes
580 * vlan encapsulated (normal or hardware accelerated) or not.
622 * vlan encapsulated (normal or hardware accelerated) or not.
629 /* A getter for the SKB protocol field which will handle VLAN tags consistently
630 * whether VLAN acceleration is enabled or not.
635 /* VLAN acceleration strips the VLAN header from the skb and in skb_protocol()
650 * Was a VLAN packet, grab the encapsulated protocol, which the layer in vlan_set_encap_proto()
678 * skb_vlan_tagged - check if skb is vlan tagged.
694 * skb_vlan_tagged_multi - check if skb is vlan tagged with multiple headers.
697 * Returns true if the skb is tagged with multiple vlan headers, regardless
748 * compare_vlan_header - Compare two vlan headers
749 * @h1: Pointer to vlan header
750 * @h2: Pointer to vlan header
752 * Compare two vlan headers, returns 0 if equal.