Lines Matching full:swp1
19 swp1=${NETIFS[p1]}
22 ip link set dev $swp1 up
28 busywait $TIMEOUT sh -c "ethtool $swp1 | grep -q Lanes:"
35 ip link set dev $swp1 down
49 check_err $? "swp1 advertise $max_speed and $lanes, devs sync to $chosen_lanes"
66 ethtool -s $swp1 speed $max_speed lanes $unsupported_lanes $autoneg_str &> /dev/null
113 local -a linkmodes_params=($(dev_linkmodes_params_get $swp1 1))
114 local -a max_values=($(max_speed_and_lanes_get $swp1 "${linkmodes_params[@]}"))
123 ethtool_set $swp1 speed $max_speed lanes $lanes
124 ip link set dev $swp1 up
127 busywait $TIMEOUT sh -c "ethtool $swp1 | grep -q Lanes:"
130 check_lanes $swp1 $lanes $max_speed
136 check_unsupported_lanes $swp1 $max_speed $max_lanes 1
140 ip link set dev $swp1 down
151 local -a linkmodes_params=($(dev_linkmodes_params_get $swp1 1))
152 local -a max_values=($(max_speed_and_lanes_get $swp1 "${linkmodes_params[@]}"))
161 ethtool_set $swp1 speed $max_speed lanes $lanes autoneg off
163 ip link set dev $swp1 up
166 busywait $TIMEOUT sh -c "ethtool $swp1 | grep -q Lanes:"
169 check_lanes $swp1 $lanes $max_speed
175 check_unsupported_lanes $swp1 $max_speed $max_lanes 0
179 ip link set dev $swp1 down
182 ethtool -s $swp1 autoneg on