Lines Matching +full:fixed +full:- +full:link
2 # SPDX-License-Identifier: GPL-2.0
11 # Kselftest framework requirement - SKIP code is 4.
21 ip link show "$netdev" |grep -q UP
22 if [ $? -eq 0 ];then
27 ip link set "$netdev" up
28 if [ $? -ne 0 ];then
46 if [ $NETDEV_STARTED -eq 0 ];then
51 ip link set dev $netdev address "$MACADDR"
52 if [ $? -ne 0 ];then
55 ip link show $netdev |grep -q "$MACADDR"
56 if [ $? -eq 0 ];then
65 if [ $? -eq 0 ];then
85 if [ $# -le 2 ];then
91 if [ $ret -ne 0 ];then
92 if [ $ret -eq "$1" ];then
112 ethtool --version 2>/dev/null >/dev/null
113 if [ $? -ne 0 ];then
119 if [ ! -e "$TMP_ETHTOOL_FEATURES" ];then
124 ethtool -k "$netdev" > "$TMP_ETHTOOL_FEATURES"
125 if [ $? -ne 0 ];then
132 while read -r FEATURE VALUE FIXED; do
134 [ "$FIXED" != "[fixed]" ] || continue # Skip fixed features
137 ethtool --offload "$netdev" "$feature" off
138 if [ $? -eq 0 ]; then
145 ethtool --offload "$netdev" "$feature" on
146 if [ $? -eq 0 ]; then
154 ethtool --offload "$netdev" "$feature" "$VALUE"
155 if [ $? -eq 0 ]; then
167 kci_netdev_ethtool_test 74 'dump' "ethtool -d $netdev"
168 kci_netdev_ethtool_test 94 'stats' "ethtool -S $netdev"
179 if [ $NETDEV_STARTED -eq 0 ];then
184 ip link set "$netdev" down
185 if [ $? -ne 0 ];then
201 MASTER_IFACE="$(echo $1 | cut -d@ -f2)"
202 if [ ! -z "$MASTER_IFACE" ];then
204 IFACE_TO_TEST="$(echo $1 | cut -d@ -f1)"
219 if [ "$(id -u)" -ne 0 ];then
224 ip link show 2>/dev/null >/dev/null
225 if [ $? -ne 0 ];then
231 if [ ! -e "$TMP_LIST_NETDEV" ];then
236 ip link show |grep '^[0-9]' | grep -oE '[[:space:]].*eth[0-9]*:|[[:space:]].*enp[0-9]s[0-9]:' | cut…
238 if [ ! -s "$TMP_LIST_NETDEV" ]; then
240 ip link add veth0 type veth peer name veth1
252 ip link delete veth0