app/testpmd: do not use TSO for small packets
authorOlivier Matz <olivier.matz@6wind.com>
Wed, 12 Oct 2016 15:39:49 +0000 (17:39 +0200)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Wed, 12 Oct 2016 16:38:49 +0000 (18:38 +0200)
commit97c21329d42ba810d3468446bf30b8b58219a55e
treeafc5fbf1cd26716449545e0e5e9c66fb40553dea
parent6eab3078591c7688336c312e0366bbed5ee609a5
app/testpmd: do not use TSO for small packets

Asking for TSO (TCP Segmentation Offload) on packets that are already
smaller than (headers + MSS) does not work, for instance on ixgbe.

Fix the csumonly engine to only set the TSO flag when a segmentation
offload is really required, i.e. when packet is large enough.

Signed-off-by: Olivier Matz <olivier.matz@6wind.com>
Acked-by: Pablo de Lara <pablo.de.lara.guarch@intel.com>
app/test-pmd/csumonly.c