ixgbe: fix packet type from vector Rx
authorKonstantin Ananyev <konstantin.ananyev@intel.com>
Tue, 22 Mar 2016 14:30:17 +0000 (14:30 +0000)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Fri, 25 Mar 2016 18:03:28 +0000 (19:03 +0100)
commitd9a2009a81089093645fea2e04b51dd37edf3e6f
treee3b0a7ee51ececb1b375d5f94f3c5ca7164fe3c7
parent7b06615392290705bd662c2ad71d397b519346e1
ixgbe: fix packet type from vector Rx

Current vector RX can't always set the packet_type properly.
To be more specific:
a) it never sets RTE_PTYPE_L2_ETHER
b) it doesn't handle tunnel ipv4/ipv6 case correctly.
c) it doesn't check is IXGBE_RXDADV_PKTTYPE_ETQF set or not.
While a) is pretty easy to fix, b) and c) are not that straightforward
in terms of SIMD ops (specially b).
So far I wasn't able to make vRX support packet_type properly without
noticeable performance loss.
So for now, just remove that functionality from vector RX and
update dev_supported_ptypes_get().

Fixes: 396254175854 ("mbuf: redefine packet type")

Signed-off-by: Konstantin Ananyev <konstantin.ananyev@intel.com>
Acked-by: Cunming Liang <cunming.liang@intel.com>
drivers/net/ixgbe/ixgbe_ethdev.c
drivers/net/ixgbe/ixgbe_rxtx_vec.c