app/testpmd: add ability to split outgoing packets
authorKonstantin Ananyev <konstantin.ananyev@intel.com>
Tue, 10 Nov 2015 13:48:20 +0000 (13:48 +0000)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Wed, 11 Nov 2015 23:22:26 +0000 (00:22 +0100)
commit79bec05b32b75ce38a916f0d7605f6cd448ea72b
treea085ea4907dff1dcef09a6e2b869b38e8231b303
parenta4aca79ba4d866627383efa5967a4540a67ccffa
app/testpmd: add ability to split outgoing packets

For CSUM forwarding mode add ability to copy & split outgoing packet
into the new mbuf that consists of multiple segments.
For TXONLY and CSUM forwarding modes add ability to make number of
segments in the outgoing packet to vary on a per packet basis.
Number of segments and size of each segment is controlled by
'set txpkts' command.
Split policy is controlled by 'set txsplit' command.
Possible values are: on | off | rand.
Tha allows to increase test coverage for TX PMD codepaths.

Signed-off-by: Konstantin Ananyev <konstantin.ananyev@intel.com>
Acked-by: Pablo de Lara <pablo.de.lara.guarch@intel.com>
app/test-pmd/cmdline.c
app/test-pmd/config.c
app/test-pmd/csumonly.c
app/test-pmd/testpmd.c
app/test-pmd/testpmd.h
app/test-pmd/txonly.c
doc/guides/testpmd_app_ug/testpmd_funcs.rst