* [dpdk-stable] [PATCH v3 1/7] net/bnxt: fix size of tx ring in HW
[not found] ` <20180126173200.14458-1-ajit.khaparde@broadcom.com>
@ 2018-01-26 17:31 ` Ajit Khaparde
2018-01-26 17:32 ` [dpdk-stable] [PATCH v3 7/7] net/bnxt: fix number of pools for RSS Ajit Khaparde
1 sibling, 0 replies; 2+ messages in thread
From: Ajit Khaparde @ 2018-01-26 17:31 UTC (permalink / raw)
To: dev; +Cc: ferruh.yigit, stable
During Tx ring allocation, the actual ring size configured in the HW
ends up being twice the number of txd parameter specified to the driver.
The power of 2 ring size wrongly adds a +1 while sending the ring
create command to the FW.
Fixes: 6eb3cc2294fd ("net/bnxt: add initial Tx code")
Cc: stable@dpdk.org
Signed-off-by: Ajit Khaparde <ajit.khaparde@broadcom.com>
---
drivers/net/bnxt/bnxt_txr.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/net/bnxt/bnxt_txr.c b/drivers/net/bnxt/bnxt_txr.c
index ac77434b7..2f2c87119 100644
--- a/drivers/net/bnxt/bnxt_txr.c
+++ b/drivers/net/bnxt/bnxt_txr.c
@@ -101,7 +101,7 @@ int bnxt_init_tx_ring_struct(struct bnxt_tx_queue *txq, unsigned int socket_id)
if (ring == NULL)
return -ENOMEM;
txr->tx_ring_struct = ring;
- ring->ring_size = rte_align32pow2(txq->nb_tx_desc + 1);
+ ring->ring_size = rte_align32pow2(txq->nb_tx_desc);
ring->ring_mask = ring->ring_size - 1;
ring->bd = (void *)txr->tx_desc_ring;
ring->bd_dma = txr->tx_desc_mapping;
--
2.14.3 (Apple Git-98)
^ permalink raw reply [flat|nested] 2+ messages in thread
* [dpdk-stable] [PATCH v3 7/7] net/bnxt: fix number of pools for RSS
[not found] ` <20180126173200.14458-1-ajit.khaparde@broadcom.com>
2018-01-26 17:31 ` [dpdk-stable] [PATCH v3 1/7] net/bnxt: fix size of tx ring in HW Ajit Khaparde
@ 2018-01-26 17:32 ` Ajit Khaparde
1 sibling, 0 replies; 2+ messages in thread
From: Ajit Khaparde @ 2018-01-26 17:32 UTC (permalink / raw)
To: dev; +Cc: ferruh.yigit, stable
While using RSS, the pool count should be 1.
Fixes: 8103a57ab432a ("net/bnxt: handle Rx multi queue creation properly")
Cc: stable@dpdk.org
Signed-off-by: Ajit Khaparde <ajit.khaparde@broadcom.com>
---
drivers/net/bnxt/bnxt_rxq.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/net/bnxt/bnxt_rxq.c b/drivers/net/bnxt/bnxt_rxq.c
index 16304865d..d49f35462 100644
--- a/drivers/net/bnxt/bnxt_rxq.c
+++ b/drivers/net/bnxt/bnxt_rxq.c
@@ -118,7 +118,7 @@ int bnxt_mq_rx_configure(struct bnxt *bp)
pools = max_pools;
break;
case ETH_MQ_RX_RSS:
- pools = bp->rx_cp_nr_rings;
+ pools = 1;
break;
default:
PMD_DRV_LOG(ERR, "Unsupported mq_mod %d\n",
--
2.14.3 (Apple Git-98)
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2018-01-26 17:34 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
[not found] <ce59b9ac-7f3a-643d-87fa-7947d4da0134@intel.com>
[not found] ` <20180126173200.14458-1-ajit.khaparde@broadcom.com>
2018-01-26 17:31 ` [dpdk-stable] [PATCH v3 1/7] net/bnxt: fix size of tx ring in HW Ajit Khaparde
2018-01-26 17:32 ` [dpdk-stable] [PATCH v3 7/7] net/bnxt: fix number of pools for RSS Ajit Khaparde
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).