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

2014-01-08 Thread Ben Pfaff
It's orthogonal I think. On Wed, Jan 08, 2014 at 11:44:43AM +0200, Philip Roth wrote: > this could also be used for 802.1AD right? > > > On Tue, Jan 7, 2014 at 7:33 AM, Simon Horman wrote: > > > If VLAN acceleration is used when the kernel receives a packet > > then the outer-most VLAN tag wil

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

2014-01-08 Thread Philip Roth
this could also be used for 802.1AD right? On Tue, Jan 7, 2014 at 7:33 AM, 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

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

2014-01-07 Thread Simon Horman
On Tue, Jan 07, 2014 at 05:09:38PM -0800, Ben Pfaff wrote: > On Tue, Jan 07, 2014 at 02:33:40PM +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 v4 4/4] netdev-linux: Read packet auxdata to obtain vlan_tid

2014-01-07 Thread Ben Pfaff
On Tue, Jan 07, 2014 at 02:33:40PM +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 v4 4/4] netdev-linux: Read packet auxdata to obtain vlan_tid

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