summaryrefslogtreecommitdiffstats
path: root/src/plugins/marvell/pp2/pp2.c
diff options
context:
space:
mode:
authorBrian Brooks <brian.brooks@arm.com>2018-06-27 15:53:46 -0500
committerDave Barach <openvpp@barachs.net>2018-07-26 20:18:12 +0000
commit9bae0ca53ba0497867881977c0386eb627ab59f3 (patch)
treee42588b82a65bb94a8f0e98b263b029d4923b8ce /src/plugins/marvell/pp2/pp2.c
parentf91080c01104a5999fe6c08e699b3426fea62dad (diff)
pp2: change default queue size
Reduce default queue size to twice the vlib frame size. This throttles the PP from transferring more packets than are necessary for the next round of graph execution on a core. When combined with DMA'ing into L3 cache, Mpps for 64B packets increases 35%. Change-Id: I0afe426d23560f262fdc56accb6302b099bd0076 Signed-off-by: Brian Brooks <brian.brooks@arm.com>
Diffstat (limited to 'src/plugins/marvell/pp2/pp2.c')
-rw-r--r--src/plugins/marvell/pp2/pp2.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/plugins/marvell/pp2/pp2.c b/src/plugins/marvell/pp2/pp2.c
index 47c853df2bf..ded2b49a3b9 100644
--- a/src/plugins/marvell/pp2/pp2.c
+++ b/src/plugins/marvell/pp2/pp2.c
@@ -200,8 +200,8 @@ mrvl_pp2_create_if (mrvl_pp2_create_if_args_t * args)
n_outqs = tm->n_vlib_mains;
/* defaults */
- args->tx_q_sz = args->tx_q_sz ? args->tx_q_sz : 2048;
- args->rx_q_sz = args->rx_q_sz ? args->rx_q_sz : 2048;
+ args->tx_q_sz = args->tx_q_sz ? args->tx_q_sz : 2 * VLIB_FRAME_SIZE;
+ args->rx_q_sz = args->rx_q_sz ? args->rx_q_sz : 2 * VLIB_FRAME_SIZE;
if (vec_len (ppm->per_thread_data) == 0)
{