Lines Matching +full:turned +full:- +full:off

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
28 if [ $? -ne 0 ];then
46 if [ $NETDEV_STARTED -eq 0 ];then
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
137 ethtool --offload "$netdev" "$feature" off
138 if [ $? -eq 0 ]; then
139 echo "PASS: $netdev: Turned off feature: $feature"
141 echo "FAIL: $netdev: Failed to turn off feature:" \
145 ethtool --offload "$netdev" "$feature" on
146 if [ $? -eq 0 ]; then
147 echo "PASS: $netdev: Turned on feature: $feature"
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
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
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