summaryrefslogtreecommitdiff
path: root/app/test-pmd/testpmd.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/testpmd.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/testpmd.c')
-rw-r--r--app/test-pmd/testpmd.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/app/test-pmd/testpmd.c b/app/test-pmd/testpmd.c
index ee8aa23..40c873b 100644
--- a/app/test-pmd/testpmd.c
+++ b/app/test-pmd/testpmd.c
@@ -217,6 +217,9 @@ uint8_t tx_pkt_nb_segs = 1; /**< Number of segments in TXONLY packets */
enum tx_pkt_split tx_pkt_split = TX_PKT_SPLIT_OFF;
/**< Split policy for packets to TX. */
+uint8_t txonly_multi_flow;
+/**< Whether multiple flows are generated in TXONLY mode. */
+
uint16_t nb_pkt_per_burst = DEF_PKT_BURST; /**< Number of packets per burst. */
uint16_t mb_mempool_cache = DEF_MBUF_CACHE; /**< Size of mbuf mempool cache. */