Skip to content

Commit

Permalink
selftests: mlxsw: vxlan: Adjust test to recent changes
Browse files Browse the repository at this point in the history
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: Ido Schimmel <idosch@mellanox.com>
Acked-by: Jiri Pirko <jiri@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Ido Schimmel authored and David S. Miller committed Feb 17, 2020
1 parent 6c4e61f commit 58ba023
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions tools/testing/selftests/drivers/net/mlxsw/vxlan.sh
Original file line number Diff line number Diff line change
Expand Up @@ -1049,11 +1049,9 @@ offload_indication_vlan_aware_l3vni_test()
ip link set dev vxlan0 master br0
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 \
| 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
ip link add link br0 name br10 up type vlan id 10
Expand Down

0 comments on commit 58ba023

Please sign in to comment.