]> git.hungrycats.org Git - linux/commit
ip_vti/ip6_vti: Preserve skb->mark after rcv_cb call
authorAlexander Duyck <alexander.h.duyck@redhat.com>
Wed, 27 May 2015 14:16:54 +0000 (07:16 -0700)
committerSasha Levin <sasha.levin@oracle.com>
Thu, 27 Aug 2015 17:26:14 +0000 (13:26 -0400)
commit0a4ab28ed2365960f882d0ed6ca18fe8e1707149
treea044e43c946fd241237172f36701a3a16ba2900f
parentcfcf92c2f029f48d3681df800abb6f31d06e1a86
ip_vti/ip6_vti: Preserve skb->mark after rcv_cb call

[ Upstream commit d55c670cbc54b2270a465cdc382ce71adae45785 ]

The vti6_rcv_cb and vti_rcv_cb calls were leaving the skb->mark modified
after completing the function.  This resulted in the original skb->mark
value being lost.  Since we only need skb->mark to be set for
xfrm_policy_check we can pull the assignment into the rcv_cb calls and then
just restore the original mark after xfrm_policy_check has been completed.

Signed-off-by: Alexander Duyck <alexander.h.duyck@redhat.com>
Signed-off-by: Steffen Klassert <steffen.klassert@secunet.com>
Signed-off-by: Sasha Levin <sasha.levin@oracle.com>
net/ipv4/ip_vti.c
net/ipv6/ip6_vti.c