If not explicitly set by the user, set a default value of
"-a 0000:00:00.0".
This allows DPDK to have the PCI bus, but not probe any devices as it
does by default.

Signed-off-by: Eli Britstein <[email protected]>
---
 lib/dpdk.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/lib/dpdk.c b/lib/dpdk.c
index d27b95cd9..2db44b3f0 100644
--- a/lib/dpdk.c
+++ b/lib/dpdk.c
@@ -227,8 +227,10 @@ construct_dpdk_mutex_options(const struct smap 
*ovs_other_config,
 static void
 construct_dpdk_args(const struct smap *ovs_other_config, struct svec *args)
 {
-    const char *extra_configuration = smap_get(ovs_other_config, "dpdk-extra");
+    const char *extra_configuration;
 
+    extra_configuration = smap_get_def(ovs_other_config, "dpdk-extra",
+                                       "-a 0000:00:00.0");
     if (extra_configuration) {
         svec_parse_words(args, extra_configuration);
     }
-- 
2.34.1

_______________________________________________
dev mailing list
[email protected]
https://mail.openvswitch.org/mailman/listinfo/ovs-dev

Reply via email to