ipv4: Remove RTO_ONLINK.
authorGuillaume Nault <gnault@redhat.com>
Wed, 10 Apr 2024 13:14:29 +0000 (15:14 +0200)
committerJakub Kicinski <kuba@kernel.org>
Fri, 12 Apr 2024 02:52:11 +0000 (19:52 -0700)
commit5618603f5d063c8d769d2e64cd440f787567fd13
tree3e07607c9c2f1130d10b5bdb10f5c68b2d1746c0
parent05ea491641d338422edbd87af3b311c16ea762f5
ipv4: Remove RTO_ONLINK.

RTO_ONLINK was a flag used in ->flowi4_tos that allowed to alter the
scope of an IPv4 route lookup. Setting this flag was equivalent to
specifying RT_SCOPE_LINK in ->flowi4_scope.

With commit ec20b2830093 ("ipv4: Set scope explicitly in
ip_route_output()."), the last users of RTO_ONLINK have been removed.
Therefore, we can now drop the code that checked this bit and stop
modifying ->flowi4_scope in ip_route_output_key_hash().

Signed-off-by: Guillaume Nault <gnault@redhat.com>
Reviewed-by: Przemek Kitszel <przemyslaw.kitszel@intel.com>
Reviewed-by: David Ahern <dsahern@kernel.org>
Link: https://lore.kernel.org/r/57de760565cab55df7b129f523530ac6475865b2.1712754146.git.gnault@redhat.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
include/net/route.h
net/ipv4/route.c