]> www.infradead.org Git - users/jedix/linux-maple.git/commit
xfrm: switch migrate to xfrm_policy_lookup_bytype
authorFlorian Westphal <fw@strlen.de>
Thu, 22 Aug 2024 13:04:31 +0000 (15:04 +0200)
committerSteffen Klassert <steffen.klassert@secunet.com>
Sat, 24 Aug 2024 07:56:09 +0000 (09:56 +0200)
commit563d5ca93e883b9dcb4b7dc8967ac569fd91820d
tree512376576269e981b5e15749e1aea0dd35425a36
parent33f611cf7d52ffdaebdcd6e42672ca1d06e22974
xfrm: switch migrate to xfrm_policy_lookup_bytype

XFRM_MIGRATE still uses the old lookup method:
first check the bydst hash table, then search the list of all the other
policies.

Switch MIGRATE to use the same lookup function as the packetpath.

This is done to remove the last remaining users of the pernet
xfrm.policy_inexact lists with the intent of removing this list.

After this patch, policies are still added to the list on insertion
and they are rehashed as-needed but no single API makes use of these
anymore.

This change is compile tested only.

Cc: Tobias Brunner <tobias@strongswan.org>
Signed-off-by: Florian Westphal <fw@strlen.de>
Signed-off-by: Steffen Klassert <steffen.klassert@secunet.com>
net/xfrm/xfrm_policy.c