]> git.feebdaed.xyz Git - 0xmirror/ovs.git/commitdiff
dpdk: Clean up dpdk option map.
authorKevin Traynor <ktraynor@redhat.com>
Thu, 11 Sep 2025 13:33:12 +0000 (14:33 +0100)
committerKevin Traynor <ktraynor@redhat.com>
Thu, 18 Sep 2025 11:43:25 +0000 (12:43 +0100)
Default values are not used here, so remove the option for them.

Suggested-by: David Marchand <david.marchand@redhat.com>
Signed-off-by: Kevin Traynor <ktraynor@redhat.com>
Acked-by: Eelco Chaudron <echaudro@redhat.com>
Reviewed-by: David Marchand <david.marchand@redhat.com>
lib/dpdk.c

index 1f4f2bf083e303ad32d7f3948d02d36e1efbab10..a6f82dd8a92726aa2ff25e85f0bc32ddef1ae685 100644 (file)
@@ -70,12 +70,10 @@ construct_dpdk_options(const struct smap *ovs_other_config, struct svec *args)
     struct dpdk_options_map {
         const char *ovs_configuration;
         const char *dpdk_option;
-        bool default_enabled;
-        const char *default_value;
     } opts[] = {
-        {"dpdk-lcore-mask",   "-c",             false, NULL},
-        {"dpdk-hugepage-dir", "--huge-dir",     false, NULL},
-        {"dpdk-socket-limit", "--socket-limit", false, NULL},
+        {"dpdk-lcore-mask",   "-c"            },
+        {"dpdk-hugepage-dir", "--huge-dir"    },
+        {"dpdk-socket-limit", "--socket-limit"},
     };
 
     int i;
@@ -84,9 +82,6 @@ construct_dpdk_options(const struct smap *ovs_other_config, struct svec *args)
     for (i = 0; i < ARRAY_SIZE(opts); ++i) {
         const char *value = smap_get(ovs_other_config,
                                      opts[i].ovs_configuration);
-        if (!value && opts[i].default_enabled) {
-            value = opts[i].default_value;
-        }
 
         if (value) {
             if (!args_contains(args, opts[i].dpdk_option)) {