aboutsummaryrefslogtreecommitdiffstats
path: root/examples/l4fwd/main.c
diff options
context:
space:
mode:
authorMariusz Drost <mariuszx.drost@intel.com>2020-03-02 13:30:25 +0000
committerMariusz Drost <mariuszx.drost@intel.com>2020-03-03 14:17:42 +0000
commit74a565176eeabe32fb2c4cb7c338b8441f51c1f0 (patch)
treeb80bec9c33344112db01fc3dc549c62cf70aeb22 /examples/l4fwd/main.c
parent3082ee6bf092482074b26a5bbf34b3e417930c59 (diff)
l4fwd: Add new cmd-line parameter --mbuf-num
In some cases default value of MPOOL_NB_BUF is too large. Because of that new cmd-line parameter is added (--mbuf-num/-M), so user can define that value directly before running an application. Introduced parameter is optional. Default value of MPOOL_NB_BUF (0x20000) is preserved. Signed-off-by: Mariusz Drost <mariuszx.drost@intel.com> Change-Id: I9517955f313b6e97da1bb20c50b25e761430e0a8
Diffstat (limited to 'examples/l4fwd/main.c')
-rw-r--r--examples/l4fwd/main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/l4fwd/main.c b/examples/l4fwd/main.c
index 469776f..57e9cfd 100644
--- a/examples/l4fwd/main.c
+++ b/examples/l4fwd/main.c
@@ -61,7 +61,7 @@ RTE_DEFINE_PER_LCORE(struct netfe_lcore *, _fe);
static volatile int force_quit;
-static struct netbe_cfg becfg;
+static struct netbe_cfg becfg = {.mpool_buf_num=MPOOL_NB_BUF};
static struct rte_mempool *mpool[RTE_MAX_NUMA_NODES + 1];
static struct rte_mempool *frag_mpool[RTE_MAX_NUMA_NODES + 1];
static char proto_name[3][10] = {"udp", "tcp", ""};