From b7f60773748fd228fefe96df8ed7b16b11b72f4b Mon Sep 17 00:00:00 2001 From: Shraddha Joshi Date: Thu, 19 Apr 2018 11:19:01 -0700 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. Signed-off-by: Shraddha Joshi Acked-by: Jin Heo Acked-by: Guolin Yang Acked-by: Boon Ang Acked-by: Yong Wang --- drivers/net/vmxnet3/vmxnet3_ring.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/vmxnet3/vmxnet3_ring.h b/drivers/net/vmxnet3/vmxnet3_ring.h index 552180e847..50992349d8 100644 --- a/drivers/net/vmxnet3/vmxnet3_ring.h +++ b/drivers/net/vmxnet3/vmxnet3_ring.h @@ -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.20.1