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

2013-12-12 Thread Simon Horman
On Thu, Dec 12, 2013 at 06:12:32PM -0800, Ben Pfaff wrote: > On Fri, Dec 13, 2013 at 09:44:06AM +0900, Simon Horman wrote: > > On Thu, Dec 12, 2013 at 09:56:18AM -0800, Ben Pfaff wrote: > > > On Thu, Dec 12, 2013 at 05:38:59PM +0900, Simon Horman wrote: > > > > If VLAN acceleration is used when the

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

2013-12-12 Thread Ben Pfaff
On Fri, Dec 13, 2013 at 09:44:06AM +0900, Simon Horman wrote: > On Thu, Dec 12, 2013 at 09:56:18AM -0800, Ben Pfaff wrote: > > On Thu, Dec 12, 2013 at 05:38:59PM +0900, Simon Horman wrote: > > > If VLAN acceleration is used when the kernel receives a packet > > > then the outer-most VLAN tag will n

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

2013-12-12 Thread Simon Horman
On Thu, Dec 12, 2013 at 09:56:18AM -0800, Ben Pfaff wrote: > On Thu, Dec 12, 2013 at 05:38:59PM +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 v2 2/2] netdev-linux: Read packet auxdata to obtain vlan_tid

2013-12-12 Thread Ben Pfaff
On Thu, Dec 12, 2013 at 05:38:59PM +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 v2 2/2] netdev-linux: Read packet auxdata to obtain vlan_tid

2013-12-12 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