Stephen Hemminger 4339de851e net/bnxt: fix Rx VLAN offload flags
The bnxt driver is not correctly setting the receive VLAN offload
flags.  When VLAN is offloaded the driver must set the
PKT_RX_VLAN_STRIPPED flag.

Actually, several drivers have the same bug, only most of the
Intel drivers look right. Any driver that sets vlan_tci is probably
stripping the tag, and should be setting RX_VLAN_STRIPPED.

To quote rte_mbuf.h:

/**
 * The RX packet is a 802.1q VLAN packet, and the tci has been
 * saved in in mbuf->vlan_tci.
 * If the flag PKT_RX_VLAN_STRIPPED is also present, the VLAN
 * header has been stripped from mbuf data, else it is still
 * present.
 */

Fixes: 2eb53b134aae ("net/bnxt: add initial Rx code")
Cc: stable@dpdk.org

Signed-off-by: Stephen Hemminger <sthemmin@microsoft.com>
Acked-by: Ajit Khaparde <ajit.khaparde@broadcom.com>
2019-03-29 17:25:32 +01:00
..
2018-10-11 18:53:48 +02:00
2018-07-03 01:35:58 +02:00
2019-03-20 18:15:42 +01:00
2019-03-29 17:25:32 +01:00
2018-07-03 01:35:58 +02:00
2018-07-03 01:35:58 +02:00
2018-07-03 01:35:58 +02:00
2018-07-03 01:35:58 +02:00