aboutsummaryrefslogtreecommitdiffstats
path: root/tools/testing/selftests/drivers/net/hw/pp_alloc_fail.py
diff options
context:
space:
mode:
authorGuillaume Nault <[email protected]>2025-01-15 12:44:52 +0000
committerJakub Kicinski <[email protected]>2025-01-17 00:52:29 +0000
commit65a55aa7e64eefcd2a7f530a0bf8d21d20bffd37 (patch)
tree4a04ebe1f77fa28690f88330efa319923839ecb4 /tools/testing/selftests/drivers/net/hw/pp_alloc_fail.py
parentgre: Prepare ipgre_open() to .flowi4_tos conversion. (diff)
downloadkernel-65a55aa7e64eefcd2a7f530a0bf8d21d20bffd37.tar.gz
kernel-65a55aa7e64eefcd2a7f530a0bf8d21d20bffd37.zip
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 <[email protected]> Reviewed-by: Ido Schimmel <[email protected]> Link: https://patch.msgid.link/7bc1c7dc47ad1393569095d334521fae59af5bc7.1736944951.git.gnault@redhat.com Signed-off-by: Jakub Kicinski <[email protected]>
Diffstat (limited to 'tools/testing/selftests/drivers/net/hw/pp_alloc_fail.py')
0 files changed, 0 insertions, 0 deletions