aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'net/ethtool.sh')
-rw-r--r--net/ethtool.sh15
1 files changed, 13 insertions, 2 deletions
diff --git a/net/ethtool.sh b/net/ethtool.sh
index 0bcceff..ee595a2 100644
--- a/net/ethtool.sh
+++ b/net/ethtool.sh
@@ -17,7 +17,7 @@ ethtool_pre_start() {
local order opt OFS="${OIFS}"
eval order=\$ethtool_order_${IFVAR}
[ -z "${order}" ] && eval order=\$ethtool_order
- [ -z "${order}" ] && order="flash change-eeprom change pause eee coalesce ring offload tunable identify nfc rxfh-indir ntuple"
+ [ -z "${order}" ] && order="flash change-eeprom change priv-flags channels dump pause eee fec coalesce per-queue ring offload features phy-tunable tunable identify nfc rxfh-indir ntuple"
# ethtool options not used: --driver, --register-dump, --eeprom-dump, --negotiate, --test, --statistics
eindent
for opt in ${order} ; do
@@ -36,7 +36,18 @@ ethtool_pre_start() {
local args_pretty="$(_trim "${p}")"
# Do nothing if empty
[ -z "${args_pretty}" ] && continue
- [ "${opt}" = "eee" -o "${opt}" = "ring" -o "${opt}" = "tunable" ] && opt="set-${opt}"
+ case "$opt" in
+ # Cleaner to patch in future for new options
+ channels) opt="set-${opt}" ;;
+ dump) opt="set-${opt}" ;;
+ eee) opt="set-${opt}" ;;
+ fec) opt="set-${opt}" ;;
+ phy-tunable) opt="set-${opt}" ;;
+ priv-flags) opt="set-${opt}" ;;
+ ring) opt="set-${opt}" ;;
+ rxfh-indir) opt="set-${opt}" ;;
+ tunable) opt="set-${opt}" ;;
+ esac
args_pretty="--${opt} $IFACE ${args_pretty}"
args="--${opt} $IFACE ${args}"
ebegin "ethtool ${args_pretty}"