mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-30 22:26:55 +00:00
3a1099d314
Test that blackhole nexthops are not flushed when the loopback device goes down. Output without previous patch: # ./fib_nexthops.sh -t basic Basic functional tests ---------------------- TEST: List with nothing defined [ OK ] TEST: Nexthop get on non-existent id [ OK ] TEST: Nexthop with no device or gateway [ OK ] TEST: Nexthop with down device [ OK ] TEST: Nexthop with device that is linkdown [ OK ] TEST: Nexthop with device only [ OK ] TEST: Nexthop with duplicate id [ OK ] TEST: Blackhole nexthop [ OK ] TEST: Blackhole nexthop with other attributes [ OK ] TEST: Blackhole nexthop with loopback device down [FAIL] TEST: Create group [ OK ] TEST: Create group with blackhole nexthop [FAIL] TEST: Create multipath group where 1 path is a blackhole [ OK ] TEST: Multipath group can not have a member replaced by blackhole [ OK ] TEST: Create group with non-existent nexthop [ OK ] TEST: Create group with same nexthop multiple times [ OK ] TEST: Replace nexthop with nexthop group [ OK ] TEST: Replace nexthop group with nexthop [ OK ] TEST: Nexthop group and device [ OK ] TEST: Test proto flush [ OK ] TEST: Nexthop group and blackhole [ OK ] Tests passed: 19 Tests failed: 2 Output with previous patch: # ./fib_nexthops.sh -t basic Basic functional tests ---------------------- TEST: List with nothing defined [ OK ] TEST: Nexthop get on non-existent id [ OK ] TEST: Nexthop with no device or gateway [ OK ] TEST: Nexthop with down device [ OK ] TEST: Nexthop with device that is linkdown [ OK ] TEST: Nexthop with device only [ OK ] TEST: Nexthop with duplicate id [ OK ] TEST: Blackhole nexthop [ OK ] TEST: Blackhole nexthop with other attributes [ OK ] TEST: Blackhole nexthop with loopback device down [ OK ] TEST: Create group [ OK ] TEST: Create group with blackhole nexthop [ OK ] TEST: Create multipath group where 1 path is a blackhole [ OK ] TEST: Multipath group can not have a member replaced by blackhole [ OK ] TEST: Create group with non-existent nexthop [ OK ] TEST: Create group with same nexthop multiple times [ OK ] TEST: Replace nexthop with nexthop group [ OK ] TEST: Replace nexthop group with nexthop [ OK ] TEST: Nexthop group and device [ OK ] TEST: Test proto flush [ OK ] TEST: Nexthop group and blackhole [ OK ] Tests passed: 21 Tests failed: 0 Signed-off-by: Ido Schimmel <idosch@nvidia.com> Reviewed-by: David Ahern <dsahern@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net> |
||
---|---|---|
.. | ||
forwarding | ||
mptcp | ||
.gitignore | ||
altnames.sh | ||
bareudp.sh | ||
config | ||
devlink_port_split.py | ||
drop_monitor_tests.sh | ||
fcnal-test.sh | ||
fib-onlink-tests.sh | ||
fib_nexthop_multiprefix.sh | ||
fib_nexthops.sh | ||
fib_rule_tests.sh | ||
fib_tests.sh | ||
fin_ack_lat.c | ||
fin_ack_lat.sh | ||
hwtstamp_config.c | ||
icmp_redirect.sh | ||
in_netns.sh | ||
ip6_gre_headroom.sh | ||
ip_defrag.c | ||
ip_defrag.sh | ||
ipsec.c | ||
ipv6_flowlabel.c | ||
ipv6_flowlabel.sh | ||
ipv6_flowlabel_mgr.c | ||
l2tp.sh | ||
Makefile | ||
msg_zerocopy.c | ||
msg_zerocopy.sh | ||
netdevice.sh | ||
nettest.c | ||
pmtu.sh | ||
psock_fanout.c | ||
psock_lib.h | ||
psock_snd.c | ||
psock_snd.sh | ||
psock_tpacket.c | ||
reuseaddr_conflict.c | ||
reuseaddr_ports_exhausted.c | ||
reuseaddr_ports_exhausted.sh | ||
reuseport_addr_any.c | ||
reuseport_addr_any.sh | ||
reuseport_bpf.c | ||
reuseport_bpf_cpu.c | ||
reuseport_bpf_numa.c | ||
reuseport_dualstack.c | ||
route_localnet.sh | ||
rtnetlink.sh | ||
run_afpackettests | ||
run_netsocktests | ||
rxtimestamp.c | ||
rxtimestamp.sh | ||
so_txtime.c | ||
so_txtime.sh | ||
socket.c | ||
srv6_end_dt4_l3vpn_test.sh | ||
srv6_end_dt6_l3vpn_test.sh | ||
tcp_fastopen_backup_key.c | ||
tcp_fastopen_backup_key.sh | ||
tcp_inq.c | ||
tcp_mmap.c | ||
test_blackhole_dev.sh | ||
test_bpf.sh | ||
test_vxlan_fdb_changelink.sh | ||
test_vxlan_under_vrf.sh | ||
timestamping.c | ||
tls.c | ||
traceroute.sh | ||
txring_overwrite.c | ||
txtimestamp.c | ||
txtimestamp.sh | ||
udpgro.sh | ||
udpgro_bench.sh | ||
udpgso.c | ||
udpgso.sh | ||
udpgso_bench.sh | ||
udpgso_bench_rx.c | ||
udpgso_bench_tx.c | ||
unicast_extensions.sh | ||
vrf-xfrm-tests.sh | ||
vrf_route_leaking.sh | ||
vrf_strict_mode_test.sh | ||
xfrm_policy.sh |