summaryrefslogtreecommitdiff
path: root/app/test-pmd/parameters.c
diff options
context:
space:
mode:
authorYongseok Koh <yskoh@mellanox.com>2019-03-28 11:46:28 -0700
committerFerruh Yigit <ferruh.yigit@intel.com>2019-03-29 19:42:42 +0100
commit82010ef55e7cb4948b4bf4ff229716a3a142e95c (patch)
treef475d4695df344cacbb5e0114e404fba4662e82d /app/test-pmd/parameters.c
parent0c85cab92f3a9a5ebb81d7ceadd3f775f2d5c6ff (diff)
downloaddpdk-next-eventdev-82010ef55e7cb4948b4bf4ff229716a3a142e95c.zip
dpdk-next-eventdev-82010ef55e7cb4948b4bf4ff229716a3a142e95c.tar.gz
dpdk-next-eventdev-82010ef55e7cb4948b4bf4ff229716a3a142e95c.tar.xz
app/testpmd: make txonly mode generate multiple flows
Testpmd can generate multiple flows without taking much cost and this could be a simple traffic generator for developer's quick tests. If "--txonly-multi-flow" is specified in the command line, IP source address is varied to generate multiple flows. Signed-off-by: Yongseok Koh <yskoh@mellanox.com> Acked-by: Bernard Iremonger <bernard.iremonger@intel.com>
Diffstat (limited to 'app/test-pmd/parameters.c')
-rw-r--r--app/test-pmd/parameters.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/app/test-pmd/parameters.c b/app/test-pmd/parameters.c
index 38b4197..7b6b609 100644
--- a/app/test-pmd/parameters.c
+++ b/app/test-pmd/parameters.c
@@ -173,6 +173,7 @@ usage(char* progname)
" Used mainly with PCAP drivers.\n");
printf(" --txpkts=X[,Y]*: set TX segment sizes"
" or total packet length.\n");
+ printf(" --txonly-multi-flow: generate multiple flows in txonly mode\n");
printf(" --disable-link-check: disable check on link status when "
"starting/stopping ports.\n");
printf(" --no-lsc-interrupt: disable link status change interrupt.\n");
@@ -632,6 +633,7 @@ launch_args_parse(int argc, char** argv)
{ "no-flush-rx", 0, 0, 0 },
{ "flow-isolate-all", 0, 0, 0 },
{ "txpkts", 1, 0, 0 },
+ { "txonly-multi-flow", 0, 0, 0 },
{ "disable-link-check", 0, 0, 0 },
{ "no-lsc-interrupt", 0, 0, 0 },
{ "no-rmv-interrupt", 0, 0, 0 },
@@ -1141,6 +1143,8 @@ launch_args_parse(int argc, char** argv)
else
rte_exit(EXIT_FAILURE, "bad txpkts\n");
}
+ if (!strcmp(lgopts[opt_idx].name, "txonly-multi-flow"))
+ txonly_multi_flow = 1;
if (!strcmp(lgopts[opt_idx].name, "no-flush-rx"))
no_flush_rx = 1;
if (!strcmp(lgopts[opt_idx].name, "disable-link-check"))