summaryrefslogtreecommitdiffstats
path: root/net/ipv6/esp6.c
diff options
context:
space:
mode:
authorFlorian Westphal <fw@strlen.de>2021-06-11 12:50:13 +0200
committerSteffen Klassert <steffen.klassert@secunet.com>2021-06-11 14:48:50 +0200
commitd1002d2490e3ebc30dd3ba747656cfa90c87e984 (patch)
tree478f5cebeb7b51255ceea33b2150ec15b8175953 /net/ipv6/esp6.c
parentxfrm: ipv6: move mip6_rthdr_offset into xfrm core (diff)
downloadlinux-d1002d2490e3ebc30dd3ba747656cfa90c87e984.tar.xz
linux-d1002d2490e3ebc30dd3ba747656cfa90c87e984.zip
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>
Diffstat (limited to 'net/ipv6/esp6.c')
-rw-r--r--net/ipv6/esp6.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/net/ipv6/esp6.c b/net/ipv6/esp6.c
index be2c0ac76eaa..37c4b1726c5e 100644
--- a/net/ipv6/esp6.c
+++ b/net/ipv6/esp6.c
@@ -1250,7 +1250,6 @@ static const struct xfrm_type esp6_type = {
.destructor = esp6_destroy,
.input = esp6_input,
.output = esp6_output,
- .hdr_offset = xfrm6_find_1stfragopt,
};
static struct xfrm6_protocol esp6_protocol = {