]> www.infradead.org Git - users/dwmw2/linux.git/commit
selftests: fib_rule_tests: Test TOS matching with input routes
authorIdo Schimmel <idosch@nvidia.com>
Wed, 14 Aug 2024 11:10:05 +0000 (14:10 +0300)
committerJakub Kicinski <kuba@kernel.org>
Fri, 16 Aug 2024 18:04:52 +0000 (11:04 -0700)
commit5f1b4f1be2d2b8d85dd07352b097cfc7064ad2e5
treeec2cdf7525b5a1631f6ba71fdc4d499da3c19b5a
parent53f88ed85bdd194b8a30605a264692b28a3ee665
selftests: fib_rule_tests: Test TOS matching with input routes

The TOS value reaches the FIB rule core via different call paths when an
input route is looked up compared to an output route.

Re-test TOS matching with input routes to exercise these code paths.

Pass the 'iif' and 'from' selectors separately from the 'get{,no}match'
variables as otherwise the test name is too long to be printed without
misalignments.

Signed-off-by: Ido Schimmel <idosch@nvidia.com>
Link: https://patch.msgid.link/20240814111005.955359-6-idosch@nvidia.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
tools/testing/selftests/net/fib_rule_tests.sh