Skip to content

RFC Support asynchronous crypto for IPsec GSO.

Steffen Klassert netdev 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 RFC Latest5 patches 1 replyIn review
  2. v1 RFC5 patches 3 repliesSuperseded

Changes in v2 from the cover letter

- Resolve conflicts with the lockless qdisc patchset.

- Fix compilation error when CONFIG_XFRM is not set.

- Order local local variables of new functions in reverse christmas tree ordering.

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5xfrm: Separate ESP handling from segmentation for GRO packets.include/net/xfrm.h net/core/dev.c net/ipv4/esp4_offload.c +4 more+129 -1320 replies
2/5net: Add asynchronous callbacks for xfrm on layer 2.include/linux/netdevice.h include/net/xfrm.h net/core/dev.c +5 more+175 -360 replies
3/5xfrm: Allow to use the layer2 IPsec GSO codepath for software crypto.net/xfrm/xfrm_device.c+2 -20 replies
4/5xfrm: Allow IPsec GSO with software crypto for local sockets.include/net/xfrm.h+2 -00 replies
5/5esp: Don't require synchronous crypto fallback on offloading anymore.net/ipv4/esp4.c net/ipv6/esp6.c+4 -200 replies

Reviews trailers per patch

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

Read the v2 thread

Cover letter [PATCH RFC v2 0/5] Support asynchronous crypto for IPsec GSO.

This patchset implements asynchronous crypto handling in the layer 2 TX path. With this we can allow IPsec ESP GSO for software crypto. This also merges the IPsec GSO and non-GSO paths to both use validate_xmit_xfrm().

1) Separate ESP handling from segmentation for GRO packets. This unifies the IPsec GSO and non GSO codepath.

2) Add asynchronous callbacks for xfrm on layer 2. This adds the necessary infrastructure to core networking.

3) Allow to use the layer2 IPsec GSO codepath for software crypto, all infrastructure is there now.

4) Also allow IPsec GSO with software crypto for local sockets.

5) Don't require synchronous crypto fallback on IPsec offloading, it is not needed anymore.

I plan to merge this to ipsec-next during this development cycle.

Changes from v1:

- Resolve conflicts with the lockless qdisc patchset.

- Fix compilation error when CONFIG_XFRM is not set.

- Order local local variables of new functions in reverse christmas tree ordering.