net/bnxt: fix VNIC allocation on port toggle
authorSantoshkumar Karanappa Rastapur <santosh.rastapur@broadcom.com>
Mon, 4 Nov 2019 10:02:38 +0000 (15:32 +0530)
committerFerruh Yigit <ferruh.yigit@intel.com>
Fri, 8 Nov 2019 22:15:04 +0000 (23:15 +0100)
commit4602a4326903059c755bdacc5065591c3f68b389
tree027e7124d3ffafa7d35e825dc916b40dad357eab
parent938a87db43242a204772307a2d7e66950c661b1e
net/bnxt: fix VNIC allocation on port toggle

bnxt_init_chip called on port start keeps incrementing rx_cosq_cnt.
Hence more vnics are allocated with less number of rings on each port
stop/start operation. Eventually vnic allocation fails due to incorrect
ring group as no ring gets allocated to the vnic.

Fixes: 84d49664b5b2 ("net/bnxt: support CoS classification")

Signed-off-by: Santoshkumar Karanappa Rastapur <santosh.rastapur@broadcom.com>
Reviewed-by: Somnath Kotur <somnath.kotur@broadcom.com>
drivers/net/bnxt/bnxt_ethdev.c