]> git.proxmox.com Git - mirror_ubuntu-focal-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)
committerPaolo Pisati <paolo.pisati@canonical.com>
Wed, 18 Mar 2020 10:23:23 +0000 (11:23 +0100)
commit0bbbd6b4abd80f0e293bfffb1a143eb2986543e5
treed17fc2480c906eaa9c588061e1d3f39df876b50d
parent18dbe65c4094b142671f35e59c388f710fb096df
selftests/net/fib_tests: update addr_metric_test for peer route testing

BugLink: https://bugs.launchpad.net/bugs/1867903
[ Upstream commit 0d29169a708bf730ede287248e429d579f432d1d ]

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Paolo Pisati <paolo.pisati@canonical.com>
tools/testing/selftests/net/fib_tests.sh