mirror of https://github.com/torvalds/linux.git
Add the following test cases for both IPv4 and IPv6: * Can change from FDB nexthop to non-FDB nexthop and vice versa. * Can change FDB nexthop address while in a group. * Cannot change from FDB nexthop to non-FDB nexthop and vice versa while in a group. Output without "nexthop: Forbid FDB status change while nexthop is in a group": # ./fib_nexthops.sh -t "ipv6_fdb_grp_fcnal ipv4_fdb_grp_fcnal" IPv6 fdb groups functional -------------------------- [...] TEST: Replace FDB nexthop to non-FDB nexthop [ OK ] TEST: Replace non-FDB nexthop to FDB nexthop [ OK ] TEST: Replace FDB nexthop address while in a group [ OK ] TEST: Replace FDB nexthop to non-FDB nexthop while in a group [FAIL] TEST: Replace non-FDB nexthop to FDB nexthop while in a group [FAIL] [...] IPv4 fdb groups functional -------------------------- [...] TEST: Replace FDB nexthop to non-FDB nexthop [ OK ] TEST: Replace non-FDB nexthop to FDB nexthop [ OK ] TEST: Replace FDB nexthop address while in a group [ OK ] TEST: Replace FDB nexthop to non-FDB nexthop while in a group [FAIL] TEST: Replace non-FDB nexthop to FDB nexthop while in a group [FAIL] [...] Tests passed: 36 Tests failed: 4 Tests skipped: 0 Output with "nexthop: Forbid FDB status change while nexthop is in a group": # ./fib_nexthops.sh -t "ipv6_fdb_grp_fcnal ipv4_fdb_grp_fcnal" IPv6 fdb groups functional -------------------------- [...] TEST: Replace FDB nexthop to non-FDB nexthop [ OK ] TEST: Replace non-FDB nexthop to FDB nexthop [ OK ] TEST: Replace FDB nexthop address while in a group [ OK ] TEST: Replace FDB nexthop to non-FDB nexthop while in a group [ OK ] TEST: Replace non-FDB nexthop to FDB nexthop while in a group [ OK ] [...] IPv4 fdb groups functional -------------------------- [...] TEST: Replace FDB nexthop to non-FDB nexthop [ OK ] TEST: Replace non-FDB nexthop to FDB nexthop [ OK ] TEST: Replace FDB nexthop address while in a group [ OK ] TEST: Replace FDB nexthop to non-FDB nexthop while in a group [ OK ] TEST: Replace non-FDB nexthop to FDB nexthop while in a group [ OK ] [...] Tests passed: 40 Tests failed: 0 Tests skipped: 0 Signed-off-by: Ido Schimmel <idosch@nvidia.com> Reviewed-by: David Ahern <dsahern@kernel.org> Link: https://patch.msgid.link/20250921150824.149157-4-idosch@nvidia.com Signed-off-by: Jakub Kicinski <kuba@kernel.org> |
||
|---|---|---|
| .. | ||
| af_unix | ||
| bench | ||
| can | ||
| forwarding | ||
| hsr | ||
| lib | ||
| mptcp | ||
| netfilter | ||
| openvswitch | ||
| ovpn | ||
| packetdrill | ||
| rds | ||
| tcp_ao | ||
| .gitignore | ||
| Makefile | ||
| altnames.sh | ||
| amt.sh | ||
| arp_ndisc_evict_nocarrier.sh | ||
| arp_ndisc_untracked_subnets.sh | ||
| bareudp.sh | ||
| big_tcp.sh | ||
| bind_bhash.c | ||
| bind_bhash.sh | ||
| bind_timewait.c | ||
| bind_wildcard.c | ||
| bpf.mk | ||
| bpf_offload.py | ||
| broadcast_ether_dst.sh | ||
| broadcast_pmtu.sh | ||
| busy_poll_test.sh | ||
| busy_poller.c | ||
| cmsg_ip.sh | ||
| cmsg_sender.c | ||
| cmsg_so_mark.sh | ||
| cmsg_so_priority.sh | ||
| cmsg_time.sh | ||
| config | ||
| drop_monitor_tests.sh | ||
| epoll_busy_poll.c | ||
| fcnal-test.sh | ||
| fdb_flush.sh | ||
| fdb_notify.sh | ||
| fib-onlink-tests.sh | ||
| fib_nexthop_multiprefix.sh | ||
| fib_nexthop_nongw.sh | ||
| fib_nexthops.sh | ||
| fib_rule_tests.sh | ||
| fib_tests.sh | ||
| fin_ack_lat.c | ||
| fin_ack_lat.sh | ||
| fq_band_pktlimit.sh | ||
| gre_gso.sh | ||
| gre_ipv6_lladdr.sh | ||
| gro.c | ||
| gro.sh | ||
| hwtstamp_config.c | ||
| icmp.sh | ||
| icmp_redirect.sh | ||
| in_netns.sh | ||
| io_uring_zerocopy_tx.c | ||
| io_uring_zerocopy_tx.sh | ||
| ioam6.sh | ||
| ioam6_parser.c | ||
| ip6_gre_headroom.sh | ||
| ip_defrag.c | ||
| ip_defrag.sh | ||
| ip_local_port_range.c | ||
| ip_local_port_range.sh | ||
| ipsec.c | ||
| ipv6_flowlabel.c | ||
| ipv6_flowlabel.sh | ||
| ipv6_flowlabel_mgr.c | ||
| ipv6_force_forwarding.sh | ||
| ipv6_route_update_soft_lockup.sh | ||
| l2_tos_ttl_inherit.sh | ||
| l2tp.sh | ||
| lib.sh | ||
| link_netns.py | ||
| lwt_dst_cache_ref_loop.sh | ||
| msg_zerocopy.c | ||
| msg_zerocopy.sh | ||
| nat6to4.bpf.c | ||
| nat6to4.sh | ||
| ndisc_unsolicited_na_test.sh | ||
| netdev-l2addr.sh | ||
| netdevice.sh | ||
| netlink-dumps.c | ||
| netns-name.sh | ||
| netns-sysctl.sh | ||
| nettest.c | ||
| nl_netdev.py | ||
| pmtu.sh | ||
| proc_net_pktgen.c | ||
| 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 | ||
| rps_default_mask.sh | ||
| rtnetlink.py | ||
| rtnetlink.sh | ||
| rtnetlink_notification.sh | ||
| run_afpackettests | ||
| run_netsocktests | ||
| rxtimestamp.c | ||
| rxtimestamp.sh | ||
| sample_map_ret0.bpf.c | ||
| sample_ret0.bpf.c | ||
| sctp_hello.c | ||
| sctp_vrf.sh | ||
| settings | ||
| setup_loopback.sh | ||
| setup_veth.sh | ||
| sk_bind_sendto_listen.c | ||
| sk_connect_zero_addr.c | ||
| sk_so_peek_off.c | ||
| skf_net_off.c | ||
| skf_net_off.sh | ||
| so_incoming_cpu.c | ||
| so_netns_cookie.c | ||
| so_rcv_listener.c | ||
| so_txtime.c | ||
| so_txtime.sh | ||
| socket.c | ||
| srv6_end_dt4_l3vpn_test.sh | ||
| srv6_end_dt6_l3vpn_test.sh | ||
| srv6_end_dt46_l3vpn_test.sh | ||
| srv6_end_dx4_netfilter_test.sh | ||
| srv6_end_dx6_netfilter_test.sh | ||
| srv6_end_flavors_test.sh | ||
| srv6_end_next_csid_l3vpn_test.sh | ||
| srv6_end_x_next_csid_l3vpn_test.sh | ||
| srv6_hencap_red_l3vpn_test.sh | ||
| srv6_hl2encap_red_l2vpn_test.sh | ||
| stress_reuseport_listen.c | ||
| stress_reuseport_listen.sh | ||
| tap.c | ||
| tcp_fastopen_backup_key.c | ||
| tcp_fastopen_backup_key.sh | ||
| tcp_inq.c | ||
| tcp_mmap.c | ||
| test_bpf.sh | ||
| test_bridge_backup_port.sh | ||
| test_bridge_neigh_suppress.sh | ||
| test_ingress_egress_chaining.sh | ||
| test_neigh.sh | ||
| test_so_rcv.sh | ||
| test_vxlan_fdb_changelink.sh | ||
| test_vxlan_mdb.sh | ||
| test_vxlan_nh.sh | ||
| test_vxlan_nolocalbypass.sh | ||
| test_vxlan_under_vrf.sh | ||
| test_vxlan_vnifiltering.sh | ||
| tfo.c | ||
| tfo_passive.sh | ||
| timestamping.c | ||
| tls.c | ||
| toeplitz.c | ||
| toeplitz.sh | ||
| toeplitz_client.sh | ||
| traceroute.sh | ||
| tun.c | ||
| txring_overwrite.c | ||
| txtimestamp.c | ||
| txtimestamp.sh | ||
| udpgro.sh | ||
| udpgro_bench.sh | ||
| udpgro_frglist.sh | ||
| udpgro_fwd.sh | ||
| udpgso.c | ||
| udpgso.sh | ||
| udpgso_bench.sh | ||
| udpgso_bench_rx.c | ||
| udpgso_bench_tx.c | ||
| unicast_extensions.sh | ||
| veth.sh | ||
| vlan_bridge_binding.sh | ||
| vlan_hw_filter.sh | ||
| vrf-xfrm-tests.sh | ||
| vrf_route_leaking.sh | ||
| vrf_strict_mode_test.sh | ||
| xfrm_policy.sh | ||
| xfrm_policy_add_speed.sh | ||
| ynl.mk | ||