Skip to contentSkip to conversation

ibmveth: Reduce maximum tx queues to 8

PATCH Superseded Nick Child 2 participants 2 messages Nov 2, 2022 – Nov 6, 2022

Subsystems (4)

v1 of 3 Superseded Latest is v3 →

lore
Share & tools
lore

Nick Child

author maintainer
#0 lore raw

PATCH 1/1 ibmveth: Reduce maximum tx queues to 8

Previously, the maximum number of transmit queues allowed was 16. Due to resource concerns, limit to 8 queues instead.

Since the driver is virtualized away from the physical NIC, the purpose of multiple queues is purely to allow for parallel calls to the hypervisor. Therefore, there is no noticeable effect on performance by reducing queue count to 8.

---
Relevant links:
- Introduce multiple tx queues (accepted in v6.1):
https://lore.kernel.org/netdev/[email protected]/
- Resource concerns with 16 queues:
https://lore.kernel.org/netdev/CAA93jw5reJmaOvt9vw15C1fo1AN7q5jVKzUocbAoNDC-cpi=KQ@mail.gmail.com/

 drivers/net/ethernet/ibm/ibmveth.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/net/ethernet/ibm/ibmveth.h +1 -1
index 4f8357187292..6b5faf1feb0b 100644
@@ -99,7 +99,7 @@ static inline long h_illan_attributes(unsigned long unit_address,
 #define IBMVETH_FILT_LIST_SIZE 4096
 #define IBMVETH_MAX_BUF_SIZE (1024 * 128)
 #define IBMVETH_MAX_TX_BUF_SIZE (1024 * 64)
-#define IBMVETH_MAX_QUEUES 16U
+#define IBMVETH_MAX_QUEUES 8U
 
 static int pool_size[] = { 512, 1024 * 2, 1024 * 16, 1024 * 32, 1024 * 64 };
 static int pool_count[] = { 256, 512, 256, 256, 256 };
Signature · 1 line
2.31.1
#1 lore raw
Quoted 9 lines · Nick Child

Previously, the maximum number of transmit queues allowed was 16. Due to resource concerns, limit to 8 queues instead.

Since the driver is virtualized away from the physical NIC, the purpose of multiple queues is purely to allow for parallel calls to the hypervisor. Therefore, there is no noticeable effect on performance by reducing queue count to 8.

Very odd typography of this commit message. You have upto 80 chars in one line, use them.

Quoted 2 lines

Double Reported-by.

Quoted 1 line

And missing Fixes line for "net".

Quoted 26 lines

---
Relevant links:
- Introduce multiple tx queues (accepted in v6.1):

   https://lore.kernel.org/netdev/[email protected]/

- Resource concerns with 16 queues:
https://lore.kernel.org/netdev/CAA93jw5reJmaOvt9vw15C1fo1AN7q5jVKzUocbAoNDC-cpi=KQ@mail.gmail.com/

 drivers/net/ethernet/ibm/ibmveth.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/net/ethernet/ibm/ibmveth.h +1 -1
index 4f8357187292..6b5faf1feb0b 100644
@@ -99,7 +99,7 @@ static inline long h_illan_attributes(unsigned long unit_address,
 #define IBMVETH_FILT_LIST_SIZE 4096
 #define IBMVETH_MAX_BUF_SIZE (1024 * 128)
 #define IBMVETH_MAX_TX_BUF_SIZE (1024 * 64)
-#define IBMVETH_MAX_QUEUES 16U
+#define IBMVETH_MAX_QUEUES 8U
 
 static int pool_size[] = { 512, 1024 * 2, 1024 * 16, 1024 * 32, 1024 * 64 };
 static int pool_count[] = { 256, 512, 256, 256, 256 };
Signature · 1 line
2.31.1