xfrm: remove hdr_offset indirection
authorFlorian Westphal <fw@strlen.de>
Fri, 11 Jun 2021 10:50:13 +0000 (12:50 +0200)
committerSteffen Klassert <steffen.klassert@secunet.com>
Fri, 11 Jun 2021 12:48:50 +0000 (14:48 +0200)
commitd1002d2490e3ebc30dd3ba747656cfa90c87e984
tree478f5cebeb7b51255ceea33b2150ec15b8175953
parent848b18fb7fbd2fa5bc4fc2263bb69956fb86120d
xfrm: remove hdr_offset indirection

After previous patches all remaining users set the function pointer to
the same function: xfrm6_find_1stfragopt.

So remove this function pointer and call ip6_find_1stfragopt directly.

Reduces size of xfrm_type to 64 bytes on 64bit platforms.

Signed-off-by: Florian Westphal <fw@strlen.de>
Signed-off-by: Steffen Klassert <steffen.klassert@secunet.com>
include/net/xfrm.h
net/ipv6/ah6.c
net/ipv6/esp6.c
net/ipv6/ipcomp6.c
net/ipv6/xfrm6_output.c
net/xfrm/xfrm_output.c