[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20250814140309.3742-1-oscmaes92@gmail.com>
Date: Thu, 14 Aug 2025 16:03:07 +0200
From: Oscar Maes <oscmaes92@...il.com>
To: netdev@...r.kernel.org
Cc: davem@...emloft.net,
dsahern@...nel.org,
edumazet@...gle.com,
kuba@...nel.org,
pabeni@...hat.com,
horms@...nel.org,
shuah@...nel.org,
linux-kernel@...r.kernel.org,
Oscar Maes <oscmaes92@...il.com>
Subject: [PATCH net-next v2 0/2] 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.
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@gmail.com/
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
Powered by blists - more mailing lists