From 9bae0ca53ba0497867881977c0386eb627ab59f3 Mon Sep 17 00:00:00 2001 From: Brian Brooks Date: Wed, 27 Jun 2018 15:53:46 -0500 Subject: [PATCH] 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 --- src/plugins/marvell/pp2/pp2.c | 4 ++-- 1 file 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) { -- 2.16.6