Skip to content
Commit 0a4ab28e authored by Alexander Duyck's avatar Alexander Duyck Committed by Sasha Levin
Browse files

ip_vti/ip6_vti: Preserve skb->mark after rcv_cb call

[ Upstream commit d55c670c

 ]

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: default avatarAlexander Duyck <alexander.h.duyck@redhat.com>
Signed-off-by: default avatarSteffen Klassert <steffen.klassert@secunet.com>
Signed-off-by: default avatarSasha Levin <sasha.levin@oracle.com>
parent cfcf92c2
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment