summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrian Brooks <brian.brooks@arm.com>2018-06-27 21:27:26 -0500
committerDamjan Marion <dmarion@me.com>2018-07-10 10:09:24 +0000
commit3ecef99484463666d62568da931fd908f3e86d7c (patch)
tree2fca3f0851a906a59cd108faf27d5ce41668bbd8
parente356cbfaa8cc83e355da16aaa5a82f1f138e1572 (diff)
pp2: increase recycle batch size
Increase batch size when recycling buffers. This increases Mpps by 7%. Change-Id: I2a460611d9c36e9bf087b076fc4e187acf61108f Signed-off-by: Brian Brooks <brian.brooks@arm.com>
-rw-r--r--src/plugins/marvell/pp2/pp2.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/plugins/marvell/pp2/pp2.h b/src/plugins/marvell/pp2/pp2.h
index 76db0a09749..93b95aa134b 100644
--- a/src/plugins/marvell/pp2/pp2.h
+++ b/src/plugins/marvell/pp2/pp2.h
@@ -23,6 +23,8 @@
#define MVCONF_TYPES_PUBLIC
#define MVCONF_DMA_PHYS_ADDR_T_PUBLIC
+#include <vlib/vlib.h>
+
#include "mv_std.h"
#include "env/mv_sys_dma.h"
#include "drivers/mv_pp2.h"
@@ -61,7 +63,7 @@ typedef struct
u32 hw_if_index;
} mrvl_pp2_if_t;
-#define MRVL_PP2_BUFF_BATCH_SZ 64
+#define MRVL_PP2_BUFF_BATCH_SZ VLIB_FRAME_SIZE
typedef struct
{