Skip to content

RFC IPsec hardware offloding API

Steffen Klassert netdev 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 RFC Latest14 patches 1 replyIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/14net: Add ESP offload featuresinclude/linux/netdev_features.h include/linux/netdevice.h include/linux/skbuff.h +1 more+13 -10 replies
2/14xfrm: Add a xfrm type offload.include/net/xfrm.h net/xfrm/xfrm_state.c+95 -60 replies
3/14xfrm: Move device notifications to a sepatate fileinclude/net/xfrm.h net/xfrm/Makefile net/xfrm/xfrm_device.c +1 more+46 -170 replies
4/14xfrm: Add mode handlers for IPsec on layer 2include/net/xfrm.h net/ipv4/xfrm4_mode_transport.c net/ipv4/xfrm4_mode_tunnel.c +2 more+124 -00 replies
5/14xfrm: Add an IPsec hardware offloading APIinclude/linux/netdevice.h include/net/xfrm.h include/uapi/linux/xfrm.h +11 more+424 -240 replies
6/14esp6: Remame esp_input_done2net/ipv6/esp6.c+3 -30 replies
7/14esp4: Reorganize esp_outputinclude/net/esp.h net/ipv4/esp4.c net/ipv4/esp4_offload.c+301 -1580 replies
8/14esp6: Reorganize esp_outputinclude/net/esp.h net/ipv6/esp6.c net/ipv6/esp6_offload.c+246 -1240 replies
9/14esp: Add gso handlers for esp4 and esp6net/ipv4/esp4.c net/ipv4/esp4_offload.c net/ipv6/esp6.c +2 more+203 -40 replies
10/14xfrm: Add xfrm_replay_overflow functions for offloadingnet/xfrm/xfrm_replay.c+157 -20 replies
11/14esp: Use a synchronous crypto algorithm on offloading.net/ipv4/esp4.c net/ipv6/esp6.c+20 -40 replies
12/14net: Add a xfrm validate function to validate_xmit_skbinclude/net/xfrm.h net/core/dev.c net/xfrm/xfrm_device.c+38 -00 replies
13/14xfrm: Add encapsulation header offsets while SKB is not encryptednet/ipv4/xfrm4_mode_transport.c net/ipv4/xfrm4_mode_tunnel.c net/ipv6/xfrm6_mode_transport.c +2 more+11 -00 replies
14/14xfrm: Prepare the GRO codepath for hardware offloading.net/ipv4/esp4_offload.c net/ipv6/esp6_offload.c net/xfrm/xfrm_input.c+71 -630 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH RFC ipsec-next 0/14] IPsec hardware offloding API

This patchset adds the basic infrastructure for IPsec hardware offloading, it creates a configuration API and adjusts the packet path.

Patch 1 adds the needed netdev features to configure IPsec offloads.

Patch 2 - 4 prepares for IPsec hardware offloading.

Patch 5 implements the IPsec hardware offloading API.

Patch 5 - 8 reorganize esp_output so that we can use it on layer 2 to implement the software fallback for the case that a packet is rerouted to a device that does not support IPsec offloading.

Patch 9 adds gso handlers for esp4 and esp6, this implements the software fallback for GSO packets.

Patch 10 adds xfrm_replay_overflow functions for offloading.

Patch 11 changes ESP to use a synchronous crypto algorithm on offloading, we don't have the option for asynchronous returns when we handle IPsec at layer2.

Patch 12 adds a xfrm validate function to validate_xmit_skb. This implements the software fallback for non GSO packets.

Patch 13 sets the inner_network and inner_transport members of the SKB, as well as encapsulation, to reflect the actual positions of these headers, and removes them only once encryption is done on the payload.

Patch 14 prepares the ESP GRO codepath for hardware offloading.