sfc: support GRE TSO on EF100
authorEdward Cree <ecree@solarflare.com>
Thu, 12 Nov 2020 15:20:05 +0000 (15:20 +0000)
committerJakub Kicinski <kuba@kernel.org>
Fri, 13 Nov 2020 23:33:30 +0000 (15:33 -0800)
commitc5122cf584128f9d42655189e69fda7151c1f275
treefd0dcb5c24fc2dd2dcc7e7bce6478f9ad8a25218
parent42bfd69a9fdd84b6b99324e745c4817878bbe0b7
sfc: support GRE TSO on EF100

We can treat SKB_GSO_GRE almost exactly the same as UDP tunnels, except
 that we don't want to edit the outer UDP len (as there isn't one).
For SKB_GSO_GRE_CSUM, we have to use GSO_PARTIAL as the device doesn't
 support offload of non-UDP outer L4 checksums.

Signed-off-by: Edward Cree <ecree@solarflare.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Acked-by: Martin Habets <mhabets@solarflare.com>
Reviewed-by: Alexander Duyck <alexanderduyck@fb.com>
drivers/net/ethernet/sfc/ef100_nic.c
drivers/net/ethernet/sfc/ef100_tx.c