summaryrefslogtreecommitdiff
path: root/net/xfrm
diff options
context:
space:
mode:
authorFlorian Westphal <fw@strlen.de>2021-06-11 13:50:13 +0300
committerSteffen Klassert <steffen.klassert@secunet.com>2021-06-11 15:48:50 +0300
commitd1002d2490e3ebc30dd3ba747656cfa90c87e984 (patch)
tree478f5cebeb7b51255ceea33b2150ec15b8175953 /net/xfrm
parent848b18fb7fbd2fa5bc4fc2263bb69956fb86120d (diff)
downloadlinux-d1002d2490e3ebc30dd3ba747656cfa90c87e984.tar.xz
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/xfrm')
-rw-r--r--net/xfrm/xfrm_output.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/xfrm/xfrm_output.c b/net/xfrm/xfrm_output.c
index 1734339b6dd0..10842d5cf6e1 100644
--- a/net/xfrm/xfrm_output.c
+++ b/net/xfrm/xfrm_output.c
@@ -185,7 +185,7 @@ static int xfrm6_hdr_offset(struct xfrm_state *x, struct sk_buff *skb, u8 **prev
break;
}
- return x->type->hdr_offset(x, skb, prevhdr);
+ return ip6_find_1stfragopt(skb, prevhdr);
}
/* Add encapsulation header.