dpdk: Only use --file-prefix flag on Linux

--file-prefix is only supported by DPDK on Linux currently.

Type: improvement
Change-Id: I47765ea666b7d14011804e7cc90d9035bce1bc93
Signed-off-by: Tom Jones <thj@freebsd.org>
This commit is contained in:
Tom Jones
2024-02-02 14:32:00 +00:00
committed by Damjan Marion
parent e625d0e7af
commit 04880a94c1

View File

@ -1280,6 +1280,7 @@ dpdk_config (vlib_main_t * vm, unformat_input_t * input)
vec_add1 (conf->eal_init_args, (u8 *) "--no-telemetry");
}
#ifdef __linux__
if (!file_prefix)
{
tmp = format (0, "--file-prefix%c", 0);
@ -1287,6 +1288,7 @@ dpdk_config (vlib_main_t * vm, unformat_input_t * input)
tmp = format (0, "vpp%c", 0);
vec_add1 (conf->eal_init_args, tmp);
}
#endif
if (no_pci == 0 && geteuid () == 0)
dpdk_bind_devices_to_uio (conf);