net/bnxt: fix RxQ count if ntuple filtering is disabled
If ntuple filtering is disabled, FW will return max_vnics=1. Due to this only single Rxq is created. Change to max_rx_rings = RTE_MIN(bp->max_rx_rings, bp->max_stat_ctx) to fix it. Fixes: 6d8109bcb398 ("net/bnxt: check VF resources if resource manager is enabled") Cc: stable@dpdk.org Signed-off-by: Qingmin Liu <qingmin.liu@broadcom.com> Signed-off-by: Ajit Khaparde <ajit.khaparde@broadcom.com> Reviewed-by: Somnath Kotur <somnath.kotur@broadcom.com> Reviewed-by: Randy Schacher <stuart.schacher@broadcom.com>
This commit is contained in:
parent
f1a2447293
commit
94abc0a982
@ -493,7 +493,7 @@ static void bnxt_dev_info_get_op(struct rte_eth_dev *eth_dev,
|
||||
/* PF/VF specifics */
|
||||
if (BNXT_PF(bp))
|
||||
dev_info->max_vfs = bp->pdev->max_vfs;
|
||||
max_rx_rings = RTE_MIN(bp->max_vnics, bp->max_stat_ctx);
|
||||
max_rx_rings = RTE_MIN(bp->max_rx_rings, bp->max_stat_ctx);
|
||||
/* For the sake of symmetry, max_rx_queues = max_tx_queues */
|
||||
dev_info->max_rx_queues = max_rx_rings;
|
||||
dev_info->max_tx_queues = max_rx_rings;
|
||||
|
Loading…
x
Reference in New Issue
Block a user