diff options
Diffstat (limited to 'Completion/Linux/Command/_ethtool')
-rw-r--r-- | Completion/Linux/Command/_ethtool | 20 |
1 files changed, 18 insertions, 2 deletions
diff --git a/Completion/Linux/Command/_ethtool b/Completion/Linux/Command/_ethtool index 7c62fd7f7..52b8f0451 100644 --- a/Completion/Linux/Command/_ethtool +++ b/Completion/Linux/Command/_ethtool @@ -45,7 +45,10 @@ _arguments -C \ '--show-eee[show EEE settings]' \ '--set-eee[set EEE settings]' \ '--set-phy-tunable[set PHY tunable]' \ - '--get-phy-tunable[get PHY tunable]' && return + '--get-phy-tunable[get PHY tunable]' \ + '--reset[reset hardware components]' \ + '--show-fec[query device for forward error correction support]' \ + '--set-fec[configure forward error correction for device]' && return if [[ -n $state ]]; then case $words[CURRENT-1] in @@ -132,6 +135,12 @@ if [[ -n $state ]]; then hfunc) _message -e functions expl 'hash function' ;; + flags) + _message -e masks expl mask + ;; + encoding) + _wanted encodings expl encoding compadd auto off rs baser + ;; *) case $words[2] in -A|--pause) @@ -143,7 +152,7 @@ if [[ -n $state ]]; then -C|--coalesce) _wanted settings expl 'coalescing setting' compadd -F line -M 'r:|-=* r:|=*' - \ adaptive-{r,t}x {r,t}x-{usecs,frames}{,-irq,-high,-low} \ - stats-block-usecs pkt-rate-{low,high} sample-interval dmac + stats-block-usecs pkt-rate-{low,high} sample-interval ;; -G|--set-ring) _values -S ' ' -w 'ring parameter' \ @@ -268,6 +277,13 @@ if [[ -n $state ]]; then --get-phy-tunable) _wanted options expl tunable compadd downshift ;; + --reset) + _wanted components expl component compadd flags dedicated all \ + {mgmt,irq,dma,filter,offload,mac,phy,ram,ap}{,-shared} + ;; + --set-fec) + _wanted options expl tunable compadd -F line - encoding + ;; esac ;; esac |