]> git.ipfire.org Git - thirdparty/linux.git/commit
selftests: net: add test for dst hint mechanism with directed broadcast addresses
authorOscar Maes <oscmaes92@gmail.com>
Tue, 19 Aug 2025 17:46:42 +0000 (19:46 +0200)
committerJakub Kicinski <kuba@kernel.org>
Mon, 25 Aug 2025 23:07:16 +0000 (16:07 -0700)
commitbd0d9e751b9beaaefb1cff012f41dc2098a932e3
tree03b315f3a1d527999091172e6a17b51175b9ef00
parent1b8c5fa0cb35efd08f07f700e6d78a541ebabe26
selftests: net: add test for dst hint mechanism with directed broadcast addresses

Add a test for ensuring that the dst hint mechanism is used for
directed broadcast addresses.

This test relies on mausezahn for sending directed broadcast packets.
Additionally, a high GRO flush timeout is set to ensure that packets
will be received as lists.

The test determines if the hint mechanism was used by checking
the in_brd statistic using lnstat.

Signed-off-by: Oscar Maes <oscmaes92@gmail.com>
Link: https://patch.msgid.link/20250819174642.5148-3-oscmaes92@gmail.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
tools/testing/selftests/net/Makefile
tools/testing/selftests/net/route_hint.sh [new file with mode: 0755]