diff options
author | Guillaume Nault <gnault@redhat.com> | 2024-10-31 16:52:57 +0100 |
---|---|---|
committer | Steffen Klassert <steffen.klassert@secunet.com> | 2024-11-06 12:42:51 +0100 |
commit | e57dfaa4b0a72f6a231a8eedb95d260045bbd8db (patch) | |
tree | 4511b8a0b1313ccd31c7a9a730b45556d317ebdb /net/xfrm | |
parent | 3021a2a3403df0fe0b79af15071e5f6ee25461a4 (diff) | |
download | linux-stable-e57dfaa4b0a72f6a231a8eedb95d260045bbd8db.tar.gz linux-stable-e57dfaa4b0a72f6a231a8eedb95d260045bbd8db.tar.bz2 linux-stable-e57dfaa4b0a72f6a231a8eedb95d260045bbd8db.zip |
xfrm: Convert struct xfrm_dst_lookup_params -> tos to dscp_t.
Add type annotation to the "tos" field of struct xfrm_dst_lookup_params,
to ensure that the ECN bits aren't mistakenly taken into account when
doing route lookups. Rename that field (tos -> dscp) to make that
change explicit.
Signed-off-by: Guillaume Nault <gnault@redhat.com>
Reviewed-by: Ido Schimmel <idosch@nvidia.com>
Signed-off-by: Steffen Klassert <steffen.klassert@secunet.com>
Diffstat (limited to 'net/xfrm')
-rw-r--r-- | net/xfrm/xfrm_policy.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/xfrm/xfrm_policy.c b/net/xfrm/xfrm_policy.c index 7e3e10fb9ca0..4408c11c0835 100644 --- a/net/xfrm/xfrm_policy.c +++ b/net/xfrm/xfrm_policy.c @@ -312,7 +312,7 @@ static inline struct dst_entry *xfrm_dst_lookup(struct xfrm_state *x, params.net = net; params.saddr = saddr; params.daddr = daddr; - params.tos = inet_dscp_to_dsfield(dscp); + params.dscp = dscp; params.oif = oif; params.mark = mark; params.ipproto = x->id.proto; |