xfrm: Add an inbound percpu state cache.
authorSteffen Klassert <steffen.klassert@secunet.com>
Wed, 23 Oct 2024 10:53:44 +0000 (12:53 +0200)
committerSteffen Klassert <steffen.klassert@secunet.com>
Tue, 29 Oct 2024 10:56:18 +0000 (11:56 +0100)
commit81a331a0e72ddc2f75092603d9577bd1a0ca23ad
tree671b54a39ed399aca948c71880fda632c7483525
parent0045e3d80613cc7174dc15f189ee6fc4e73b9365
xfrm: Add an inbound percpu state cache.

Now that we can have percpu xfrm states, the number of active
states might increase. To get a better lookup performance,
we add a percpu cache to cache the used inbound xfrm states.

Signed-off-by: Steffen Klassert <steffen.klassert@secunet.com>
Tested-by: Antony Antony <antony.antony@secunet.com>
Tested-by: Tobias Brunner <tobias@strongswan.org>
include/net/netns/xfrm.h
include/net/xfrm.h
net/ipv4/esp4_offload.c
net/ipv6/esp6_offload.c
net/xfrm/xfrm_input.c
net/xfrm/xfrm_state.c