dpdk: Only use --file-prefix flag on Linux 53/40853/2
authorTom Jones <[email protected]>
Fri, 2 Feb 2024 14:32:00 +0000 (14:32 +0000)
committerDamjan Marion <[email protected]>
Mon, 6 May 2024 11:39:23 +0000 (11:39 +0000)
--file-prefix is only supported by DPDK on Linux currently.

Type: improvement
Change-Id: I47765ea666b7d14011804e7cc90d9035bce1bc93
Signed-off-by: Tom Jones <[email protected]>
src/plugins/dpdk/device/init.c

index 2d038b9..421f662 100644 (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);