net/sfc: fix TSO and checksum offloads for EF10
authorIvan Malov <ivan.malov@oktetlabs.ru>
Tue, 2 Feb 2021 15:23:45 +0000 (18:23 +0300)
committerFerruh Yigit <ferruh.yigit@intel.com>
Wed, 3 Feb 2021 10:37:08 +0000 (11:37 +0100)
commitbe56d20ff17fdba2568a56e35abf1706cb48bb85
tree92fefbd8797640bf5d3a33016cdffb19e26515e4
parent3c4f2a4ff76bee1b26d2fdff8c4b2d4174b09a1b
net/sfc: fix TSO and checksum offloads for EF10

This is workaround for 8000-series EF10 hardware TSO bug.
Innermost IP length and outer UDP datagram length must be
greater than or equal to the corresponding values derived
from the MSS; otherwise, the checksum offloads will break.

Fixes: c1ce2ba218f8 ("net/sfc: support tunnel TSO on EF10 native Tx datapath")
Fixes: 6bc985e41155 ("net/sfc: support TSO in EF10 Tx datapath")
Fixes: fec33d5bb3eb ("net/sfc: support firmware-assisted TSO")
Cc: stable@dpdk.org
Signed-off-by: Ivan Malov <ivan.malov@oktetlabs.ru>
Reviewed-by: Andrew Rybchenko <andrew.rybchenko@oktetlabs.ru>
Reviewed-by: Andy Moreton <amoreton@xilinx.com>
drivers/net/sfc/sfc_ef10_tx.c
drivers/net/sfc/sfc_tso.c
drivers/net/sfc/sfc_tso.h