Files
linux/net/ipv4
Guillaume Nault 65a55aa7e6 ipv4: Prepare inet_rtm_getroute() to .flowi4_tos conversion.
Store rtm->rtm_tos in a dscp_t variable, which can then be used for
setting fl4.flowi4_tos and also be passed as parameter of
ip_route_input_rcu().

The .flowi4_tos field is going to be converted to dscp_t to ensure ECN
bits aren't erroneously taken into account during route lookups. Having
a dscp_t variable available will simplify that conversion, as we'll
just have to drop the inet_dscp_to_dsfield() call.

Note that we can't just convert rtm->rtm_tos to dscp_t because this
structure is exported to user space.

Signed-off-by: Guillaume Nault <gnault@redhat.com>
Reviewed-by: Ido Schimmel <idosch@nvidia.com>
Link: https://patch.msgid.link/7bc1c7dc47ad1393569095d334521fae59af5bc7.1736944951.git.gnault@redhat.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
2025-01-16 16:52:29 -08:00
..
2024-11-11 10:32:06 -08:00
2024-12-15 13:13:40 -08:00
2024-09-09 17:21:47 -07:00
2025-01-02 17:17:40 -08:00
2024-12-16 18:13:44 -08:00
2025-01-15 15:07:23 -08:00
2025-01-15 15:07:23 -08:00
2024-07-30 18:35:12 -07:00
2024-01-04 10:23:10 -08:00
2024-11-11 10:32:06 -08:00
2021-05-17 15:29:35 -07:00
2024-12-16 18:13:44 -08:00
2024-06-06 11:52:52 +02:00
2022-12-20 03:13:45 +01:00
2023-09-14 16:16:36 +02:00