Re: [ovs-dev] [PATCH RFC] netdev-linux: Read packet auxdata to obtain vlan_tid

2013-12-11 Thread Simon Horman
On Wed, Dec 11, 2013 at 09:31:49AM -0800, Ben Pfaff wrote: > On Wed, Dec 11, 2013 at 11:24:14AM +0900, Simon Horman wrote: > > 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. R

Re: [ovs-dev] [PATCH RFC] netdev-linux: Read packet auxdata to obtain vlan_tid

2013-12-11 Thread Ben Pfaff
On Wed, Dec 11, 2013 at 11:24:14AM +0900, Simon Horman wrote: > 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 recvms

[ovs-dev] [PATCH RFC] netdev-linux: Read packet auxdata to obtain vlan_tid

2013-12-10 Thread Simon Horman
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