diff options
| author | Sabrina Dubroca <[email protected]> | 2021-04-25 19:47:12 +0000 |
|---|---|---|
| committer | Steffen Klassert <[email protected]> | 2021-05-14 11:52:01 +0000 |
| commit | fe9f1d8779cb47046e76ea209b6eece7ec56d1b4 (patch) | |
| tree | 489289550003383fbb8c5d82b031ce9761643315 /net/switchdev/switchdev.c | |
| parent | esp: drop unneeded assignment in esp4_gro_receive() (diff) | |
| download | kernel-fe9f1d8779cb47046e76ea209b6eece7ec56d1b4.tar.gz kernel-fe9f1d8779cb47046e76ea209b6eece7ec56d1b4.zip | |
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 <[email protected]>
Signed-off-by: Steffen Klassert <[email protected]>
Diffstat (limited to 'net/switchdev/switchdev.c')
0 files changed, 0 insertions, 0 deletions
