]> www.infradead.org Git - users/jedix/linux-maple.git/commit
xfrm: Convert xfrm_dst_lookup() to dscp_t.
authorGuillaume Nault <gnault@redhat.com>
Thu, 31 Oct 2024 15:52:49 +0000 (16:52 +0100)
committerSteffen Klassert <steffen.klassert@secunet.com>
Wed, 6 Nov 2024 11:42:42 +0000 (12:42 +0100)
commit3021a2a3403df0fe0b79af15071e5f6ee25461a4
treedc60f0d6f212c7db6f44cfa657d9bae66742e787
parent01f61cbfc8b2cf89fe960ea3c1c67bba089dbdc5
xfrm: Convert xfrm_dst_lookup() to dscp_t.

Pass a dscp_t variable to xfrm_dst_lookup(), instead of an int, to
prevent accidental setting of ECN bits in ->flowi4_tos.

Only xfrm_bundle_create() actually calls xfrm_dst_lookup(). Since it
already has a dscp_t variable to pass as parameter, we only need to
remove the inet_dscp_to_dsfield() conversion.

Signed-off-by: Guillaume Nault <gnault@redhat.com>
Reviewed-by: Ido Schimmel <idosch@nvidia.com>
Signed-off-by: Steffen Klassert <steffen.klassert@secunet.com>
net/xfrm/xfrm_policy.c