xfrm: ipv6: add xfrm6_hdr_offset helper
authorFlorian Westphal <fw@strlen.de>
Fri, 11 Jun 2021 10:50:10 +0000 (12:50 +0200)
committerSteffen Klassert <steffen.klassert@secunet.com>
Fri, 11 Jun 2021 12:48:50 +0000 (14:48 +0200)
commit9acf4d3b9ec15f27a7d027c4ae4736c2fb967391
tree1d5de430f8377cb03f8f86c642ec220a17a48cd8
parent7a7ae1eba24a04fdaf84ef6a11760b5b8db3f723
xfrm: ipv6: add xfrm6_hdr_offset helper

This moves the ->hdr_offset indirect call to a new helper.

A followup patch can then modify the new function to replace
the indirect call by direct calls to the required hdr_offset helper.

Signed-off-by: Florian Westphal <fw@strlen.de>
Signed-off-by: Steffen Klassert <steffen.klassert@secunet.com>
net/xfrm/xfrm_output.c