Skip to contentSkip to conversation

RDMA/ipoib: Use the networking stack default for txqueuelen

PATCH Applied Leon Romanovsky 1 participant 2 messages Oct 10, 2024 – Oct 28, 2024 InfiniBand

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 RDMA/ipoib: Use the networking stack default for txqueuelen

From: Gal Pressman <[email protected]>

There is no need for a special txqueuelen value for IPoIB. This value represents the qdisc size which is not related to the SQ size, and the default value provided by the stack (DEFAULT_TX_QUEUE_LEN) is sufficient for typical use cases.

---
 drivers/infiniband/ulp/ipoib/ipoib_main.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
drivers/infiniband/ulp/ipoib/ipoib_main.c +2 -1
index 4e31bb0b6466..3b463db8ce39 100644
@@ -49,6 +49,7 @@
 #include <linux/jhash.h>
 #include <net/arp.h>
 #include <net/addrconf.h>
+#include <net/pkt_sched.h>
 #include <linux/inetdevice.h>
 #include <rdma/ib_cache.h>
 
@@ -2145,7 +2146,7 @@ void ipoib_setup_common(struct net_device *dev)
 	dev->hard_header_len	 = IPOIB_HARD_LEN;
 	dev->addr_len		 = INFINIBAND_ALEN;
 	dev->type		 = ARPHRD_INFINIBAND;
-	dev->tx_queue_len	 = ipoib_sendq_size * 2;
+	dev->tx_queue_len	 = DEFAULT_TX_QUEUE_LEN;
 	dev->features		 = (NETIF_F_VLAN_CHALLENGED	|
 				    NETIF_F_HIGHDMA);
 	netif_keep_dst(dev);
Signature · 1 line
2.46.2
author Applied
#1 lore raw
Quoted 6 lines · Leon Romanovsky

There is no need for a special txqueuelen value for IPoIB. This value represents the qdisc size which is not related to the SQ size, and the default value provided by the stack (DEFAULT_TX_QUEUE_LEN) is sufficient for typical use cases.

Applied, thanks!

[1/1] RDMA/ipoib: Use the networking stack default for txqueuelen

      https://git.kernel.org/rdma/rdma/c/c11db1bf0ddc3c

Best regards,

Signature · 1 line
Leon Romanovsky <[email protected]>