]> git.droids-corp.org - dpdk.git/blobdiff - app/test-pmd/parameters.c
app/testpmd: enable NUMA support by default
[dpdk.git] / app / test-pmd / parameters.c
index 73da65a9a8c396663c04063e9a439ec0f893a98a..3f4d3a2478e243e87d15ffd18349eae94127ccea 100644 (file)
@@ -521,6 +521,7 @@ launch_args_parse(int argc, char** argv)
                { "coremask",                   1, 0, 0 },
                { "portmask",                   1, 0, 0 },
                { "numa",                       0, 0, 0 },
                { "coremask",                   1, 0, 0 },
                { "portmask",                   1, 0, 0 },
                { "numa",                       0, 0, 0 },
+               { "no-numa",                    0, 0, 0 },
                { "mp-anon",                    0, 0, 0 },
                { "port-numa-config",           1, 0, 0 },
                { "ring-numa-config",           1, 0, 0 },
                { "mp-anon",                    0, 0, 0 },
                { "port-numa-config",           1, 0, 0 },
                { "ring-numa-config",           1, 0, 0 },
@@ -662,6 +663,8 @@ launch_args_parse(int argc, char** argv)
                                parse_fwd_coremask(optarg);
                        if (!strcmp(lgopts[opt_idx].name, "portmask"))
                                parse_fwd_portmask(optarg);
                                parse_fwd_coremask(optarg);
                        if (!strcmp(lgopts[opt_idx].name, "portmask"))
                                parse_fwd_portmask(optarg);
+                       if (!strcmp(lgopts[opt_idx].name, "no-numa"))
+                               numa_support = 0;
                        if (!strcmp(lgopts[opt_idx].name, "numa")) {
                                numa_support = 1;
                                memset(port_numa,NUMA_NO_CONFIG,RTE_MAX_ETHPORTS);
                        if (!strcmp(lgopts[opt_idx].name, "numa")) {
                                numa_support = 1;
                                memset(port_numa,NUMA_NO_CONFIG,RTE_MAX_ETHPORTS);