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>
Showing
- include/net/xfrm.h 1 addition, 0 deletionsinclude/net/xfrm.h
- net/ipv4/Kconfig 13 additions, 0 deletionsnet/ipv4/Kconfig
- net/ipv4/Makefile 1 addition, 0 deletionsnet/ipv4/Makefile
- net/ipv4/esp4_offload.c 106 additions, 0 deletionsnet/ipv4/esp4_offload.c
- net/ipv4/xfrm4_input.c 6 additions, 0 deletionsnet/ipv4/xfrm4_input.c
- net/ipv4/xfrm4_mode_transport.c 3 additions, 1 deletionnet/ipv4/xfrm4_mode_transport.c
- net/ipv6/Kconfig 13 additions, 0 deletionsnet/ipv6/Kconfig
- net/ipv6/Makefile 1 addition, 0 deletionsnet/ipv6/Makefile
- net/ipv6/esp6_offload.c 108 additions, 0 deletionsnet/ipv6/esp6_offload.c
- net/ipv6/xfrm6_input.c 7 additions, 0 deletionsnet/ipv6/xfrm6_input.c
- net/ipv6/xfrm6_mode_transport.c 3 additions, 1 deletionnet/ipv6/xfrm6_mode_transport.c
- net/xfrm/xfrm_input.c 26 additions, 5 deletionsnet/xfrm/xfrm_input.c
Loading
Please register or sign in to comment