summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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))