selftests/net: Adding test cases of replacing routes and route advertisements.
authorKui-Feng Lee <thinker.li@gmail.com>
Thu, 8 Feb 2024 22:06:53 +0000 (14:06 -0800)
committerDavid S. Miller <davem@davemloft.net>
Mon, 12 Feb 2024 10:24:13 +0000 (10:24 +0000)
commit3407df8dc2de07d6b80f28d1a19a5c24a835f69b
tree01108fcc8205e2fa6a369fbe325e9c0cccb157af
parent768e06a8bcab045de9eac87dd071a769119cd0fd
selftests/net: Adding test cases of replacing routes and route advertisements.

Add tests of changing permanent routes to temporary routes and the reversed
case to make sure GC working correctly in these cases.  Add tests for the
temporary routes from RA.

The existing device will be deleted between tests to remove all routes
associated with it, so that the earlier tests don't mess up the later ones.

Reviewed-by: Hangbin Liu <liuhangbin@gmail.com>
Reviewed-by: David Ahern <dsahern@kernel.org>
Tested-by: Hangbin Liu <liuhangbin@gmail.com>
Signed-off-by: Kui-Feng Lee <thinker.li@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
tools/testing/selftests/net/fib_tests.sh