summaryrefslogtreecommitdiff
path: root/net/key
diff options
context:
space:
mode:
authorSabrina Dubroca <sd@queasysnail.net>2021-04-25 21:47:12 +0200
committerSteffen Klassert <steffen.klassert@secunet.com>2021-05-14 13:52:01 +0200
commitfe9f1d8779cb47046e76ea209b6eece7ec56d1b4 (patch)
tree489289550003383fbb8c5d82b031ce9761643315 /net/key
parent335a2a1fcefc948927e8c15636d9dc5d983b8f50 (diff)
xfrm: add state hashtable keyed by seq
When creating new states with seq set in xfrm_usersa_info, we walk through all the states already installed in that netns to find a matching ACQUIRE state (__xfrm_find_acq_byseq, called from xfrm_state_add). This causes severe slowdowns on systems with a large number of states. This patch introduces a hashtable using x->km.seq as key, so that the corresponding state can be found in a reasonable time. Signed-off-by: Sabrina Dubroca <sd@queasysnail.net> Signed-off-by: Steffen Klassert <steffen.klassert@secunet.com>
Diffstat (limited to 'net/key')
0 files changed, 0 insertions, 0 deletions