diff options
author | Jessica Tallon <tsyesika@igalia.com> | 2018-07-05 15:59:36 +0200 |
---|---|---|
committer | Damjan Marion <dmarion@me.com> | 2018-08-21 19:54:48 +0000 |
commit | 505ec22c64b294fe683a99958a65d7979c9ccaaf (patch) | |
tree | 060ef4cb693b958cb987fe0eaa6902cd4c5500a8 /src | |
parent | 7ee11827dde243a8297574818e6902ced107b98b (diff) |
VPP-1268: Add option for memory channels DPDK uses
This adds a `num-mem-channels` option for DPDK enabling support for
choosing the number of memory channels used.
Change-Id: I1663dd866ac60592b6dd02261af66d87c64acdb1
Signed-off-by: Jessica Tallon <tsyesika@igalia.com>
Diffstat (limited to 'src')
-rw-r--r-- | src/plugins/dpdk/device/init.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/plugins/dpdk/device/init.c b/src/plugins/dpdk/device/init.c index 9b14c1a9d4f..23c12795361 100644 --- a/src/plugins/dpdk/device/init.c +++ b/src/plugins/dpdk/device/init.c @@ -1140,6 +1140,8 @@ dpdk_config (vlib_main_t * vm, unformat_input_t * input) num_whitelisted++; } + else if (unformat (input, "num-mem-channels %d", &conf->nchannels)) + conf->nchannels_set_manually = 0; else if (unformat (input, "num-mbufs %d", &conf->num_mbufs)) ; else if (unformat (input, "uio-driver %s", &conf->uio_driver_name)) |