Skip to content

RFC Parallel IPsec

Steffen Klassert linux-crypto 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 RFC Latest4 patches 11 repliesIn review
  2. v1 RFC4 patches 9 repliesSuperseded

Changes in v2 from the cover letter

- cpu_chainiv is dropped, pcrypt uses eseqiv as it's IV generator now.

- Add a xfrm netlink message to be able to choose for pcrypt from userspace.

- Use pcrypt just if it is selected from userspace.

- Patchset applies to 2.6.30-rc3

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4padata: generic interface for parallel processinginclude/linux/interrupt.h include/linux/padata.h kernel/Makefile +2 more+610 -31 reply
2/4pcrypt: Add pcrypt crypto parallelization enginecrypto/Kconfig crypto/Makefile crypto/pcrypt.c +5 more+598 -14 replies
3/4xfrm: Add a netlink attribute for software crypto acceleratorsinclude/linux/xfrm.h include/net/xfrm.h net/xfrm/xfrm_user.c+21 -02 replies
4/4esp: Use pcrypt if it is selected as software crypto acceleratornet/ipv4/esp4.c net/ipv6/esp6.c+72 -80 replies

Reviews trailers per patch

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

Read the v2 thread

Cover letter [RFC] [PATCH v2 0/4] Parallel IPsec

This patchset adds the 'pcrypt' parallel crypto template. With this template it is possible to process the crypto requests of a transform in parallel without getting request reorder. This is in particular interesting for IPsec.

The parallel crypto template is based on a generic parallelization/serialization method. This method uses the remote softirq invocation infrastructure for parallelization and serialization. With this method data objects can be processed in parallel, starting at some given point.
After doing some expensive operations in parallel, it is possible to serialize again. The parallelized data objects return after serialization in the order as they were before the parallelization. In the case of IPsec, this makes it possible to run the expensive parts in parallel without getting packet reordering.

Changes from v1:

- cpu_chainiv is dropped, pcrypt uses eseqiv as it's IV generator now.

- Add a xfrm netlink message to be able to choose for pcrypt from userspace.

- Use pcrypt just if it is selected from userspace.

- Patchset applies to 2.6.30-rc3

Steffen