Skip to contentSkip to conversation

net/ixgbe: fix rss max rxtx queue num

PATCH In review Qiming Chen 2 participants 2 messages Aug 31, 2021 – Sep 6, 2021 Network drivers

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 net/ixgbe: fix rss max rxtx queue num

Through the local actual test, it is found that the maximum number of RSS queues is 16, not 128. Check the chip manual, the register MRQE has the following description: RSS only-Single set of RSS 16 queues. It also coincides with the actual test value.

Fixes abf7275bbaa2 ("ixgbe: move to drivers/net/")
---
 drivers/net/ixgbe/base/ixgbe_82599.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/net/ixgbe/base/ixgbe_82599.c +2 -2
index 69fd4cd3fb..edd63018d1 100644
@@ -8,8 +8,8 @@
 #include "ixgbe_common.h"
 #include "ixgbe_phy.h"
 
-#define IXGBE_82599_MAX_TX_QUEUES 128
-#define IXGBE_82599_MAX_RX_QUEUES 128
+#define IXGBE_82599_MAX_TX_QUEUES 16
+#define IXGBE_82599_MAX_RX_QUEUES 16
 #define IXGBE_82599_RAR_ENTRIES   128
 #define IXGBE_82599_MC_TBL_SIZE   128
 #define IXGBE_82599_VFT_TBL_SIZE  128
Signature · 1 line
2.30.1.windows.1
#1 lore raw
Quoted 25 lines

-----Original Message-----
From: Qiming Chen <[email protected]>
Sent: Tuesday, August 31, 2021 17:11
To: [email protected]
Cc: Wang, Haiyue <[email protected]>; Qiming Chen <[email protected]>; [email protected]
Subject: [PATCH] net/ixgbe: fix rss max rxtx queue num

Through the local actual test, it is found that the maximum number of RSS queues is 16, not 128. Check the chip manual, the register MRQE has the following description: RSS only-Single set of RSS 16 queues. It also coincides with the actual test value.

Fixes abf7275bbaa2 ("ixgbe: move to drivers/net/")
---
 drivers/net/ixgbe/base/ixgbe_82599.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/net/ixgbe/base/ixgbe_82599.c +0 -0
index 69fd4cd3fb..edd63018d1 100644

drivers/net/ixgbe/base/ixgbe_82599.c line 12

Quoted 7 lines
drivers/net/ixgbe/base/ixgbe_82599.c +2 -2
@@ -8,8 +8,8 @@
 #include "ixgbe_common.h"
 #include "ixgbe_phy.h"
 
-#define IXGBE_82599_MAX_TX_QUEUES 128
-#define IXGBE_82599_MAX_RX_QUEUES 128
+#define IXGBE_82599_MAX_TX_QUEUES 16
+#define IXGBE_82599_MAX_RX_QUEUES 16

Let's keep the value, since there are so many kind of ixgbe, and sync it with the kernel:
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/drivers/net/ethernet/intel/ixgbe/ixgbe_82599.c#n12

Quoted 5 lines
drivers/net/ixgbe/base/ixgbe_82599.c +0 -1
 #define IXGBE_82599_RAR_ENTRIES   128
 #define IXGBE_82599_MC_TBL_SIZE   128
 #define IXGBE_82599_VFT_TBL_SIZE  128
--

2.30.1.windows.1