aboutsummaryrefslogtreecommitdiff
path: root/net/ipv4/tcp_output.c
diff options
context:
space:
mode:
authorGuillaume Nault <gnault@redhat.com>2024-10-07 20:24:42 +0200
committerJakub Kicinski <kuba@kernel.org>2024-10-09 17:31:40 -0700
commit0936c671911f46fcc0cc0c8ad2925eade7f64e80 (patch)
treec9616459eebc4a5a5a9f4f95cdca7ee64470daef /net/ipv4/tcp_output.c
parent34f28ffd62c14d8b558b3ef0de6c0ebfc5ca0b1a (diff)
downloadlinux-0936c671911f46fcc0cc0c8ad2925eade7f64e80.tar.gz
linux-0936c671911f46fcc0cc0c8ad2925eade7f64e80.tar.bz2
linux-0936c671911f46fcc0cc0c8ad2925eade7f64e80.zip
ipv4: Convert __mkroute_input() to dscp_t.
Pass a dscp_t variable to __mkroute_input(), instead of a plain u8, to prevent accidental setting of ECN bits in ->flowi4_tos. Only ip_mkroute_input() actually calls __mkroute_input(). Since it already has a dscp_t variable to pass as parameter, we only need to remove the inet_dscp_to_dsfield() conversion. While there, reorganise the function parameters to fill up horizontal space. 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/40853c720aee4d608e6b1b204982164c3b76697d.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