From b73c85181df9cc38231a42d6f8095dcb604d230a Mon Sep 17 00:00:00 2001 From: Simon Horman Date: Wed, 15 Jan 2014 17:17:02 +0900 Subject: netdev-linux: Read packet auxdata to obtain vlan_tid If VLAN acceleration is used when the kernel receives a packet then the outer-most VLAN tag will not be present in the packet when it is received by netdev-linux. Rather, it will be present in auxdata. This patch uses recvmsg() instead of recv() to read auxdata for each packet and if the vlan_tid is set then it is added to the packet. Adding the vlan_tid makes use of headroom available in the buffer parameter of rx_recv. Signed-off-by: Simon Horman Co-authored-by: Ben Pfaff Signed-off-by: Ben Pfaff --- include/sparse/sys/socket.h | 1 + 1 file changed, 1 insertion(+) (limited to 'include') diff --git a/include/sparse/sys/socket.h b/include/sparse/sys/socket.h index 75ee43c6c..3212bf4b7 100644 --- a/include/sparse/sys/socket.h +++ b/include/sparse/sys/socket.h @@ -87,6 +87,7 @@ enum { }; enum { + SOL_PACKET, SOL_SOCKET }; -- cgit v1.2.1