dpdk: do not use TSO for small packets 88/30188/12
authorSomnath Kotur <somnath.kotur@broadcom.com>
Mon, 30 Nov 2020 02:54:45 +0000 (08:24 +0530)
committerDamjan Marion <dmarion@me.com>
Thu, 21 Jan 2021 13:40:42 +0000 (13:40 +0000)
commit09332e9bc09748dd7eea564cb47f70863374ebf8
tree0ff9eb4469a277749d0a780aedcc5bf2fb640a50
parente1480a2c12ff764622dd2ae1bc9bce6cd25bcbdd
dpdk: do not use TSO for small packets

Asking for TSO (TCP Segmentation Offload) on packets that are already
smaller than (headers + MSS) does not make sense and may not work
on some HW.
Fix to only set the TSO flag when a segmentation offload is
really required, i.e when packet is large enough.

Type: improvement

Signed-off-by: Somnath Kotur <somnath.kotur@broadcom.com>
Change-Id: I7830ae8474581c8e518fb4910f7863e10346bb62
Signed-off-by: Somnath Kotur <somnath.kotur@broadcom.com>
src/plugins/dpdk/device/device.c