[dpdk-dev] [PATCH v2] net/e1000: correct VLAN tag byte order for i35x LB packets

Lu, Wenzhuo wenzhuo.lu at intel.com
Mon Oct 16 02:43:54 CEST 2017


Hi,

> -----Original Message-----
> From: Roger B Melton [mailto:rmelton at cisco.com]
> Sent: Friday, October 13, 2017 1:25 AM
> To: Lu, Wenzhuo <wenzhuo.lu at intel.com>
> Cc: dev at dpdk.org; Roger B Melton <rmelton at cisco.com>
> Subject: [PATCH v2] net/e1000: correct VLAN tag byte order for i35x LB
> packets
> 
> When copying VLAN tags from the RX descriptor to the vlan_tci field in the
> mbuf header,  igb_rxtx.c:eth_igb_recv_pkts() and
> eth_igb_recv_scattered_pkts() both assume that the VLAN tag is always little
> endian.  While i350, i354 and /i350vf VLAN non-loopback packets are stored
> little endian, VLAN tags in loopback packets for those devices are big endian.
> 
> For i350, i354 and i350vf VLAN loopback packets, swap the tag when copying
> from the RX descriptor to the mbuf header.  This will ensure that the mbuf
> vlan_tci is always little endian.
> 
> Signed-off-by: Roger B Melton <rmelton at cisco.com>
Acked-by: Wenzhuo Lu <wenzhuo.lu at intel.com>


More information about the dev mailing list