Lines Matching +full:low +full:-
2 # SPDX-License-Identifier: GPL-2.0-only
4 source ethtool-common.sh
9 echo $(ethtool -c $NSIM_NETDEV | \
10 awk -F':' -v pattern="$query:" '$0 ~ pattern {gsub(/[ \t]/, "", $2); print $2}')
20 if ! ethtool -h | grep -q coalesce; then
21 echo "SKIP: No --coalesce support in ethtool"
27 set -o pipefail
29 declare -A SETTINGS_MAP=(
30 ["rx-frames-low"]="rx-frame-low"
31 ["tx-frames-low"]="tx-frame-low"
32 ["rx-frames-high"]="rx-frame-high"
33 ["tx-frames-high"]="tx-frame-high"
34 ["rx-usecs"]="rx-usecs"
35 ["rx-frames"]="rx-frames"
36 ["rx-usecs-irq"]="rx-usecs-irq"
37 ["rx-frames-irq"]="rx-frames-irq"
38 ["tx-usecs"]="tx-usecs"
39 ["tx-frames"]="tx-frames"
40 ["tx-usecs-irq"]="tx-usecs-irq"
41 ["tx-frames-irq"]="tx-frames-irq"
42 ["stats-block-usecs"]="stats-block-usecs"
43 ["pkt-rate-low"]="pkt-rate-low"
44 ["rx-usecs-low"]="rx-usecs-low"
45 ["tx-usecs-low"]="tx-usecs-low"
46 ["pkt-rate-high"]="pkt-rate-high"
47 ["rx-usecs-high"]="rx-usecs-high"
48 ["tx-usecs-high"]="tx-usecs-high"
49 ["sample-interval"]="sample-interval"
52 declare -A CURRENT_SETTINGS=(
53 ["rx-frames-low"]=""
54 ["tx-frames-low"]=""
55 ["rx-frames-high"]=""
56 ["tx-frames-high"]=""
57 ["rx-usecs"]=""
58 ["rx-frames"]=""
59 ["rx-usecs-irq"]=""
60 ["rx-frames-irq"]=""
61 ["tx-usecs"]=""
62 ["tx-frames"]=""
63 ["tx-usecs-irq"]=""
64 ["tx-frames-irq"]=""
65 ["stats-block-usecs"]=""
66 ["pkt-rate-low"]=""
67 ["rx-usecs-low"]=""
68 ["tx-usecs-low"]=""
69 ["pkt-rate-high"]=""
70 ["rx-usecs-high"]=""
71 ["tx-usecs-high"]=""
72 ["sample-interval"]=""
75 declare -A EXPECTED_SETTINGS=(
76 ["rx-frames-low"]=""
77 ["tx-frames-low"]=""
78 ["rx-frames-high"]=""
79 ["tx-frames-high"]=""
80 ["rx-usecs"]=""
81 ["rx-frames"]=""
82 ["rx-usecs-irq"]=""
83 ["rx-frames-irq"]=""
84 ["tx-usecs"]=""
85 ["tx-frames"]=""
86 ["tx-usecs-irq"]=""
87 ["tx-frames-irq"]=""
88 ["stats-block-usecs"]=""
89 ["pkt-rate-low"]=""
90 ["rx-usecs-low"]=""
91 ["tx-usecs-low"]=""
92 ["pkt-rate-high"]=""
93 ["rx-usecs-high"]=""
94 ["tx-usecs-high"]=""
95 ["sample-interval"]=""
105 value=$((RANDOM % $((2**32-1))))
107 ethtool -C $NSIM_NETDEV "$key" "$value"
118 ethtool -C $NSIM_NETDEV adaptive-rx on
119 s=$(ethtool -c $NSIM_NETDEV | grep -q "Adaptive RX: on TX: off")
122 ethtool -C $NSIM_NETDEV adaptive-tx on
123 s=$(ethtool -c $NSIM_NETDEV | grep -q "Adaptive RX: on TX: on")
126 if [ $num_errors -eq 0 ]; then