: Add vlan tag into PACKET_AUXDATA
Subsystems (3)
PATCH 2/5 : Add vlan tag into PACKET_AUXDATA
The hardware vlan acceleration feature of netdev strips vlan tag. This patch put the tag into auxdata if it was stripped. Since the skb->cb has no additional room for the tag, this patch eliminates sll_family from the skb->cb which is AF_PACKET always.
Signed-off-by Joonwoo Park <[email protected]>
--- include/linux/if_packet.h | 1 + net/packet/af_packet.c | 78 +++++++++++++++++++++++++++++++++++---------- 2 files changed, 62 insertions(+), 17 deletions(-)
include/linux/if_packet.h +1 -0
@@ -57,6 +57,7 @@ struct tpacket_auxdata__u32 tp_snaplen;__u16 tp_mac;__u16 tp_net; +__u16 tp_vlan_TCI; };struct tpacket_hdr
net/packet/af_packet.c +61 -17
151 lines not on this page · raw message
Signature · 1 line
1.5.4.3