]> git.baikalelectronics.ru Git - kernel.git/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)
committerSteffen Klassert <steffen.klassert@secunet.com>
Thu, 28 May 2015 04:23:32 +0000 (06:23 +0200)
commit0a47f793df81de6962d6918745f2461886b8331c
tree95f7c702ff15f885b694c944d7071c9ee04a9843
parent3871cba82cd320b8aeb579bf22ece719351c7133
ip_vti/ip6_vti: Preserve skb->mark after rcv_cb call

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>
net/ipv4/ip_vti.c
net/ipv6/ip6_vti.c