These changes are the raw update to linux-4.4.6-rt14. Kernel sources
[kvmfornfv.git] / kernel / net / ipv6 / xfrm6_mode_tunnel.c
index 901ef6f..372855e 100644 (file)
 
 static inline void ipip6_ecn_decapsulate(struct sk_buff *skb)
 {
-       const struct ipv6hdr *outer_iph = ipv6_hdr(skb);
        struct ipv6hdr *inner_iph = ipipv6_hdr(skb);
 
-       if (INET_ECN_is_ce(ipv6_get_dsfield(outer_iph)))
-               IP6_ECN_set_ce(inner_iph);
+       if (INET_ECN_is_ce(XFRM_MODE_SKB_CB(skb)->tos))
+               IP6_ECN_set_ce(skb, inner_iph);
 }
 
 /* Add encapsulation header.