[PATCH net-next v2 0/2] net: ipv4: allow directed broadcast routes to use dst hint
From: Oscar Maes
Date: Thu Aug 14 2025 - 10:17:20 EST
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.
This series fixes this, and adds a new selftest to ensure
this does not regress.
Changes in v2:
- Removed unused variable
- Fixed formatting
- Added new selftest
Link to v1: https://lore.kernel.org/netdev/20250724124942.6895-1-oscmaes92@xxxxxxxxx/
Oscar Maes (2):
net: ipv4: allow directed broadcast routes to use dst hint
selftests: net: add test for dst hint mechanism with directed
broadcast addresses
net/ipv4/ip_input.c | 11 +++--
net/ipv4/route.c | 2 +-
tools/testing/selftests/net/route_hint.sh | 58 +++++++++++++++++++++++
3 files changed, 66 insertions(+), 5 deletions(-)
create mode 100755 tools/testing/selftests/net/route_hint.sh
--
2.39.5