net/bnxt: fix VNIC config on Rx queue stop
authorSamik Gupta <samik.gupta@broadcom.com>
Fri, 6 Nov 2020 21:41:21 +0000 (16:41 -0500)
committerFerruh Yigit <ferruh.yigit@intel.com>
Fri, 8 Jan 2021 15:03:05 +0000 (16:03 +0100)
commite36b1cd6b8cd20dbb323be7a01b8152cbb07afd4
tree2821ae9dadad59b20e4ef94353bb324fc2ec4bae
parentd424af43e6c32aec83be8f1380271ff33ed0b89a
net/bnxt: fix VNIC config on Rx queue stop

Reconfigure a vnic's default ring if the current default ring is stopped
by the application. It picks the lowest numbered ring that is currently
active to be the new default, and issues the hwrm_vnic_cfg command to
update the configuration. Applies to adapters that are not Thor-based.

Fixes: 9b63c6fd70e3 ("net/bnxt: support Rx/Tx queue start/stop")
Cc: stable@dpdk.org
Signed-off-by: Samik Gupta <samik.gupta@broadcom.com>
Reviewed-by: Ajit Khaparde <ajit.khaparde@broadcom.com>
Reviewed-by: Lance Richardson <lance.richardson@broadcom.com>
Reviewed-by: Somnath Kotur <somnath.kotur@broadcom.com>
drivers/net/bnxt/bnxt_rxq.c