diff options
author | Simon Horman <horms@verge.net.au> | 2014-01-15 17:17:02 +0900 |
---|---|---|
committer | Ben Pfaff <blp@nicira.com> | 2014-01-16 15:09:14 -0800 |
commit | b73c85181df9cc38231a42d6f8095dcb604d230a (patch) | |
tree | 7c3d4f9363ad681e7f001e008cf71a2e661d5725 /include | |
parent | 1bf02876a46e3e86a59f959fdac57db7f6b0a4ad (diff) | |
download | openvswitch-b73c85181df9cc38231a42d6f8095dcb604d230a.tar.gz |
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 <horms@verge.net.au>
Co-authored-by: Ben Pfaff <blp@nicira.com>
Signed-off-by: Ben Pfaff <blp@nicira.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/sparse/sys/socket.h | 1 |
1 files changed, 1 insertions, 0 deletions
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 }; |