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: 244bc98b0da7 ("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
..
2018-04-27 15:54:56 +01:00
2018-04-27 15:54:56 +01:00
2018-04-27 15:54:56 +01:00
2018-04-27 15:54:56 +01:00
2018-04-27 15:54:56 +01:00
2018-04-27 15:54:55 +01:00
2018-04-27 15:54:56 +01:00
2018-04-27 15:54:56 +01:00
2018-04-27 15:54:56 +01:00
2018-04-19 14:10:44 +02:00
2018-04-27 15:54:55 +01:00
2018-04-25 04:00:37 +02:00
2018-04-27 15:54:55 +01:00
2018-04-19 14:10:44 +02:00