diff options
| author | Guillaume Nault <gnault@redhat.com> | 2024-10-07 20:24:29 +0200 |
|---|---|---|
| committer | Jakub Kicinski <kuba@kernel.org> | 2024-10-09 17:31:40 -0700 |
| commit | 2b78d30620d7f8a9f9ce312ad21200ec7a554bd9 (patch) | |
| tree | c3838d2bbca3873da8c40af9b2209f56957b14e3 /tools/perf/scripts/python/task-analyzer.py | |
| parent | net: mana: Enable debugfs files for MANA device (diff) | |
| download | linux-2b78d30620d7f8a9f9ce312ad21200ec7a554bd9.tar.gz linux-2b78d30620d7f8a9f9ce312ad21200ec7a554bd9.zip | |
ipv4: Convert ip_route_use_hint() to dscp_t.
Pass a dscp_t variable to ip_route_use_hint(), instead of a plain u8,
to prevent accidental setting of ECN bits in ->flowi4_tos.
Only ip_rcv_finish_core() actually calls ip_route_use_hint(). Use the
ip4h_dscp() helper to get the DSCP from the IPv4 header.
While there, modify the declaration of ip_route_use_hint() in
include/net/route.h so that it matches the prototype of its
implementation in net/ipv4/route.c.
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/c40994fdf804db7a363d04fdee01bf48dddda676.1728302212.git.gnault@redhat.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/task-analyzer.py')
0 files changed, 0 insertions, 0 deletions
