From aade665a1e25005c996cb5083d9143ec986246ac Mon Sep 17 00:00:00 2001 From: Lance Richardson Date: Wed, 9 Sep 2020 11:53:00 -0400 Subject: [PATCH] net/bnxt: increase max burst size for vector path Increase the maximum supported burst size for the bnxt vector mode PMD from 32 to 64. With larger burst sizes, per-burst overhead is amortized over more packets, improving overall performance. For small packets this has been measured to provide a 4-10% increase in single-core throughput with testpmd iofwd. Reviewed-by: Kalesh AP Reviewed-by: Ajit Khaparde Signed-off-by: Lance Richardson --- drivers/net/bnxt/bnxt_rxq.h | 2 +- drivers/net/bnxt/bnxt_txq.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/net/bnxt/bnxt_rxq.h b/drivers/net/bnxt/bnxt_rxq.h index be945c535b..e17f923fd0 100644 --- a/drivers/net/bnxt/bnxt_rxq.h +++ b/drivers/net/bnxt/bnxt_rxq.h @@ -7,7 +7,7 @@ #define _BNXT_RQX_H_ /* Maximum receive burst supported in vector mode. */ -#define RTE_BNXT_MAX_RX_BURST 32U +#define RTE_BNXT_MAX_RX_BURST 64U struct bnxt; struct bnxt_rx_ring_info; diff --git a/drivers/net/bnxt/bnxt_txq.h b/drivers/net/bnxt/bnxt_txq.h index 37598525a6..9f849fc710 100644 --- a/drivers/net/bnxt/bnxt_txq.h +++ b/drivers/net/bnxt/bnxt_txq.h @@ -7,7 +7,7 @@ #define _BNXT_TXQ_H_ /* Maximum transmit burst for vector mode. */ -#define RTE_BNXT_MAX_TX_BURST 32U +#define RTE_BNXT_MAX_TX_BURST 64U struct bnxt_tx_ring_info; struct bnxt_cp_ring_info; -- 2.20.1