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

2014-01-16 Thread Simon Horman
On Thu, Jan 16, 2014 at 03:09:04PM -0800, Ben Pfaff wrote: > On Wed, Jan 15, 2014 at 05:17:02PM +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 v5 3/3] netdev-linux: Read packet auxdata to obtain vlan_tid

2014-01-16 Thread Ben Pfaff
On Wed, Jan 15, 2014 at 05:17:02PM +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 v5 3/3] netdev-linux: Read packet auxdata to obtain vlan_tid

2014-01-15 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