test: fix buffer overflow in Tx burst
authorAlvin Zhang <alvinx.zhang@intel.com>
Wed, 25 Nov 2020 09:46:22 +0000 (17:46 +0800)
committerThomas Monjalon <thomas@monjalon.net>
Tue, 19 Jan 2021 10:03:14 +0000 (11:03 +0100)
commit58325f094a059e8ef4e1085d322a46107aad468f
tree60fb91fd13af3c7de97ca74e31efd186b33e897b
parentdc8ac7980c5982e512c6723b3409fa69ed106f20
test: fix buffer overflow in Tx burst

The Tx buffer may overflow when there is more than one port.

Fixes: 002ade70e933 ("app/test: measure cycles per packet in Rx/Tx")
Cc: stable@dpdk.org
Signed-off-by: Alvin Zhang <alvinx.zhang@intel.com>
Acked-by: Jeff Guo <jia.guo@intel.com>
Tested-by: Wei Ling <weix.ling@intel.com>
app/test/test_pmd_perf.c