]> git.baikalelectronics.ru Git - kernel.git/commit
selftests/net/fib_tests: update addr_metric_test for peer route testing
authorHangbin Liu <liuhangbin@gmail.com>
Tue, 3 Mar 2020 06:37:36 +0000 (14:37 +0800)
committerDavid S. Miller <davem@davemloft.net>
Tue, 3 Mar 2020 22:43:16 +0000 (14:43 -0800)
commit214cfd886071ea3d71b06aed2331f0ecbf3b1030
tree565d271cad4e31f53794a235a2a7fda7843abe69
parent679af3eee4c5b510204ef2a6fd0cdc89fb867a68
selftests/net/fib_tests: update addr_metric_test for peer route testing

This patch update {ipv4, ipv6}_addr_metric_test with
1. Set metric of address with peer route and see if the route added
correctly.
2. Modify metric and peer address for peer route and see if the route
changed correctly.

Signed-off-by: Hangbin Liu <liuhangbin@gmail.com>
Reviewed-by: David Ahern <dsahern@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
tools/testing/selftests/net/fib_tests.sh