Skip to contentSkip to conversation

net/ixgbe: add tuned RxTx parmeters

PATCH Applied Remy Horton 2 participants 2 messages Jun 1, 2018 – Jun 27, 2018 Network drivers

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 net/ixgbe: add tuned RxTx parmeters

The optimal values of several transmission & reception related parameters, such as burst sizes, descriptor ring sizes, and number of queues, varies between different network interface devices. This patch adds the values for the ixgbe PMD.

---
 doc/guides/rel_notes/release_18_08.rst | 8 ++++++++
 drivers/net/ixgbe/ixgbe_ethdev.c       | 8 ++++++++
 2 files changed, 16 insertions(+)
doc/guides/rel_notes/release_18_08.rst +8 -0
index 5bc23c5..17e6ff9 100644
@@ -41,6 +41,14 @@ New Features
      Also, make sure to start the actual text at the margin.
      =========================================================
 
+* **Added ixgbe preferred Rx/Tx parameters.**
+
+  Rather than applications providing explicit Rx and Tx parameters such as
+  queue and burst sizes, they can request that the EAL instead uses preferred
+  values provided by the PMD, falling back to defaults within the EAL if the
+  PMD does not provide any. The provision of such tuned values now includes
+  the ixgbe PMD.
+
 
 API Changes
 -----------
drivers/net/ixgbe/ixgbe_ethdev.c +8 -0
index 87d2ad0..95fd080 100644
@@ -3755,6 +3755,14 @@ ixgbe_dev_info_get(struct rte_eth_dev *dev, struct rte_eth_dev_info *dev_info)
 		dev_info->speed_capa |= ETH_LINK_SPEED_2_5G;
 		dev_info->speed_capa |= ETH_LINK_SPEED_5G;
 	}
+
+	/* Driver-preferred Rx/Tx parameters */
+	dev_info->default_rxportconf.burst_size = 32;
+	dev_info->default_txportconf.burst_size = 32;
+	dev_info->default_rxportconf.nb_queues = 1;
+	dev_info->default_txportconf.nb_queues = 1;
+	dev_info->default_rxportconf.ring_size = 256;
+	dev_info->default_txportconf.ring_size = 256;
 }
 
 static const uint32_t *
Signature · 1 line
2.9.5
Acked-by on v1 1/1 Applied
#1 lore raw
Quoted 9 lines

-----Original Message-----
From: dev [mailto:[email protected]] On Behalf Of Remy Horton
Sent: Friday, June 1, 2018 6:40 PM
To: [email protected]
Cc: Lu, Wenzhuo <[email protected]>; Ananyev, Konstantin <[email protected]>; Mcnamara, John <[email protected]>
Subject: [dpdk-dev] [PATCH v1] net/ixgbe: add tuned RxTx parmeters

Quoted 6 lines

The optimal values of several transmission & reception related parameters, such as burst sizes, descriptor ring sizes, and number of queues, varies between different network interface devices. This patch adds the values for the ixgbe PMD.

Applied to dpdk-next-net-intel

Thanks!
Qi