VPP-1268: Add option for memory channels DPDK uses 63/13363/6
authorJessica Tallon <tsyesika@igalia.com>
Thu, 5 Jul 2018 13:59:36 +0000 (15:59 +0200)
committerDamjan Marion <dmarion@me.com>
Tue, 21 Aug 2018 19:54:48 +0000 (19:54 +0000)
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>
src/plugins/dpdk/device/init.c

index 9b14c1a..23c1279 100644 (file)
@@ -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))