Lines Matching refs:netdev
19 netdev=$1
21 ip link show "$netdev" |grep -q UP
23 echo "SKIP: $netdev: interface already up"
27 ip link set "$netdev" up
29 echo "FAIL: $netdev: Fail to up interface"
32 echo "PASS: $netdev: set interface up"
43 netdev=$1
51 ip link set dev $netdev address "$MACADDR"
53 echo "FAIL: $netdev: Cannot set MAC address"
55 ip link show $netdev |grep -q "$MACADDR"
57 echo "PASS: $netdev: set MAC address"
59 echo "FAIL: $netdev: Cannot set MAC address"
64 ip address show "$netdev" |grep '^[[:space:]]*inet'
66 echo "SKIP: $netdev: already have an IP"
71 echo "XFAIL: $netdev: set IP address unsupported for veth*"
74 echo "SKIP: $netdev: set IP address"
86 echo "SKIP: $netdev: ethtool: invalid number of arguments"
93 echo "XFAIL: $netdev: ethtool $2 not supported"
96 echo "FAIL: $netdev: ethtool $2"
100 echo "PASS: $netdev: ethtool $2"
109 netdev=$1
124 ethtool -k "$netdev" > "$TMP_ETHTOOL_FEATURES"
126 echo "FAIL: $netdev: ethtool list features"
130 echo "PASS: $netdev: ethtool list features"
137 ethtool --offload "$netdev" "$feature" off
139 echo "PASS: $netdev: Turned off feature: $feature"
141 echo "FAIL: $netdev: Failed to turn off feature:" \
145 ethtool --offload "$netdev" "$feature" on
147 echo "PASS: $netdev: Turned on feature: $feature"
149 echo "FAIL: $netdev: Failed to turn on feature:" \
154 ethtool --offload "$netdev" "$feature" "$VALUE"
156 echo "PASS: $netdev: Restore feature $feature" \
159 echo "FAIL: $netdev: Failed to restore feature" \
167 kci_netdev_ethtool_test 74 'dump' "ethtool -d $netdev"
168 kci_netdev_ethtool_test 94 'stats' "ethtool -S $netdev"
177 netdev=$1
180 echo "SKIP: $netdev: interface kept up"
184 ip link set "$netdev" down
186 echo "FAIL: $netdev: stop interface"
189 echo "PASS: $netdev: stop interface"
245 while read netdev
247 kci_test_netdev "$netdev"