diff options
author | Guillaume Nault <gnault@redhat.com> | 2024-10-07 20:25:08 +0200 |
---|---|---|
committer | Jakub Kicinski <kuba@kernel.org> | 2024-10-09 17:31:40 -0700 |
commit | 3768b402735ea3a580e46d8e6c94779e2f42fb4c (patch) | |
tree | 0b3fa56581ea8986c77e62f37dade41fd013983f /net/ipv4/tcp_output.c | |
parent | d36236ab52754ef6bd083be945e9c2e93f466022 (diff) | |
download | linux-3768b402735ea3a580e46d8e6c94779e2f42fb4c.tar.gz linux-3768b402735ea3a580e46d8e6c94779e2f42fb4c.tar.bz2 linux-3768b402735ea3a580e46d8e6c94779e2f42fb4c.zip |
ipv4: Convert __fib_validate_source() to dscp_t.
Pass a dscp_t variable to __fib_validate_source(), instead of a plain
u8, to prevent accidental setting of ECN bits in ->flowi4_tos.
Only fib_validate_source() actually calls __fib_validate_source().
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/8206b0a64a21a208ed94774e261a251c8d7bc251.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