]> git.baikalelectronics.ru Git - kernel.git/commit
xfrm: remove output_finish indirection from xfrm_state_afinfo
authorFlorian Westphal <fw@strlen.de>
Mon, 4 May 2020 08:06:09 +0000 (10:06 +0200)
committerSteffen Klassert <steffen.klassert@secunet.com>
Wed, 6 May 2020 07:40:08 +0000 (09:40 +0200)
commit093b5a5476ed63892b722c67a824aeec62faa6e6
treef4a096067056306539416fec2f73f0ad27fe03be
parent285d9b85b6d102296f62866e680ae4eaf5928398
xfrm: remove output_finish indirection from xfrm_state_afinfo

There are only two implementaions, one for ipv4 and one for ipv6.

Both are almost identical, they clear skb->cb[], set the TRANSFORMED flag
in IP(6)CB and then call the common xfrm_output() function.

By placing the IPCB handling into the common function, we avoid the need
for the output_finish indirection as the output functions can simply
use xfrm_output().

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