linux-stable/tools
Ido Schimmel 6c94a12c92 selftests: mirror_gre_bridge_1q: Avoid changing PVID while interface is operational
commit 3122257c02 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:32:38 +02:00
..
accounting delayacct: track delays from memory compact 2022-01-20 08:52:55 +02:00
arch x86/tsx: Disable TSX development mode at boot 2022-04-20 09:36:26 +02:00
bootconfig
bpf bpftool: Fix print error when show bpf map 2022-04-08 13:58:22 +02:00
build tools build: Use $(shell ) instead of `` to get embedded libperl's ccopts 2022-04-13 19:27:41 +02:00
cgroup tools/cgroup/slabinfo: update to work with struct slab 2022-02-21 11:34:49 +01:00
counter
debugging
edid
firewire
firmware
gpio
hv
iio
include bpf: Fix comment for helper bpf_current_task_under_cgroup() 2022-04-08 13:59:00 +02:00
io_uring
kvm/kvm_stat
laptop
leds
lib perf tools: Fix segfault accessing sample_id xyarray 2022-04-27 14:40:53 +02:00
memory-model
objtool objtool: Fix type of reloc::addend 2022-05-09 09:16:33 +02:00
pci
pcmcia
perf perf symbol: Remove arch__symbols__fixup_end() 2022-05-09 09:16:31 +02:00
power
rcu
scripts tools: Ignore errors from `which' when searching a GCC toolchain 2022-02-01 23:04:12 +01:00
spi
testing selftests: mirror_gre_bridge_1q: Avoid changing PVID while interface is operational 2022-05-12 12:32:38 +02:00
thermal/tmon
time
tracing rtla/osnoise: Fix osnoise hist stop tracing message 2022-04-08 13:57:53 +02:00
usb
virtio tools/virtio: handle fallout from folio work 2022-03-06 06:06:50 -05:00
vm
wmi
Makefile