]> www.infradead.org Git - users/jedix/linux-maple.git/commit
xfrm: Convert struct xfrm_dst_lookup_params -> tos to dscp_t.
authorGuillaume Nault <gnault@redhat.com>
Thu, 31 Oct 2024 15:52:57 +0000 (16:52 +0100)
committerSteffen Klassert <steffen.klassert@secunet.com>
Wed, 6 Nov 2024 11:42:51 +0000 (12:42 +0100)
commite57dfaa4b0a72f6a231a8eedb95d260045bbd8db
tree4511b8a0b1313ccd31c7a9a730b45556d317ebdb
parent3021a2a3403df0fe0b79af15071e5f6ee25461a4
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>
include/net/xfrm.h
net/ipv4/xfrm4_policy.c
net/xfrm/xfrm_policy.c