net/bnxt: fix VNIC RSS configure function
authorKalesh AP <kalesh-anakkur.purayil@broadcom.com>
Wed, 7 Oct 2020 03:41:50 +0000 (09:11 +0530)
committerFerruh Yigit <ferruh.yigit@intel.com>
Fri, 8 Jan 2021 15:03:05 +0000 (16:03 +0100)
commit5f0f9a45aca26d8462eb2dfce34c6d3561610915
tree839ec4baab44c76ee8cdc081415a057f5b845321
parent265d1a2bb869ce5f2b3d0d8d6f96c76d3f3b65e2
net/bnxt: fix VNIC RSS configure function

1. Moved invalid VNIC id check to the beginning of the function.
2. Removed a duplicate check which avoids unnecessary code indentation.

Fixes: 49d0709b257f ("net/bnxt: delete and flush L2 filters cleanly")
Cc: stable@dpdk.org
Signed-off-by: Kalesh AP <kalesh-anakkur.purayil@broadcom.com>
Reviewed-by: Somnath Kotur <somnath.kotur@broadcom.com>
Reviewed-by: Ajit Khaparde <ajit.khaparde@broadcom.com>
drivers/net/bnxt/bnxt_hwrm.c