Default values are not used here, so remove the option for them.

Suggested-by: David Marchand <david.march...@redhat.com>
Signed-off-by: Kevin Traynor <ktray...@redhat.com>
---
 lib/dpdk.c | 11 +++--------
 1 file changed, 3 insertions(+), 8 deletions(-)

diff --git a/lib/dpdk.c b/lib/dpdk.c
index 1f4f2bf08..a6f82dd8a 100644
--- a/lib/dpdk.c
+++ b/lib/dpdk.c
@@ -71,10 +71,8 @@ construct_dpdk_options(const struct smap *ovs_other_config, 
struct svec *args)
         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"},
     };
 
@@ -85,7 +83,4 @@ construct_dpdk_options(const struct smap *ovs_other_config, 
struct svec *args)
         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) {
-- 
2.51.0

_______________________________________________
dev mailing list
d...@openvswitch.org
https://mail.openvswitch.org/mailman/listinfo/ovs-dev

Reply via email to