Skip to contentSkip to conversation

net/vmxnet3: increase rx data ring descriptor size

PATCH Applied Shraddha Joshi 3 participants 3 messages Apr 19, 2018

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 net/vmxnet3: increase rx data ring descriptor size

Vmxnet3 driver supports receive data ring viz. a set of small sized buffers that are always mapped by the emulation. If a packet fits into the receive data ring buffer, the emulation delivers the packet via the receive data ring.

Increasing the receive data ring descriptor size from 128 to 256 showed performance gains as high as 5% for packets smaller than 256.

---
 drivers/net/vmxnet3/vmxnet3_ring.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/net/vmxnet3/vmxnet3_ring.h +1 -1
index 552180e84..50992349d 100644
@@ -14,7 +14,7 @@
 #define VMXNET3_DEF_RX_RING_SIZE 128
 
 /* Default rx data ring desc size */
-#define VMXNET3_DEF_RXDATA_DESC_SIZE 128
+#define VMXNET3_DEF_RXDATA_DESC_SIZE 256
 
 #define VMXNET3_SUCCESS 0
 #define VMXNET3_FAIL   -1
Signature · 1 line
2.11.0
Acked-by on v1 1/1
#1 lore raw
Quoted 12 lines

-----Original Message-----
From: Shraddha Joshi [mailto:[email protected]]
Sent: Thursday, April 19, 2018 11:19 AM
To: Yong Wang <[email protected]>
Cc: [email protected]; Shraddha Joshi <[email protected]>
Subject: [PATCH] net/vmxnet3: increase rx data ring descriptor size

Vmxnet3 driver supports receive data ring viz. a set of small sized buffers that are always mapped by the emulation. If a packet fits into the receive data ring buffer, the emulation delivers the packet via the receive data ring.

Quoted 7 lines

Increasing the receive data ring descriptor size from 128 to 256 showed performance gains as high as 5% for packets smaller than 256.

Quoted 20 lines
---
 drivers/net/vmxnet3/vmxnet3_ring.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/net/vmxnet3/vmxnet3_ring.h +1 -2
index 552180e84..50992349d 100644
@@ -14,7 +14,7 @@
 #define VMXNET3_DEF_RX_RING_SIZE 128
 
 /* Default rx data ring desc size */
-#define VMXNET3_DEF_RXDATA_DESC_SIZE 128
+#define VMXNET3_DEF_RXDATA_DESC_SIZE 256
 
 #define VMXNET3_SUCCESS 0
 #define VMXNET3_FAIL   -1
--

2.11.0

Applied
#2 lore raw
Quoted 15 lines · Yong Wang
Quoted 15 lines

-----Original Message-----
From: Shraddha Joshi [mailto:[email protected]]
Sent: Thursday, April 19, 2018 11:19 AM
To: Yong Wang <[email protected]>
Cc: [email protected]; Shraddha Joshi <[email protected]>
Subject: [PATCH] net/vmxnet3: increase rx data ring descriptor size

Vmxnet3 driver supports receive data ring viz. a set of small sized buffers that are always mapped by the emulation. If a packet fits into the receive data ring buffer, the emulation delivers the packet via the receive data ring.

Increasing the receive data ring descriptor size from 128 to 256 showed performance gains as high as 5% for packets smaller than 256.

Quoted 6 lines
Quoted 4 lines

Applied to dpdk-next-net/master, thanks.