net/bnxt: fix RSS table update for start/stop Rx queue
authorLance Richardson <lance.richardson@broadcom.com>
Mon, 4 Nov 2019 20:27:44 +0000 (15:27 -0500)
committerFerruh Yigit <ferruh.yigit@intel.com>
Fri, 8 Nov 2019 22:15:04 +0000 (23:15 +0100)
commit34a068411a8bed590141e24e2d3f3d04c989301a
tree41b9f027e4e7b992bdceb510dbe56ac3eec2921f
parent21b1f1abe4850b183c1619226396e8b7f73215e2
net/bnxt: fix RSS table update for start/stop Rx queue

A previous commit made updating of the RSS table when a receive
queue is stopped/started conditional on vnic->rx_queue_cnt being
nonzero. This count is only nonzero for dynamically created VNICs,
so the RSS table was not being updated in the normal path.
Fix by restoring the original logic.

Also ensure that vnic->rx_queue_cnt is initialized to zero when
reinitializing the VNIC array.

Fixes: 36024b2e7fe5 ("net/bnxt: allow dynamic creation of VNIC")

Signed-off-by: Lance Richardson <lance.richardson@broadcom.com>
Reviewed-by: Ajit Khaparde <ajit.khaparde@broadcom.com>
drivers/net/bnxt/bnxt_rxq.c
drivers/net/bnxt/bnxt_vnic.c