]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitcbb25a6cdfe0adcd8cd7c2d731d5313e91446851
tree926edb93c6ad5ebec71653244e4346c9fcd9f00b
parentf502ede7c490b0eb469abcc3e57c60b6febd4bae
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