net/bnxt: fix ring group free
authorKalesh AP <kalesh-anakkur.purayil@broadcom.com>
Mon, 30 Aug 2021 03:58:11 +0000 (09:28 +0530)
committerAjit Khaparde <ajit.khaparde@broadcom.com>
Thu, 2 Sep 2021 00:37:57 +0000 (02:37 +0200)
commit8269a4e8af5fa7632578fc1f4fa7d44711440e4f
treedd6bd9dae1ce39b3bafdbf85a145b9c808bf4301
parent620e0290d14cc9a1126ef1af4eaa71ef9eadca72
net/bnxt: fix ring group free

Added an invalid fw_grp_id check inside bnxt_hwrm_ring_grp_free().
This will prevent invalid fw_grp_id to be passed to the FW which can
result in an error.
This fixes the following failure in the "port stop" -> "port start"
sequence:

bnxt_hwrm_ring_grp_free(): error 2:0:00000000:0204
bnxt_hwrm_ring_grp_free(): error 2:0:00000000:0204

Fixes: 9b63c6fd70e3 ("net/bnxt: support Rx/Tx queue start/stop")
Cc: stable@dpdk.org
Signed-off-by: Kalesh AP <kalesh-anakkur.purayil@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_hwrm.c