ipc: end multiprocess thread during cleanup
[dpdk.git] / app / test-flow-perf / main.c
index 2b612aa..56d4373 100644 (file)
@@ -715,6 +715,7 @@ args_parse(int argc, char **argv)
                { "policy-mtr",                 1, 0, 0 },
                { "meter-profile",              1, 0, 0 },
                { "packet-mode",                0, 0, 0 },
+               { 0, 0, 0, 0 },
        };
 
        RTE_ETH_FOREACH_DEV(i)
@@ -951,7 +952,7 @@ args_parse(int argc, char **argv)
                default:
                        usage(argv[0]);
                        rte_exit(EXIT_FAILURE, "Invalid option: %s\n",
-                                       argv[optind]);
+                                       argv[optind - 1]);
                        break;
                }
        }
@@ -1518,7 +1519,7 @@ dump_used_cpu_time(const char *item,
         * threads time.
         *
         * Throughput: total count of rte rules divided
-        * over the average of the time cosumed by all
+        * over the average of the time consumed by all
         * threads time.
         */
        double insertion_latency_time;