app/testpmd: fix crash of txonly with multiple segments
authorYongseok Koh <yskoh@mellanox.com>
Wed, 27 Dec 2017 03:51:38 +0000 (19:51 -0800)
committerThomas Monjalon <thomas@monjalon.net>
Tue, 9 Jan 2018 23:28:24 +0000 (00:28 +0100)
commitb03913e9e22fbd7206c3d266b0f52831eacd96b3
tree0fe23bbae5c77d2367809ac9553ffcd9e8ae739c
parent2c9808149cdf97313e54e1dcdebe251c010a3f7d
app/testpmd: fix crash of txonly with multiple segments

Running txonly mode can crash with "--txpkts=20,470". copy_len should be
properly adjusted.

Fixes: af75078fece3 ("first public release")
Cc: stable@dpdk.org
Signed-off-by: Yongseok Koh <yskoh@mellanox.com>
Acked-by: Wenzhuo Lu <wenzhuo.lu@intel.com>
app/test-pmd/txonly.c