Lines Matching +full:up +full:- +full:to

2 # SPDX-License-Identifier: GPL-2.0
4 # Test various aspects of VxLAN offloading which are specific to mlxsw, such
45 ip link set dev $swp1 up
46 ip link set dev $swp2 up
91 ip link add name vxlan0 up type vxlan id 10 nolearning $UDPCSUM_FLAFS \
99 log_test "vxlan device - valid configuration"
108 ip link add name vxlan0 up type vxlan id 10 nolearning $UDPCSUM_FLAFS \
116 log_test "vxlan device with a vlan-aware bridge"
125 ip link add name vxlan0 up type vxlan id 10 nolearning $UDPCSUM_FLAFS \
141 ip link add name dummy1 up type dummy
143 ip link add name vxlan0 up type vxlan id 10 nolearning $UDPCSUM_FLAFS \
162 ip link add name vxlan0 up type vxlan id 10 nolearning $UDPCSUM_FLAFS \
179 ip link add name vxlan0 up type vxlan id 10 learning $UDPCSUM_FLAFS \
195 ip link add name dummy1 up type dummy
197 ip link add name vxlan0 up type vxlan id 10 nolearning $UDPCSUM_FLAFS \
215 ip link add name vxlan0 up type vxlan id 10 nolearning $UDPCSUM_FLAFS \
233 ip link add name vxlan0 up type vxlan id 10 nolearning $UDPCSUM_FLAFS \
250 ip link add name vxlan0 up type vxlan id 10 nolearning $UDPCSUM_FLAFS \
267 ip link add name vxlan0 up type vxlan id 10 nolearning udpcsum \
344 ip link add name vxlan0 up type vxlan id 10 nolearning $UDPCSUM_FLAFS \
346 ip link add name vxlan1 up type vxlan id 20 nolearning $UDPCSUM_FLAFS \
356 log_test "multiple vxlan devices - valid configuration"
366 ip link add name vxlan0 up type vxlan id 10 nolearning $UDPCSUM_FLAFS \
368 ip link add name vxlan1 up type vxlan id 20 nolearning $UDPCSUM_FLAFS \
388 ip link add name vxlan0 up type vxlan id 10 nolearning $UDPCSUM_FLAFS \
390 ip link add name vxlan1 up type vxlan id 20 nolearning $UDPCSUM_FLAFS \
410 ip link add name vxlan0 up type vxlan id 10 nolearning $UDPCSUM_FLAFS \
412 ip link add name vxlan1 up type vxlan id 20 nolearning $UDPCSUM_FLAFS \
449 ip link set dev br0 up
452 ip link set dev br1 up
459 ip link add name vxlan0 up master br0 type vxlan id 10 nolearning \
461 ip link add name vxlan1 up master br1 type vxlan id 20 nolearning \
505 de:ad:be:ef:13:37 self -v bridge fdb show brport vxlan0
508 log_test "vxlan entry offload indication - initial state"
519 log_test "vxlan entry offload indication - after removal from bridge"
521 # Add the FDB entry back to the bridge driver and make sure it is
530 de:ad:be:ef:13:37 self -v bridge fdb show brport vxlan0
533 log_test "vxlan entry offload indication - after re-add to bridge"
541 de:ad:be:ef:13:37 self -v bridge fdb show brport vxlan0
544 log_test "vxlan entry offload indication - after removal from vxlan"
546 # Add the FDB entry back to the VxLAN driver and make sure it is
555 de:ad:be:ef:13:37 self -v bridge fdb show brport vxlan0
558 log_test "vxlan entry offload indication - after re-add to vxlan"
587 log_test "vxlan decap route - vxlan device down"
591 ip link set dev vxlan1 up
596 ip link set dev vxlan0 up
601 log_test "vxlan decap route - vxlan device up"
615 log_test "vxlan decap route - add local route"
635 log_test "vxlan decap route - local ports enslavement"
649 log_test "vxlan decap route - bridge device deletion"
655 ip link set dev br0 up
658 ip link set dev br1 up
677 log_test "vxlan decap route - vxlan device deletion"
679 ip link add name vxlan0 up master br0 type vxlan id 10 nolearning \
681 ip link add name vxlan1 up master br1 type vxlan id 20 nolearning \
707 bridge fdb show dev vxlan0 | grep $mac | grep -q self
713 bridge fdb show dev vxlan0 | grep $zmac | grep -q self
725 bridge fdb show dev vxlan0 | grep $mac | grep -q master
749 log_test "offload indication - attach vxlan first"
755 log_test "offload indication - set vxlan down"
758 ip link set dev vxlan0 up
761 log_test "offload indication - set vxlan up"
763 if [[ ! -z $vid ]]; then
768 log_test "offload indication - delete VLAN"
774 log_test "offload indication - add tagged VLAN"
780 log_test "offload indication - add pvid/untagged VLAN"
786 log_test "offload indication - detach port"
793 ip link set dev br0 up
794 ip link add name vxlan0 up type vxlan id 10 nolearning $UDPCSUM_FLAFS \
823 log_test "offload indication - attach vxlan last"
830 ip link set dev br0 up
831 ip link add name vxlan0 up type vxlan id 10 nolearning $UDPCSUM_FLAFS \
847 log_info "offload indication - replay & cleanup"
859 ip link add name vxlan10 up master br0 type vxlan id 10 nolearning \
862 ip link add name vxlan20 up master br0 type vxlan id 20 nolearning \
865 # Test that when each VNI is mapped to a different VLAN we can enslave
866 # a port to the bridge
873 log_test "vlan-aware - enslavement to vlan-aware bridge"
875 # Try to map both VNIs to the same VLAN and make sure configuration
882 log_test "vlan-aware - two vnis mapped to the same vlan"
884 # Test that enslavement of a port to a bridge fails when two VNIs
885 # are mapped to the same VLAN
896 log_test "vlan-aware - failed enslavement to vlan-aware bridge"
902 # (i.e., different TTL) are enslaved to the same VLAN-aware bridge,
903 # then the enslavement of a port to the bridge is denied.
905 # Use the offload indication of the local route to ensure the VXLAN
917 log_test "vlan-aware - failed enslavement to bridge due to conflict"
929 # Create a simple setup with two VxLAN devices and a single VLAN-aware
934 ip link set dev br0 up
943 ip link add name vxlan10 up master br0 type vxlan id 10 nolearning \
945 ip link add name vxlan20 up master br0 type vxlan id 20 nolearning \
974 log_info "vxlan entry offload indication - vlan-aware"
983 de:ad:be:ef:13:37 self -v bridge fdb show brport vxlan10
986 log_test "vxlan entry offload indication - initial state"
997 log_test "vxlan entry offload indication - after removal from bridge"
999 # Add the FDB entry back to the bridge driver and make sure it is
1008 de:ad:be:ef:13:37 self -v bridge fdb show brport vxlan10
1011 log_test "vxlan entry offload indication - after re-add to bridge"
1019 de:ad:be:ef:13:37 self -v bridge fdb show brport vxlan10
1022 log_test "vxlan entry offload indication - after removal from vxlan"
1024 # Add the FDB entry back to the VxLAN driver and make sure it is
1033 de:ad:be:ef:13:37 self -v bridge fdb show brport vxlan10
1036 log_test "vxlan entry offload indication - after re-add to vxlan"
1073 log_test "vxlan decap route - vni map/unmap"
1081 ip link set dev br0 up
1082 ip link add name vxlan0 up type vxlan id 10 nolearning $UDPCSUM_FLAFS \
1096 ip link set dev br0 up
1097 ip link add name vxlan0 up type vxlan id 10 nolearning $UDPCSUM_FLAFS \
1116 ip link set dev br0 up
1117 ip link add name vxlan0 up type vxlan id 10 nolearning $UDPCSUM_FLAFS \
1122 # The test will use the offload indication on the FDB entry to
1134 ip link add link br0 name br10 up type vlan id 10
1136 ip -6 address add 2001:db8:1::1/64 dev br10
1142 # then add it back to the bridge and make sure it is offloaded
1158 log_test "vxlan - l3 vni"
1172 log_info "offload indication - replay & cleanup - vlan aware"