diff options
Diffstat (limited to 'net/ipv6/xfrm6_mode_tunnel.c')
-rw-r--r-- | net/ipv6/xfrm6_mode_tunnel.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/net/ipv6/xfrm6_mode_tunnel.c b/net/ipv6/xfrm6_mode_tunnel.c index 901ef6f8addc..f7fbdbabe50e 100644 --- a/net/ipv6/xfrm6_mode_tunnel.c +++ b/net/ipv6/xfrm6_mode_tunnel.c | |||
@@ -20,10 +20,9 @@ | |||
20 | 20 | ||
21 | static inline void ipip6_ecn_decapsulate(struct sk_buff *skb) | 21 | static inline void ipip6_ecn_decapsulate(struct sk_buff *skb) |
22 | { | 22 | { |
23 | const struct ipv6hdr *outer_iph = ipv6_hdr(skb); | ||
24 | struct ipv6hdr *inner_iph = ipipv6_hdr(skb); | 23 | struct ipv6hdr *inner_iph = ipipv6_hdr(skb); |
25 | 24 | ||
26 | if (INET_ECN_is_ce(ipv6_get_dsfield(outer_iph))) | 25 | if (INET_ECN_is_ce(XFRM_MODE_SKB_CB(skb)->tos)) |
27 | IP6_ECN_set_ce(inner_iph); | 26 | IP6_ECN_set_ce(inner_iph); |
28 | } | 27 | } |
29 | 28 | ||