]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
ipv4: Convert ip_route_input_slow() to dscp_t.
authorGuillaume Nault <gnault@redhat.com>
Tue, 1 Oct 2024 19:29:01 +0000 (21:29 +0200)
committerJakub Kicinski <kuba@kernel.org>
Thu, 3 Oct 2024 23:21:21 +0000 (16:21 -0700)
commit783946aa0358c8a9e5f88d74dfc047d855813a06
treedfc1380652ab4016766c3307e51f40f60dbf49ed
parentbe612f5e99e1d48de34f4befcb700d840c15e05e
ipv4: Convert ip_route_input_slow() to dscp_t.

Pass a dscp_t variable to ip_route_input_slow(), instead of a plain u8,
to prevent accidental setting of ECN bits in ->flowi4_tos.

Only ip_route_input_rcu() actually calls ip_route_input_slow(). 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: David Ahern <dsahern@kernel.org>
Link: https://patch.msgid.link/d6bca5f87eea9e83a3861e6e05594cdd252583c9.1727807926.git.gnault@redhat.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
net/ipv4/route.c