Commit 58ba0238 authored by Ido Schimmel's avatar Ido Schimmel Committed by David S. Miller

selftests: mlxsw: vxlan: Adjust test to recent changes

After recent changes, the VXLAN tunnel will be offloaded regardless if
any local ports are member in the FID or not. Adjust the test to make
sure the tunnel is offloaded in this case.
Signed-off-by: default avatarIdo Schimmel <idosch@mellanox.com>
Acked-by: default avatarJiri Pirko <jiri@mellanox.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 6c4e61ff
...@@ -1049,11 +1049,9 @@ offload_indication_vlan_aware_l3vni_test() ...@@ -1049,11 +1049,9 @@ offload_indication_vlan_aware_l3vni_test()
ip link set dev vxlan0 master br0 ip link set dev vxlan0 master br0
bridge vlan add dev vxlan0 vid 10 pvid untagged bridge vlan add dev vxlan0 vid 10 pvid untagged
# No local port or router port is member in the VLAN, so tunnel should
# not be offloaded
bridge fdb show brport vxlan0 | grep $zmac | grep self \ bridge fdb show brport vxlan0 | grep $zmac | grep self \
| grep -q offload | grep -q offload
check_fail $? "vxlan tunnel offloaded when should not" check_err $? "vxlan tunnel not offloaded when should"
# Configure a VLAN interface and make sure tunnel is offloaded # Configure a VLAN interface and make sure tunnel is offloaded
ip link add link br0 name br10 up type vlan id 10 ip link add link br0 name br10 up type vlan id 10
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment