numam-dpdk/drivers/net/bnxt
Ajit Khaparde 1b533790f4 net/bnxt: avoid invalid vnic id in set L2 Rx mask
In some cases bnxt_hwrm_cfa_l2_set_rx_mask is being called before
VNICs are allocated. The FW returns an error in such cases.
Move bnxt_init_nic to bnxt_dev_init such that the ids are initialized
to an invalid id.
Prevent sending the command to the FW only with a valid vnic id.

Fixes: 244bc98b0d ("net/bnxt: set L2 Rx mask")
Cc: stable@dpdk.org

Signed-off-by: Ajit Khaparde <ajit.khaparde@broadcom.com>
2018-04-27 15:54:56 +01:00
..
bnxt_cpr.c net/bnxt: cache address of doorbell to subsequent access 2018-04-27 15:54:56 +01:00
bnxt_cpr.h net/bnxt: convert to SPDX license tag 2018-04-14 00:40:21 +02:00
bnxt_ethdev.c net/bnxt: avoid invalid vnic id in set L2 Rx mask 2018-04-27 15:54:56 +01:00
bnxt_filter.c net/bnxt: fix matching of flow API item masks 2018-04-27 15:54:56 +01:00
bnxt_filter.h net/bnxt: convert to SPDX license tag 2018-04-14 00:40:21 +02:00
bnxt_hwrm.c net/bnxt: avoid invalid vnic id in set L2 Rx mask 2018-04-27 15:54:56 +01:00
bnxt_hwrm.h net/bnxt: add code to determine the Tx COS queue 2018-04-27 15:54:56 +01:00
bnxt_irq.c net/bnxt: convert to SPDX license tag 2018-04-14 00:40:21 +02:00
bnxt_irq.h net/bnxt: convert to SPDX license tag 2018-04-14 00:40:21 +02:00
bnxt_nvm_defs.h net/bnxt: convert to SPDX license tag 2018-04-14 00:40:21 +02:00
bnxt_ring.c net/bnxt: cache address of doorbell to subsequent access 2018-04-27 15:54:56 +01:00
bnxt_ring.h net/bnxt: avoid freeing memzone multiple times 2018-04-27 15:54:56 +01:00
bnxt_rxq.c net/bnxt: avoid freeing memzone multiple times 2018-04-27 15:54:56 +01:00
bnxt_rxq.h net/bnxt: avoid freeing memzone multiple times 2018-04-27 15:54:56 +01:00
bnxt_rxr.c net/bnxt: maintain mbuf alloc failure counter per queue 2018-04-27 15:54:56 +01:00
bnxt_rxr.h net/bnxt: fix Rx checksum flags for tunnel frames 2018-04-27 15:54:55 +01:00
bnxt_stats.c net/bnxt: maintain mbuf alloc failure counter per queue 2018-04-27 15:54:56 +01:00
bnxt_stats.h net/bnxt: convert to SPDX license tag 2018-04-14 00:40:21 +02:00
bnxt_txq.c net/bnxt: avoid freeing memzone multiple times 2018-04-27 15:54:56 +01:00
bnxt_txq.h net/bnxt: avoid freeing memzone multiple times 2018-04-27 15:54:56 +01:00
bnxt_txr.c net/bnxt: convert to SPDX license tag 2018-04-14 00:40:21 +02:00
bnxt_txr.h net/bnxt: convert to SPDX license tag 2018-04-14 00:40:21 +02:00
bnxt_vnic.c net/bnxt: convert to SPDX license tag 2018-04-14 00:40:21 +02:00
bnxt_vnic.h net/bnxt: convert to SPDX license tag 2018-04-14 00:40:21 +02:00
bnxt.h net/bnxt: cache address of doorbell to subsequent access 2018-04-27 15:54:56 +01:00
hsi_struct_def_dpdk.h net/bnxt: add code to determine the Tx COS queue 2018-04-27 15:54:56 +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: convert to SPDX license tag 2018-04-14 00:40:21 +02:00
rte_pmd_bnxt.h net/bnxt: convert to SPDX license tag 2018-04-14 00:40:21 +02:00