summaryrefslogtreecommitdiffstats
path: root/net/ipv6
diff options
context:
space:
mode:
authorDavid Ahern <dsahern@gmail.com>2020-04-20 17:13:51 -0600
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2020-05-02 17:24:18 +0200
commit0367dba6b8b7a42827ebbc67e8798a42bf5e4318 (patch)
tree1c13c68e5bb76d015e83abefa10b751fdb653864 /net/ipv6
parenta04a6dfda20a1fd0c47ae533c210638e0e064e09 (diff)
downloadlinux-stable-0367dba6b8b7a42827ebbc67e8798a42bf5e4318.tar.gz
linux-stable-0367dba6b8b7a42827ebbc67e8798a42bf5e4318.tar.bz2
linux-stable-0367dba6b8b7a42827ebbc67e8798a42bf5e4318.zip
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>
Diffstat (limited to 'net/ipv6')
-rw-r--r--net/ipv6/xfrm6_output.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/net/ipv6/xfrm6_output.c b/net/ipv6/xfrm6_output.c
index 29dae7f2ff14..aff901be5353 100644
--- a/net/ipv6/xfrm6_output.c
+++ b/net/ipv6/xfrm6_output.c
@@ -130,9 +130,7 @@ int xfrm6_output_finish(struct sock *sk, struct sk_buff *skb)
{
memset(IP6CB(skb), 0, sizeof(*IP6CB(skb)));
-#ifdef CONFIG_NETFILTER
IP6CB(skb)->flags |= IP6SKB_XFRM_TRANSFORMED;
-#endif
return xfrm_output(sk, skb);
}