packet: doc: add documentation for VLAN TPID delivery
Subsystems (3)
PATCH 1/1 packet: doc: add documentation for VLAN TPID delivery
Introduce TP_STATUS_VLAN_TPID_VALID bit into the documentation.
Signed-off-by Atzm Watanabe <[email protected]>
---
In the PACKET_MMAP, TP_STATUS_VLAN_VALID seems to be not available in the V1, so I moved it into the V2.
Documentation/networking/packet_mmap.txt | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-)
Documentation/networking/packet_mmap.txt +7 -2
@@ -517,8 +517,6 @@ where 'tpacket_version' can be TPACKET_V1 (default), TPACKET_V2, TPACKET_V3. TPACKET_V1: - Default if not otherwise specified by setsockopt(2) - RX_RING, TX_RING available - - VLAN metadata information available for packets - (TP_STATUS_VLAN_VALID) TPACKET_V1 --> TPACKET_V2: - Made 64 bit clean due to unsigned long usage in TPACKET_V1
@@ -526,6 +524,13 @@ TPACKET_V1 --> TPACKET_V2: userspace and the like - Timestamp resolution in nanoseconds instead of microseconds - RX_RING, TX_RING available + - VLAN metadata information available for packets + (TP_STATUS_VLAN_VALID, TP_STATUS_VLAN_TPID_VALID), + in the tpacket2_hdr structure: + - TP_STATUS_VLAN_VALID bit being set into the tp_status field indicates + that the tp_vlan_tci field has valid VLAN TCI value + - TP_STATUS_VLAN_TPID_VALID bit being set into the tp_status field + indicates that the tp_vlan_tpid field has valid VLAN TPID value - How to switch to TPACKET_V2: 1. Replace struct tpacket_hdr by struct tpacket2_hdr 2. Query header len and save
Signature · 1 line
1.8.1.5
Quoted 3 lines · Atzm Watanabe
Introduce
TP_STATUS_VLAN_TPID_VALIDbit into the documentation.Signed-off-by Atzm Watanabe <[email protected]>
Acked-by Daniel Borkmann <[email protected]>
Thanks !
Quoted 6 lines · Daniel Borkmann
Quoted 3 lines · Atzm Watanabe
Introduce
TP_STATUS_VLAN_TPID_VALIDbit into the documentation.Signed-off-by Atzm Watanabe <[email protected]>Acked-by Daniel Borkmann <[email protected]>
(Intended for net-next since the subject doesn't say it.)
Quoted 1 line
Thanks !
From: Atzm Watanabe <[email protected]>
Date: Fri, 20 Dec 2013 23:12:20 +0900
Quoted 3 lines
Introduce
TP_STATUS_VLAN_TPID_VALIDbit into the documentation.Signed-off-by Atzm Watanabe <[email protected]>
Applied, thanks.