diff options
author | Guillaume Nault <gnault@redhat.com> | 2024-10-07 20:24:48 +0200 |
---|---|---|
committer | Jakub Kicinski <kuba@kernel.org> | 2024-10-09 17:31:40 -0700 |
commit | 1a7c292617e4c6dcacf0590909ad9a231df6e25e (patch) | |
tree | d9f46b0eeaa4bd41ae91f5144f6b42bfc97c94e9 /net/ipv4/tcp_output.c | |
parent | 0936c671911f46fcc0cc0c8ad2925eade7f64e80 (diff) | |
download | linux-1a7c292617e4c6dcacf0590909ad9a231df6e25e.tar.gz linux-1a7c292617e4c6dcacf0590909ad9a231df6e25e.tar.bz2 linux-1a7c292617e4c6dcacf0590909ad9a231df6e25e.zip |
ipv4: Convert ip_route_input_mc() to dscp_t.
Pass a dscp_t variable to ip_route_input_mc(), 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_mc(). 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>
Tested-by: Ido Schimmel <idosch@nvidia.com>
Reviewed-by: David Ahern <dsahern@kernel.org>
Link: https://patch.msgid.link/0cc653ef59bbc0a28881f706d34896c61eba9e01.1728302212.git.gnault@redhat.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'net/ipv4/tcp_output.c')
0 files changed, 0 insertions, 0 deletions