Lines Matching +full:mode +full:- +full:switch
2 # SPDX-License-Identifier: GPL-2.0
11 local mode=$2
21 ip link add "$name" up type bond mode "$mode"
26 teamd -d -c '
30 "name": "'"$mode"'"
47 # Used to test dev->uc handling
49 # Used to test dev->mc handling
60 check_err $? "IPv6 solicited-node multicast mac address not found on a slave"
69 check_err $? "IPv6 solicited-node multicast mac address still present on a slave"
73 log_test "$driver cleanup mode $mode"
79 # +-----------+ +-----------+
83 # | eth0 +-------+ eth0 |
85 # | eth1 +-------+ eth1 |
87 # +-----------+ +-----------+
90 local state=${1:-down}
99 ip link add name lag1 type veth peer name lag1-end
101 ip link set dev lag1-end netns lag_node2 $state name eth0
103 ip link add name lag1 type veth peer name lag1-end
105 ip link set dev lag1-end netns lag_node2 $state name eth1
118 SWITCH="lag_node1"
127 # create switch
128 ip netns exec ${SWITCH} ip link add br0 up type bridge
129 ip netns exec ${SWITCH} ip link set eth0 master br0 up
130 ip netns exec ${SWITCH} ip link set eth1 master br0 up
131 ip netns exec ${SWITCH} ip addr add ${SWITCHIP}/24 dev br0
137 ip netns exec ${SWITCH} ip link set eth0 up
138 ip netns exec ${SWITCH} ip link set eth1 up
161 slowwait 2 ip netns exec ${CLIENT} ping ${SWITCHIP} -c 2 -W 0.1 &> /dev/null
165 ip netns exec ${SWITCH} ip link set eth0 down
167 ip netns exec ${SWITCH} ip link set eth0 up
168 ip netns exec ${SWITCH} ip link set eth1 down
170 # re-verify connectivity
171 slowwait 2 ip netns exec ${CLIENT} ping ${SWITCHIP} -c 2 -W 0.1 &> /dev/null