Message ID | 20230208114322.266510-7-steffen.klassert@secunet.com (mailing list archive) |
---|---|
State | Accepted |
Commit | 6028da3f125fec34425dbd5fec18e85d372b2af6 |
Delegated to: | Netdev Maintainers |
Headers | show |
Series | [1/6] Fix XFRM-I support for nested ESP tunnels | expand |
diff --git a/net/xfrm/xfrm_input.c b/net/xfrm/xfrm_input.c index c06e54a10540..436d29640ac2 100644 --- a/net/xfrm/xfrm_input.c +++ b/net/xfrm/xfrm_input.c @@ -279,8 +279,7 @@ static int xfrm6_remove_tunnel_encap(struct xfrm_state *x, struct sk_buff *skb) goto out; if (x->props.flags & XFRM_STATE_DECAP_DSCP) - ipv6_copy_dscp(ipv6_get_dsfield(ipv6_hdr(skb)), - ipipv6_hdr(skb)); + ipv6_copy_dscp(XFRM_MODE_SKB_CB(skb)->tos, ipipv6_hdr(skb)); if (!(x->props.flags & XFRM_STATE_NOECN)) ipip6_ecn_decapsulate(skb);