]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
net: ipv4: allow directed broadcast routes to use dst hint
authorOscar Maes <oscmaes92@gmail.com>
Tue, 19 Aug 2025 17:46:41 +0000 (19:46 +0200)
committerJakub Kicinski <kuba@kernel.org>
Mon, 25 Aug 2025 23:07:16 +0000 (16:07 -0700)
commit1b8c5fa0cb35efd08f07f700e6d78a541ebabe26
tree3b416d8a33866737129c2f2fc5773d073347468d
parent7f052126ff38f497cc8721f0b0e99aa201cd5a7f
net: ipv4: allow directed broadcast routes to use dst hint

Currently, ip_extract_route_hint uses RTN_BROADCAST to decide
whether to use the route dst hint mechanism.

This check is too strict, as it prevents directed broadcast
routes from using the hint, resulting in poor performance
during bursts of directed broadcast traffic.

Fix this in ip_extract_route_hint and modify ip_route_use_hint
to preserve the intended behaviour.

Signed-off-by: Oscar Maes <oscmaes92@gmail.com>
Reviewed-by: David Ahern <dsahern@kernel.org>
Link: https://patch.msgid.link/20250819174642.5148-2-oscmaes92@gmail.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
net/ipv4/ip_input.c
net/ipv4/route.c