numam-dpdk/drivers/net/bnxt
Olivier Matz d80016310b net/bnxt: fix packet type
The hw flags are not read correctly: the defines
RX_PKT_CMPL_FLAGS_ITYPE_* are not bits but values, so the should not be
tested with if (value & X) but with if ((value & MASK) == X).
This was resulting in a wrong packet type.

For instance, an IPv4/ICMP packet was returning a value of 7 for
the layer 4, which is undefined.

This patch rework the way packet types are processed, to ensure
that only valid packet types will be advertised.

Fixes: 3d2a6644eb ("net/bnxt: support getting ptypes")
Cc: stable@dpdk.org

Signed-off-by: Olivier Matz <olivier.matz@6wind.com>
Acked-by: Ajit Khaparde <ajit.khaparde@broadcom.com>
2018-02-08 18:42:14 +01:00
..
bnxt_cpr.c net/bnxt: register for more async events 2018-01-29 10:04:28 +01:00
bnxt_cpr.h drivers/net: rename physical address type to IOVA 2017-11-06 22:44:26 +01:00
bnxt_ethdev.c net/bnxt: fix return code in MAC address set 2018-02-08 18:42:14 +01:00
bnxt_filter.c net/bnxt: check if MAC address is all zeros 2018-01-29 10:04:28 +01:00
bnxt_filter.h net/bnxt: check if MAC address is all zeros 2018-01-29 10:04:28 +01:00
bnxt_hwrm.c net/bnxt: add 100G speed config capability 2018-02-08 18:42:14 +01:00
bnxt_hwrm.h net/bnxt: support Rx/Tx queue start/stop 2018-01-29 10:04:28 +01:00
bnxt_irq.c net/bnxt: use dynamic log type 2018-01-29 10:04:28 +01:00
bnxt_irq.h net/bnxt: support enable/disable interrupt 2017-10-06 02:49:49 +02:00
bnxt_nvm_defs.h net/bnxt: support get/set EEPROM 2017-10-06 02:49:49 +02:00
bnxt_ring.c net/bnxt: use dynamic log type 2018-01-29 10:04:28 +01:00
bnxt_ring.h net/bnxt: use new API to get IOVA address 2018-01-16 18:47:49 +01:00
bnxt_rxq.c net/bnxt: fix number of pools for RSS 2018-01-29 10:04:28 +01:00
bnxt_rxq.h net/bnxt: support Rx/Tx queue start/stop 2018-01-29 10:04:28 +01:00
bnxt_rxr.c net/bnxt: fix packet type 2018-02-08 18:42:14 +01:00
bnxt_rxr.h net/bnxt: support Rx/Tx queue start/stop 2018-01-29 10:04:28 +01:00
bnxt_stats.c net/bnxt: use dynamic log type 2018-01-29 10:04:28 +01:00
bnxt_stats.h ethdev: separate driver APIs 2018-01-22 01:26:49 +01:00
bnxt_txq.c net/bnxt: use dynamic log type 2018-01-29 10:04:28 +01:00
bnxt_txq.h net/bnxt: support Rx/Tx queue start/stop 2018-01-29 10:04:28 +01:00
bnxt_txr.c net/bnxt: support Rx/Tx queue start/stop 2018-01-29 10:04:28 +01:00
bnxt_txr.h net/bnxt: support Rx/Tx queue start/stop 2018-01-29 10:04:28 +01:00
bnxt_vnic.c net/bnxt: use dynamic log type 2018-01-29 10:04:28 +01:00
bnxt_vnic.h net/bnxt: support Rx/Tx queue start/stop 2018-01-29 10:04:28 +01:00
bnxt.h net/bnxt: fix link speed setting with autoneg off 2018-02-08 18:42:14 +01:00
hsi_struct_def_dpdk.h net/bnxt: support timesync 2018-01-16 18:47:49 +01:00
Makefile pci: introduce library and driver 2017-10-26 23:17:31 +02:00
rte_pmd_bnxt_version.map net/bnxt: fix automatic clearing of VF stats 2017-07-06 15:00:57 +02:00
rte_pmd_bnxt.c net/bnxt: use dynamic log type 2018-01-29 10:04:28 +01:00
rte_pmd_bnxt.h ethdev: separate driver APIs 2018-01-22 01:26:49 +01:00