summaryrefslogtreecommitdiff
path: root/drivers/net/mlx5/mlx5_trigger.c
diff options
context:
space:
mode:
authorRoger Melton <rmelton@cisco.com>2017-10-12 13:24:35 -0400
committerFerruh Yigit <ferruh.yigit@intel.com>2017-10-26 02:33:01 +0200
commit3ba62841c2ff2739b6cc34d29b6c6583ac872c93 (patch)
tree7df1b341a0e7c7634a364eab806c8d4baf77bddf /drivers/net/mlx5/mlx5_trigger.c
parentfb870be5a879c6617fecabf47873ae2b576e6e69 (diff)
downloaddpdk-3ba62841c2ff2739b6cc34d29b6c6583ac872c93.zip
dpdk-3ba62841c2ff2739b6cc34d29b6c6583ac872c93.tar.gz
dpdk-3ba62841c2ff2739b6cc34d29b6c6583ac872c93.tar.xz
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 (LB) 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 Melton <rmelton@cisco.com> Acked-by: Wenzhuo Lu <wenzhuo.lu@intel.com>
Diffstat (limited to 'drivers/net/mlx5/mlx5_trigger.c')
0 files changed, 0 insertions, 0 deletions