43 lines
1.1 KiB
Diff
43 lines
1.1 KiB
Diff
From 68c18af78f4e5eac30ed4fd4c6f3bb0ca8dc347e Mon Sep 17 00:00:00 2001
|
|
From: Danielle Ratson <danieller@mellanox.com>
|
|
Date: Wed, 10 Feb 2021 15:48:39 +0200
|
|
Subject: [PATCH 41/42] shell-completion: Add completion for lanes
|
|
|
|
Lanes was added as a new link mode setting in ethtool.
|
|
|
|
Support completion for lanes when setting parameters.
|
|
|
|
Signed-off-by: Danielle Ratson <danieller@mellanox.com>
|
|
Reviewed-by: Jiri Pirko <jiri@nvidia.com>
|
|
Signed-off-by: Michal Kubecek <mkubecek@suse.cz>
|
|
(cherry picked from commit c323bcb248c2424cebe533cb2607283aa4538a0b)
|
|
---
|
|
shell-completion/bash/ethtool | 4 ++++
|
|
1 file changed, 4 insertions(+)
|
|
|
|
diff --git a/shell-completion/bash/ethtool b/shell-completion/bash/ethtool
|
|
index 53055594b649..45573413985d 100644
|
|
--- a/shell-completion/bash/ethtool
|
|
+++ b/shell-completion/bash/ethtool
|
|
@@ -97,6 +97,7 @@ _ethtool_change()
|
|
[speed]=notseen
|
|
[wol]=notseen
|
|
[xcvr]=notseen
|
|
+ [lanes]=notseen
|
|
)
|
|
|
|
local -A msgtypes=(
|
|
@@ -175,6 +176,9 @@ _ethtool_change()
|
|
xcvr)
|
|
COMPREPLY=( $( compgen -W 'internal external' -- "$cur" ) )
|
|
return ;;
|
|
+ lanes)
|
|
+ # Number
|
|
+ return ;;
|
|
esac
|
|
|
|
local -a comp_words=()
|
|
--
|
|
2.31.1
|
|
|