]> git.baikalelectronics.ru Git - kernel.git/commit
xfrm: move xfrm4_extract_header to common helper
authorFlorian Westphal <fw@strlen.de>
Mon, 4 May 2020 08:06:05 +0000 (10:06 +0200)
committerSteffen Klassert <steffen.klassert@secunet.com>
Wed, 6 May 2020 07:40:08 +0000 (09:40 +0200)
commitd1d352b5455a873a476fb199d0e1afa1eb3e4b88
treed4e2e497d945076a847c10b861653da590f75127
parent4d22f38f5d5c9c513040c5ec7b2404cc49ebd0b4
xfrm: move xfrm4_extract_header to common helper

The function only initializes the XFRM CB in the skb.

After previous patch xfrm4_extract_header is only called from
net/xfrm/xfrm_{input,output}.c.

Because of IPV6=m linker errors the ipv6 equivalent
(xfrm6_extract_header) was already placed in xfrm_inout.h because
we can't call functions residing in a module from the core.

So do the same for the ipv4 helper and place it next to the ipv6 one.

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