net/bnxt: fix VNIC config error in Rx queue start
authorAjit Khaparde <ajit.khaparde@broadcom.com>
Tue, 24 Aug 2021 01:58:20 +0000 (18:58 -0700)
committerAjit Khaparde <ajit.khaparde@broadcom.com>
Wed, 25 Aug 2021 03:55:07 +0000 (05:55 +0200)
commited0ebb6e171125d99cf2be2f9c7e1378208df5c0
treea6817a4121e51653559c58cbc8ff8ae82dc5520c
parent61cd4384fabf67d487a3ae85cff5babcdb41558f
net/bnxt: fix VNIC config error in Rx queue start

During port stop/start sequence the Thor FW is returning an error.
This is because we are deriving incorrect active Rx ring and using
that wrong information in the bnxt_vnic_rss_cfg HWRM command.

Fix it by using the rx_queue_state from eth_dev.

Fixes: 0105ea1296c9 ("net/bnxt: support runtime queue setup")
Cc: stable@dpdk.org
Signed-off-by: Ajit Khaparde <ajit.khaparde@broadcom.com>
Reviewed-by: Somnath Kotur <somnath.kotur@broadcom.com>
drivers/net/bnxt/bnxt_hwrm.c