bnxt fixes
cover bnxt fixes
Fixes to the bnxt driver. Please apply.
Ajit Khaparde (1):
net/bnxt: fix init failures
Kishore Padmanabha (1):
net/bnxt: fix number of Tx queues being created
drivers/net/bnxt/bnxt_ethdev.c | 6 ++---- drivers/net/bnxt/bnxt_reps.c | 4 ++-- drivers/net/bnxt/bnxt_vnic.c | 3 +-- 3 files changed, 5 insertions(+), 8 deletions(-)
Signature · 1 line
2.39.2 (Apple Git-143)
PATCH 1/2 net/bnxt: fix number of Tx queues being created
From: Kishore Padmanabha <[email protected]>
The number of Tx queues for the representor port is limited by number of Rx rings instead of Tx rings.
--- drivers/net/bnxt/bnxt_reps.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/net/bnxt/bnxt_reps.c +2 -2
@@ -739,10 +739,10 @@ int bnxt_rep_tx_queue_setup_op(struct rte_eth_dev *eth_dev,struct bnxt_tx_queue *parent_txq, *txq;struct bnxt_vf_rep_tx_queue *vfr_txq; -if (queue_idx >= rep_bp->rx_nr_rings) { +if (queue_idx >= rep_bp->tx_nr_rings) {PMD_DRV_LOG (ERR ,"Cannot create Tx rings %d. %d rings available\n" , - queue_idx, rep_bp->rx_nr_rings); + queue_idx, rep_bp->tx_nr_rings);return -EINVAL ; }
Signature · 1 line
2.39.2 (Apple Git-143)
PATCH 2/2 net/bnxt: fix init failures
In reply to Ajit KhapardeFix init failures in some cases when contiguous memory may not be available for cases when a larger chunk of memory may be needed.
--- drivers/net/bnxt/bnxt_ethdev.c | 6 ++---- drivers/net/bnxt/bnxt_vnic.c | 3 +-- 2 files changed, 3 insertions(+), 6 deletions(-)
drivers/net/bnxt/bnxt_ethdev.c +2 -4
@@ -4949,8 +4949,7 @@ static int bnxt_alloc_ctx_mem_blk(struct bnxt *bp, rmem->nr_pages *8 , bp->eth_dev->device->numa_node,RTE_MEMZONE_2MB | -RTE_MEMZONE_SIZE_HINT_ONLY | -RTE_MEMZONE_IOVA_CONTIG , +RTE_MEMZONE_SIZE_HINT_ONLY , BNXT_PAGE_SIZE);if (mz ==NULL )return -ENOMEM ;
@@ -4974,8 +4973,7 @@ static int bnxt_alloc_ctx_mem_blk(struct bnxt *bp, mem_size, bp->eth_dev->device->numa_node,RTE_MEMZONE_1GB | -RTE_MEMZONE_SIZE_HINT_ONLY | -RTE_MEMZONE_IOVA_CONTIG , +RTE_MEMZONE_SIZE_HINT_ONLY , BNXT_PAGE_SIZE);if (mz ==NULL )return -ENOMEM ;
drivers/net/bnxt/bnxt_vnic.c +1 -2
@@ -161,8 +161,7 @@ int bnxt_alloc_vnic_attributes(struct bnxt *bp, bool reconfig) entry_length * bp->max_vnics, bp->eth_dev->device->numa_node,RTE_MEMZONE_2MB | -RTE_MEMZONE_SIZE_HINT_ONLY | -RTE_MEMZONE_IOVA_CONTIG , +RTE_MEMZONE_SIZE_HINT_ONLY , BNXT_PAGE_SIZE);if (mz ==NULL ) { PMD_DRV_LOG(ERR,
Signature · 1 line
2.39.2 (Apple Git-143)
Quoted 2 lines · Ajit Khaparde
Fixes to the bnxt driver. Please apply.
Patches merged in dpdk-next-net-brcm. Thanks
Quoted 15 lines
Ajit Khaparde (1):
net/bnxt: fix init failuresKishore Padmanabha (1):
net/bnxt: fix number of Tx queues being createddrivers/net/bnxt/bnxt_ethdev.c | 6 ++---- drivers/net/bnxt/bnxt_reps.c | 4 ++-- drivers/net/bnxt/bnxt_vnic.c | 3 +-- 3 files changed, 5 insertions(+), 8 deletions(-)--
2.39.2 (Apple Git-143)