Skip to content

net: ipv4: allow directed broadcast routes to use dst hint

Oscar Maes lkml netdev 3 versions – Applied

Status from this message: This series was applied to netdev/net-next.git (main)

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest2 patches 1 replyApplied 2/2
  2. v22 patches 4 repliesSuperseded
  3. v11 patch 1 replySuperseded

Changes in v3 from the cover letter

- Improved selftest
- Use ipv4_is_zeronet to check daddr

Patches in v3 All 2 applied

#Subject and filesSizeRepliesApplied
1/2net: ipv4: allow directed broadcast routes to use dst hintnet/ipv4/ip_input.c net/ipv4/route.c+8 -51 replyApplied
2/2selftests: net: add test for dst hint mechanism with directed broadcast addressestools/testing/selftests/net/Makefile tools/testing/selftests/net/route_hint.sh+80 -00 repliesApplied

Reviews trailers per patch

1 of 2 patches has a Reviewed-by or Acked-by.

PatchDavid Ahern
1/2R-b
2/2

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v3 thread

Cover letter [PATCH net-next v3 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 v3:
- Improved selftest
- Use ipv4_is_zeronet to check daddr

Changes in v2:
- Removed unused variable
- Fixed formatting
- Added new selftest

Link to v2: https://lore.kernel.org/netdev/[email protected]/

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/Makefile      |  1 +
 tools/testing/selftests/net/route_hint.sh | 79 +++++++++++++++++++++++
 4 files changed, 88 insertions(+), 5 deletions(-)
 create mode 100755 tools/testing/selftests/net/route_hint.sh
Signature · 1 line
2.39.5