Lines Matching full:swp1
18 swp1=${NETIFS[p1]}
21 ip link set dev $swp1 up
27 local lanes_exist=$(ethtool $swp1 | grep 'Lanes:')
34 ip link set dev $swp1 down
48 check_err $? "swp1 advertise $max_speed and $lanes, devs sync to $chosen_lanes"
65 ethtool -s $swp1 speed $max_speed lanes $unsupported_lanes $autoneg_str &> /dev/null
112 local -a linkmodes_params=($(dev_linkmodes_params_get $swp1 1))
113 local -a max_values=($(max_speed_and_lanes_get $swp1 "${linkmodes_params[@]}"))
122 ethtool_set $swp1 speed $max_speed lanes $lanes
123 ip link set dev $swp1 up
128 check_lanes $swp1 $lanes $max_speed
134 check_unsupported_lanes $swp1 $max_speed $max_lanes 1
138 ip link set dev $swp1 down
149 local -a linkmodes_params=($(dev_linkmodes_params_get $swp1 1))
150 local -a max_values=($(max_speed_and_lanes_get $swp1 "${linkmodes_params[@]}"))
159 ethtool_set $swp1 speed $max_speed lanes $lanes autoneg off
161 ip link set dev $swp1 up
166 check_lanes $swp1 $lanes $max_speed
172 check_unsupported_lanes $swp1 $max_speed $max_lanes 0
176 ip link set dev $swp1 down
179 ethtool -s $swp1 autoneg on