OrangePi_CM5/tools/testing/selftests/net
Ido Schimmel 9ac9f07f0f selftests: mirror_gre_bridge_1q: Avoid changing PVID while interface is operational
commit 3122257c02afd9f199a8fc84ae981e1fc4958532 upstream.

In emulated environments, the bridge ports enslaved to br1 get a carrier
before changing br1's PVID. This means that by the time the PVID is
changed, br1 is already operational and configured with an IPv6
link-local address.

When the test is run with netdevs registered by mlxsw, changing the PVID
is vetoed, as changing the VID associated with an existing L3 interface
is forbidden. This restriction is similar to the 8021q driver's
restriction of changing the VID of an existing interface.

Fix this by taking br1 down and bringing it back up when it is fully
configured.

With this fix, the test reliably passes on top of both the SW and HW
data paths (emulated or not).

Fixes: 239e754af8 ("selftests: forwarding: Test mirror-to-gretap w/ UL 802.1q")
Signed-off-by: Ido Schimmel <idosch@nvidia.com>
Reviewed-by: Petr Machata <petrm@nvidia.com>
Link: https://lore.kernel.org/r/20220502084507.364774-1-idosch@nvidia.com
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2022-05-12 12:25:41 +02:00
..
forwarding selftests: mirror_gre_bridge_1q: Avoid changing PVID while interface is operational 2022-05-12 12:25:41 +02:00
mptcp selftests: mptcp: clean tmp files in simult_flows 2021-09-22 12:28:04 +02:00
.gitignore selftest/net/xfrm: Add test for ipsec tunnel 2020-09-24 08:53:04 +02:00
Makefile Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net 2020-10-15 12:43:21 -07:00
altnames.sh selftest: net: fix typo in altname test 2021-09-22 12:27:58 +02:00
config selftests: rtnetlink: load fou module for kci_test_encap_fou() test 2020-10-19 17:55:29 -07:00
devlink_port_split.py tweewide: Fix most Shebang lines 2021-05-22 11:40:55 +02:00
drop_monitor_tests.sh selftests: net: Add drop monitor test 2020-09-30 18:01:26 -07:00
fcnal-test.sh selftests: Fix IPv6 address bind tests 2021-12-22 09:30:53 +01:00
fib-onlink-tests.sh
…
fib_nexthop_multiprefix.sh selftests: fib_nexthop_multiprefix: fix cleanup() netns deletion 2020-07-14 15:06:12 -07:00
fib_nexthops.sh selftests: fib_nexthops: Fix wrong mausezahn invocation 2021-01-17 14:17:05 +01:00
fib_rule_tests.sh
…
fib_tests.sh selftests/fib_tests: Rework fib_rp_filter_test() 2021-12-14 11:32:43 +01:00
fin_ack_lat.c
…
fin_ack_lat.sh
…
hwtstamp_config.c
…
icmp_redirect.sh selftests: icmp_redirect: IPv6 PMTU info should be cleared after redirect 2021-07-28 14:35:34 +02:00
in_netns.sh
…
ip6_gre_headroom.sh
…
ip_defrag.c selftests: net: ip_defrag: ignore EPERM 2020-06-02 15:54:20 -07:00
ip_defrag.sh selftests: net: ip_defrag: modprobe missing nf_defrag_ipv6 support 2020-07-17 12:49:18 -07:00
ipsec.c selftest/net/xfrm: Add test for ipsec tunnel 2020-09-24 08:53:04 +02:00
ipv6_flowlabel.c
…
ipv6_flowlabel.sh
…
ipv6_flowlabel_mgr.c
…
l2tp.sh
…
msg_zerocopy.c selftests/net: relax cpu affinity requirement in msg_zerocopy test 2020-08-05 12:25:35 -07:00
msg_zerocopy.sh
…
netdevice.sh
…
nettest.c selftests: Set default protocol for raw sockets in nettest 2020-09-17 17:07:15 -07:00
pmtu.sh selftests: pmtu.sh: Kill tcpdump processes launched by subshell. 2022-03-16 14:15:59 +01:00
psock_fanout.c selftests/net: psock_fanout: fix clang issues for target arch PowerPC 2020-07-27 12:56:58 -07:00
psock_lib.h
…
psock_snd.c
…
psock_snd.sh selftests/net: improve descriptions for XFAIL cases in psock_snd.sh 2020-09-03 14:59:10 -07:00
psock_tpacket.c
…
reuseaddr_conflict.c
…
reuseaddr_ports_exhausted.c selftests/net: fix warnings on reuseaddr_ports_exhausted 2021-03-30 14:32:00 +02:00
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 selftests: rtnetlink: load fou module for kci_test_encap_fou() test 2020-10-19 17:55:29 -07:00
run_afpackettests
…
run_netsocktests
…
rxtimestamp.c Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net 2020-08-02 01:02:12 -07:00
rxtimestamp.sh selftests/net: plug rxtimestamp test into kselftest framework 2020-06-23 20:36:46 -07:00
so_txtime.c selftests/net: so_txtime: fix clang issues for target arch PowerPC 2020-07-27 12:56:58 -07:00
so_txtime.sh
…
socket.c
…
tcp_fastopen_backup_key.c
…
tcp_fastopen_backup_key.sh
…
tcp_inq.c
…
tcp_mmap.c selftests: net: tcp_mmap: Use huge pages in receive path 2020-08-20 16:14:53 -07:00
test_blackhole_dev.sh
…
test_bpf.sh
…
test_vxlan_fdb_changelink.sh
…
test_vxlan_under_vrf.sh selftests: test_vxlan_under_vrf: Fix broken test case 2022-04-08 14:40:29 +02:00
timestamping.c selftests/net: in timestamping, strncpy needs to preserve null byte 2020-06-08 19:14:28 -07:00
tls.c net/tls(TLS_SW): Add selftest for 'chunked' sendfile test 2020-06-08 19:01:54 -07:00
traceroute.sh
…
txring_overwrite.c
…
txtimestamp.c selftests: txtimestamp: fix compilation issue 2021-02-17 11:02:26 +01:00
txtimestamp.sh selftest: txtimestamp: fix net ns entry logic 2020-07-21 16:11:07 -07:00
udpgro.sh selftests: fix the return value for UDP GRO test 2021-01-19 18:27:26 +01:00
udpgro_bench.sh
…
udpgso.c selftests: Calculate udpgso segment count without header adjustment 2022-01-05 12:40:30 +01:00
udpgso.sh
…
udpgso_bench.sh
…
udpgso_bench_rx.c selftests/net: udpgso_bench_rx: fix port argument 2021-11-18 14:04:28 +01:00
udpgso_bench_tx.c selftests/net: udpgso_bench_tx: fix dst ip argument 2022-01-05 12:40:31 +01:00
vrf-xfrm-tests.sh
…
vrf_route_leaking.sh selftests: Add VRF route leaking tests 2020-10-14 17:14:28 -07:00
vrf_strict_mode_test.sh vrf: Handle CONFIG_SYSCTL not set 2020-07-23 17:51:04 -07:00
xfrm_policy.sh xfrm: Fix wraparound in xfrm_policy_addr_delta() 2021-02-03 23:28:45 +01:00