Lines Matching refs:lanes
41 local lanes=$1; shift
48 ((chosen_lanes == lanes))
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
94 local lanes=$1; shift
98 if [[ $speed -eq ${arr[$i]} && $lanes -eq ${arr[i+1]} ]]; then
109 local lanes
118 lanes=$max_lanes
120 while [[ $lanes -ge 1 ]]; do
121 search_linkmode $max_speed $lanes "${linkmodes_params[@]}"
123 ethtool_set $swp1 speed $max_speed lanes $lanes
130 check_lanes $swp1 $lanes $max_speed
131 log_test "$lanes lanes is autonegotiated"
133 let $((lanes /= 2))
147 local lanes
156 lanes=$max_lanes
158 while [[ $lanes -ge 1 ]]; do
159 search_linkmode $max_speed $lanes "${linkmodes_params[@]}"
161 ethtool_set $swp1 speed $max_speed lanes $lanes autoneg off
162 ethtool_set $swp2 speed $max_speed lanes $lanes autoneg off
169 check_lanes $swp1 $lanes $max_speed
170 log_test "Autoneg off, $lanes lanes detected during force mode"
172 let $((lanes /= 2))