aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins
diff options
context:
space:
mode:
authorVladimir Ratnikov <vratnikov@netgate.com>2020-10-01 06:16:13 -0400
committerDamjan Marion <dmarion@me.com>2020-10-02 10:35:51 +0000
commit9a59785c91acf12926224b4660f2b12fe1e9eb1d (patch)
tree03dc7b4fe03c06f0db787666e92878d4966e0b28 /src/plugins
parent1f6a6b8b2b4efd4d6735ffd6fa683a0190f232e2 (diff)
dpdk: split PCI blacklist rte_eal args from startup.conf
Type: fix Fixes: ed04407829728c5d258b6600155edabd5198d971 Signed-off-by: Vladimir Ratnikov <vratnikov@netgate.com> Change-Id: I5aebcba7b97db758310042fd446328ee8f691641
Diffstat (limited to 'src/plugins')
-rw-r--r--src/plugins/dpdk/device/init.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/plugins/dpdk/device/init.c b/src/plugins/dpdk/device/init.c
index d07acd644a2..2615f16364d 100644
--- a/src/plugins/dpdk/device/init.c
+++ b/src/plugins/dpdk/device/init.c
@@ -1258,9 +1258,10 @@ dpdk_config (vlib_main_t * vm, unformat_input_t * input)
if (unformat
(input, "blacklist %x:%x:%x.%x", &domain, &bus, &device, &func))
{
+ tmp = format (0, "-b%c", 0);
+ vec_add1 (conf->eal_init_args, tmp);
tmp =
- format (0, "-b %04x:%02x:%02x.%x%c", domain, bus, device, func,
- 0);
+ format (0, "%04x:%02x:%02x.%x%c", domain, bus, device, func, 0);
vec_add1 (conf->eal_init_args, tmp);
}
else if (unformat (input, "blacklist %x:%x", &vendor, &device))