From: Brian Brooks Date: Wed, 27 Jun 2018 20:53:46 +0000 (-0500) Subject: pp2: change default queue size X-Git-Tag: v18.10-rc1~530 X-Git-Url: https://gerrit.fd.io/r/gitweb?a=commitdiff_plain;h=9bae0ca53ba0497867881977c0386eb627ab59f3;p=vpp.git 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 --- 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) {