]> git.itanic.dy.fi Git - linux-stable/commit
xfrm: Always set XFRM_TRANSFORMED in xfrm{4,6}_output_finish
authorDavid Ahern <dsahern@gmail.com>
Mon, 20 Apr 2020 23:13:51 +0000 (17:13 -0600)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 29 Apr 2020 14:33:11 +0000 (16:33 +0200)
commitdfbbb4557af4db25fc04ae1f2f2fc624493c507e
tree7ebc3262b46472187c424054689cfc4242883888
parentace87b487a5f107dfaff54ba9f3e146bca107b64
xfrm: Always set XFRM_TRANSFORMED in xfrm{4,6}_output_finish

[ Upstream commit 0c922a4850eba2e668f73a3f1153196e09abb251 ]

IPSKB_XFRM_TRANSFORMED and IP6SKB_XFRM_TRANSFORMED are skb flags set by
xfrm code to tell other skb handlers that the packet has been passed
through the xfrm output functions. Simplify the code and just always
set them rather than conditionally based on netfilter enabled thus
making the flag available for other users.

Signed-off-by: David Ahern <dsahern@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
net/ipv4/xfrm4_output.c
net/ipv6/xfrm6_output.c