xfrm: remove state and template sort indirections from xfrm_state_afinfo
authorFlorian Westphal <fw@strlen.de>
Fri, 3 May 2019 15:46:17 +0000 (17:46 +0200)
committerSteffen Klassert <steffen.klassert@secunet.com>
Thu, 6 Jun 2019 06:34:50 +0000 (08:34 +0200)
commit3aaf3915a31aac83523d2de0191a480d3ad1e747
treeecae3204bda9b89b3d6a38d3b05232af71114bc3
parente46817472a1d7da32e8f265f9469a4e2fa39c60f
xfrm: remove state and template sort indirections from xfrm_state_afinfo

No module dependency, placing this in xfrm_state.c avoids need for
an indirection.

This also removes the state spinlock -- I don't see why we would need
to hold it during sorting.

This in turn allows to remove the 'net' argument passed to
xfrm_tmpl_sort.  Last, remove the EXPORT_SYMBOL, there are no modular
callers.

For the CONFIG_IPV6=m case, vmlinux size increase is about 300 byte.

Signed-off-by: Florian Westphal <fw@strlen.de>
Signed-off-by: Steffen Klassert <steffen.klassert@secunet.com>
include/net/xfrm.h
net/ipv6/xfrm6_state.c
net/xfrm/xfrm_policy.c
net/xfrm/xfrm_state.c