summaryrefslogtreecommitdiff
path: root/tools/testing/selftests/net/forwarding/dual_vxlan_bridge.sh
diff options
context:
space:
mode:
authorPetr Machata <petrm@nvidia.com>2023-06-20 16:55:48 +0300
committerJakub Kicinski <kuba@kernel.org>2023-06-22 00:02:52 +0300
commitc801533304ca87e314ecc6fc43b9a7822f159f18 (patch)
tree3cfcc5944ca209ff4f535279bc3844e9dcb00877 /tools/testing/selftests/net/forwarding/dual_vxlan_bridge.sh
parent8c3736ce595bccb6322c44a1f853216e278aa635 (diff)
downloadlinux-c801533304ca87e314ecc6fc43b9a7822f159f18.tar.xz
selftests: forwarding: dual_vxlan_bridge: Disable IPv6 autogen on bridges
In a future patch, mlxsw will start adding RIFs to uppers of front panel port netdevices, if they have an IP address. This will cause this selftest to fail spuriously. The swp enslavement to the 802.1ad bridge is not allowed, because RIFs are not allowed to be created for 802.1ad bridges, but the address indicates one needs to be created. Fix by disabling automatic IPv6 address generation for the HW-offloaded bridge in this selftest, thus exempting it from mlxsw router attention. Signed-off-by: Petr Machata <petrm@nvidia.com> Reviewed-by: Amit Cohen <amcohen@nvidia.com> Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'tools/testing/selftests/net/forwarding/dual_vxlan_bridge.sh')
-rwxr-xr-xtools/testing/selftests/net/forwarding/dual_vxlan_bridge.sh1
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/testing/selftests/net/forwarding/dual_vxlan_bridge.sh b/tools/testing/selftests/net/forwarding/dual_vxlan_bridge.sh
index 5148d97a5df8..68ee92df3e07 100755
--- a/tools/testing/selftests/net/forwarding/dual_vxlan_bridge.sh
+++ b/tools/testing/selftests/net/forwarding/dual_vxlan_bridge.sh
@@ -132,6 +132,7 @@ switch_create()
#### BR1 ####
ip link add name br1 type bridge vlan_filtering 1 \
vlan_protocol 802.1ad vlan_default_pvid 0 mcast_snooping 0
+ ip link set dev br1 addrgenmode none
# Make sure the bridge uses the MAC address of the local port and not
# that of the VxLAN's device.
ip link set dev br1 address $(mac_get $swp1)