net/vmxnet3: increase rx data ring descriptor size
Subsystems (2)
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
@@ -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
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 sizeVmxnet3 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.
Signed-off-by Shraddha Joshi <[email protected]>Acked-by Jin Heo <[email protected]>Acked-by Guolin Yang <[email protected]>Acked-by Boon Ang <[email protected]>
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@@ -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
Ferruh Yigit
AppliedQuoted 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 sizeVmxnet3 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
Signed-off-by Shraddha Joshi <[email protected]>Acked-by Jin Heo <[email protected]>Acked-by Guolin Yang <[email protected]>Acked-by Boon Ang <[email protected]>Acked-by Yong Wang <[email protected]>
Applied to dpdk-next-net/master, thanks.