Lines Matching +full:set +full:- +full:up

2 # SPDX-License-Identifier: GPL-2.0
45 ip link set dev $swp1 up
46 ip link set dev $swp2 up
53 ip link set dev $swp2 down
54 ip link set dev $swp1 down
59 ip link set dev $swp1 master br0
61 ip link set dev vxlan0 master br0
64 ip link set dev $swp1 nomaster
66 ip link set dev $swp1 master br0
72 ip link set dev $swp1 master br0
74 ip link set dev vxlan0 master br0 &> /dev/null
77 ip link set dev $swp1 nomaster
79 ip link set dev vxlan0 master br0
81 ip link set dev $swp1 master br0 &> /dev/null
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 \
297 ip link set dev $swp1 master br0
299 ip link set dev vxlan0 master br0
301 ip link set dev $swp2 master br1
303 ip link set dev vxlan1 master br1
306 ip link set dev $swp2 nomaster
307 ip link set dev $swp1 nomaster
309 ip link set dev $swp1 master br0
311 ip link set dev $swp2 master br1
317 ip link set dev $swp1 master br0
319 ip link set dev vxlan0 master br0
321 ip link set dev $swp2 master br1
323 ip link set dev vxlan1 master br1 &> /dev/null
326 ip link set dev $swp2 nomaster
327 ip link set dev $swp1 nomaster
329 ip link set dev vxlan1 master br1
331 ip link set dev $swp1 master br0
333 ip link set dev $swp2 master br1 &> /dev/null
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 \
448 ip link set dev br0 addrgenmode none
449 ip link set dev br0 up
451 ip link set dev br1 addrgenmode none
452 ip link set dev br1 up
454 ip link set dev $swp1 master br0
455 ip link set dev $swp2 master br1
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 \
472 ip link set dev $swp2 nomaster
473 ip link set dev $swp1 nomaster
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"
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"
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"
577 ip link set dev vxlan0 down
582 ip link set dev vxlan1 down
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"
619 ip link set dev $swp1 nomaster
624 ip link set dev $swp2 nomaster
629 ip link set dev $swp1 master br0
630 ip link set dev $swp2 master br1
635 log_test "vxlan decap route - local ports enslavement"
649 log_test "vxlan decap route - bridge device deletion"
654 ip link set dev br0 addrgenmode none
655 ip link set dev br0 up
657 ip link set dev br1 addrgenmode none
658 ip link set dev br1 up
659 ip link set dev $swp1 master br0
660 ip link set dev $swp2 master br1
661 ip link set dev vxlan0 master br0
662 ip link set dev vxlan1 master br1
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
741 ip link set dev vxlan0 master br0
746 ip link set dev $swp1 master br0
749 log_test "offload indication - attach vxlan first"
752 ip link set dev vxlan0 down
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"
784 ip link set dev $swp1 nomaster
786 log_test "offload indication - detach port"
792 ip link set dev br0 addrgenmode none
793 ip link set dev br0 up
794 ip link add name vxlan0 up type vxlan id 10 nolearning $UDPCSUM_FLAFS \
811 ip link set dev $swp1 master br0
817 ip link set dev vxlan0 master br0
823 log_test "offload indication - attach vxlan last"
829 ip link set dev br0 addrgenmode none
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"
857 ip link set dev br0 addrgenmode none
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 \
870 ip link set dev $swp1 master br0
873 log_test "vlan-aware - enslavement to vlan-aware bridge"
882 log_test "vlan-aware - two vnis mapped to the same vlan"
888 ip link set dev $swp1 nomaster
893 ip link set dev $swp1 master br0 &> /dev/null
896 log_test "vlan-aware - failed enslavement to vlan-aware bridge"
902 # (i.e., different TTL) are enslaved to the same VLAN-aware bridge,
909 ip link set dev vxlan10 type vxlan ttl 10
910 ip link set dev $swp1 master br0 &> /dev/null
917 log_test "vlan-aware - failed enslavement to bridge due to conflict"
919 ip link set dev vxlan10 type vxlan ttl 20
929 # Create a simple setup with two VxLAN devices and a single VLAN-aware
933 ip link set dev br0 addrgenmode none
934 ip link set dev br0 up
936 ip link set dev $swp1 master br0
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 \
965 ip link set dev $swp1 nomaster
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"
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"
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"
1080 ip link set dev br0 addrgenmode none
1081 ip link set dev br0 up
1082 ip link add name vxlan0 up type vxlan id 10 nolearning $UDPCSUM_FLAFS \
1095 ip link set dev br0 addrgenmode none
1096 ip link set dev br0 up
1097 ip link add name vxlan0 up type vxlan id 10 nolearning $UDPCSUM_FLAFS \
1115 ip link set dev br0 addrgenmode none
1116 ip link set dev br0 up
1117 ip link add name vxlan0 up type vxlan id 10 nolearning $UDPCSUM_FLAFS \
1120 ip link set dev $swp1 master br0
1126 ip link set dev vxlan0 master br0
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
1143 ip link set dev vxlan0 nomaster
1148 ip link set dev vxlan0 master br0
1158 log_test "vxlan - l3 vni"
1172 log_info "offload indication - replay & cleanup - vlan aware"