]> Git Repo - linux.git/commit - net/xfrm/xfrm_state.c
xfrm: Add support for per cpu xfrm state handling.
authorSteffen Klassert <[email protected]>
Wed, 23 Oct 2024 10:53:42 +0000 (12:53 +0200)
committerSteffen Klassert <[email protected]>
Tue, 29 Oct 2024 10:56:00 +0000 (11:56 +0100)
commit1ddf9916ac09313128e40d6581cef889c0b4ce84
tree40779dc9c84487013a8c2c339aab2a855e10169c
parentab101c553bc1f76a839163d1dc0d1e715ad6bb4e
xfrm: Add support for per cpu xfrm state handling.

Currently all flows for a certain SA must be processed by the same
cpu to avoid packet reordering and lock contention of the xfrm
state lock.

To get rid of this limitation, the IETF standardized per cpu SAs
in RFC 9611. This patch implements the xfrm part of it.

We add the cpu as a lookup key for xfrm states and a config option
to generate acquire messages for each cpu.

With that, we can have on each cpu a SA with identical traffic selector
so that flows can be processed in parallel on all cpus.

Signed-off-by: Steffen Klassert <[email protected]>
Tested-by: Antony Antony <[email protected]>
Tested-by: Tobias Brunner <[email protected]>
include/net/xfrm.h
include/uapi/linux/xfrm.h
net/key/af_key.c
net/xfrm/xfrm_compat.c
net/xfrm/xfrm_state.c
net/xfrm/xfrm_user.c
This page took 0.0569460000000001 seconds and 4 git commands to generate.