summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDeepak S <deepak.s@linux.intel.com>2017-10-17 08:50:34 +0530
committerDeepak S <deepak.s@linux.intel.com>2017-10-16 20:24:51 -0700
commit10c3e20c6c70cf8ea232f2e0e29440933e53c448 (patch)
treefee04caee2abdcb56b325ac38a1b6b89b3b5f729
parent9dae4a62e3405311151e164d25e6d93d6a707726 (diff)
Fix udp replay issue
Change-Id: I6b78044beb21fdf07ad70d22c81bcca6ca955e63 Signed-off-by: Deepak S <deepak.s@linux.intel.com>
-rw-r--r--VNFs/UDP_Replay/main.c12
-rw-r--r--common/vnf_common/version.h2
2 files changed, 7 insertions, 7 deletions
diff --git a/VNFs/UDP_Replay/main.c b/VNFs/UDP_Replay/main.c
index 2e1638e4..920dcbf6 100644
--- a/VNFs/UDP_Replay/main.c
+++ b/VNFs/UDP_Replay/main.c
@@ -2122,7 +2122,7 @@ print_usage(const char *prgname)
" [--enable-jumbo [--max-pkt-len PKTLEN]]\n"
" -p PORTMASK: hexadecimal bitmask of ports to configure\n"
" -P : enable promiscuous mode\n"
- " -v version: display app version\n"
+ " --version: display app version\n"
" --config (port,queue,lcore): rx queues configuration\n"
" --eth-dest=X,MM:MM:MM:MM:MM:MM: optional, ethernet destination for port X\n"
" --no-numa: optional, disable numa awareness\n"
@@ -2321,7 +2321,7 @@ parse_args(int argc, char **argv)
argvopt = argv;
- while ((opt = getopt_long(argc, argvopt, "v:s:p:P",
+ while ((opt = getopt_long(argc, argvopt, "s:p:P",
lgopts, &option_index)) != EOF) {
switch (opt) {
@@ -2759,10 +2759,6 @@ main(int argc, char **argv)
struct pipeline_params *params;
/* parse application arguments (after the EAL ones) */
- ret = parse_args(argc, argv);
- if (ret < 0)
- rte_exit(EXIT_FAILURE, "Invalid UDP_Replay parameters\n");
-
/* init EAL */
ret = rte_eal_init(argc, argv);
if (ret < 0)
@@ -2771,6 +2767,10 @@ main(int argc, char **argv)
argv += ret;
timer_lcore = rte_lcore_id();
+ ret = parse_args(argc, argv);
+ if (ret < 0)
+ rte_exit(EXIT_FAILURE, "Invalid UDP_Replay parameters\n");
+
if (check_lcore_params() < 0)
rte_exit(EXIT_FAILURE, "check_lcore_params failed\n");
diff --git a/common/vnf_common/version.h b/common/vnf_common/version.h
index 00d8f458..e6a7e46b 100644
--- a/common/vnf_common/version.h
+++ b/common/vnf_common/version.h
@@ -22,7 +22,7 @@
/* PROGRAM_NAME defined through Makefile */
#define VERSION_MAJOR 0
-#define VERSION_MINOR 39
+#define VERSION_MINOR 1
#define VERSION_REV 0
#if VERSION_REV > 0