sfc: implement encap TSO on EF100
authorEdward Cree <ecree@solarflare.com>
Wed, 28 Oct 2020 20:43:39 +0000 (20:43 +0000)
committerJakub Kicinski <kuba@kernel.org>
Sat, 31 Oct 2020 00:42:53 +0000 (17:42 -0700)
commit806f9f23b6732de81daf3aafae5363bb56d29ed6
tree926edb93c6ad5ebec71653244e4346c9fcd9f00b
parenta7a375ca56613992160b7f768c408d55d0942909
sfc: implement encap TSO on EF100

The NIC only needs to know where the headers it has to edit (TCP and
 inner and outer IPv4) are, which fits GSO_PARTIAL nicely.
It also supports non-PARTIAL offload of UDP tunnels, again just
 needing to be told the outer transport offset so that it can edit
 the UDP length field.
(It's not clear to me whether the stack will ever use the non-PARTIAL
 version with the netdev feature flags we're setting here.)

Signed-off-by: Edward Cree <ecree@solarflare.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/sfc/ef100_nic.c
drivers/net/ethernet/sfc/ef100_tx.c