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 "SKIP: $netdev: set IP address"
82 echo "SKIP: $netdev: ethtool: invalid number of arguments"
89 echo "SKIP: $netdev: ethtool $2 not supported"
92 echo "FAIL: $netdev: ethtool $2"
96 echo "PASS: $netdev: ethtool $2"
105 netdev=$1
120 ethtool -k "$netdev" > "$TMP_ETHTOOL_FEATURES"
122 echo "FAIL: $netdev: ethtool list features"
126 echo "PASS: $netdev: ethtool list features"
130 kci_netdev_ethtool_test 74 'dump' "ethtool -d $netdev"
131 kci_netdev_ethtool_test 94 'stats' "ethtool -S $netdev"
139 netdev=$1
142 echo "SKIP: $netdev: interface kept up"
146 ip link set "$netdev" down
148 echo "FAIL: $netdev: stop interface"
151 echo "PASS: $netdev: stop interface"
199 while read netdev
201 kci_test_netdev "$netdev"