Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Petr Machata and committed by
Jakub Kicinski
c8015333 8c3736ce

+1
+1
tools/testing/selftests/net/forwarding/dual_vxlan_bridge.sh
··· 132 132 #### BR1 #### 133 133 ip link add name br1 type bridge vlan_filtering 1 \ 134 134 vlan_protocol 802.1ad vlan_default_pvid 0 mcast_snooping 0 135 + ip link set dev br1 addrgenmode none 135 136 # Make sure the bridge uses the MAC address of the local port and not 136 137 # that of the VxLAN's device. 137 138 ip link set dev br1 address $(mac_get $swp1)