Blame SOURCES/0041-shell-completion-Add-completion-for-lanes.patch

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