]> git.baikalelectronics.ru Git - kernel.git/commit
esp: Add a software GRO codepath
authorSteffen Klassert <steffen.klassert@secunet.com>
Wed, 15 Feb 2017 08:40:00 +0000 (09:40 +0100)
committerSteffen Klassert <steffen.klassert@secunet.com>
Wed, 15 Feb 2017 10:04:11 +0000 (11:04 +0100)
commitecaae2a271dc04d2fb5c0197cdb4fcb6a1cd2fc1
tree33c29b31f0e66433b340998aa822bebe322aa116
parent992244d0a8c86e08b526d06194424f211a743a10
esp: Add a software GRO codepath

This patch adds GRO ifrastructure and callbacks for ESP on
ipv4 and ipv6.

In case the GRO layer detects an ESP packet, the
esp{4,6}_gro_receive() function does a xfrm state lookup
and calls the xfrm input layer if it finds a matching state.
The packet will be decapsulated and reinjected it into layer 2.

Signed-off-by: Steffen Klassert <steffen.klassert@secunet.com>
12 files changed:
include/net/xfrm.h
net/ipv4/Kconfig
net/ipv4/Makefile
net/ipv4/esp4_offload.c [new file with mode: 0644]
net/ipv4/xfrm4_input.c
net/ipv4/xfrm4_mode_transport.c
net/ipv6/Kconfig
net/ipv6/Makefile
net/ipv6/esp6_offload.c [new file with mode: 0644]
net/ipv6/xfrm6_input.c
net/ipv6/xfrm6_mode_transport.c
net/xfrm/xfrm_input.c