From patchwork Tue Feb 2 18:25:12 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Danielle Ratson X-Patchwork-Id: 12062593 X-Patchwork-Delegate: mkubecek+ethtool@suse.cz Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-19.1 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_CR_TRAILER,INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS, URIBL_BLOCKED,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 92101C433E0 for ; Tue, 2 Feb 2021 18:28:34 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 43E6E64F68 for ; Tue, 2 Feb 2021 18:28:34 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238654AbhBBS2C (ORCPT ); Tue, 2 Feb 2021 13:28:02 -0500 Received: from hqnvemgate25.nvidia.com ([216.228.121.64]:1728 "EHLO hqnvemgate25.nvidia.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237570AbhBBS01 (ORCPT ); Tue, 2 Feb 2021 13:26:27 -0500 Received: from hqmail.nvidia.com (Not Verified[216.228.121.13]) by hqnvemgate25.nvidia.com (using TLS: TLSv1.2, AES256-SHA) id ; Tue, 02 Feb 2021 10:25:37 -0800 Received: from dev-r-vrt-156.mtr.labs.mlnx (172.20.145.6) by HQMAIL107.nvidia.com (172.20.187.13) with Microsoft SMTP Server (TLS) id 15.0.1473.3; Tue, 2 Feb 2021 18:25:35 +0000 From: Danielle Ratson To: CC: , , , , , Danielle Ratson Subject: [PATCH ethtool v2 4/5] shell-completion: Add completion for lanes Date: Tue, 2 Feb 2021 20:25:12 +0200 Message-ID: <20210202182513.325864-5-danieller@nvidia.com> X-Mailer: git-send-email 2.26.2 In-Reply-To: <20210202182513.325864-1-danieller@nvidia.com> References: <20210202182513.325864-1-danieller@nvidia.com> MIME-Version: 1.0 X-Originating-IP: [172.20.145.6] X-ClientProxiedBy: HQMAIL111.nvidia.com (172.20.187.18) To HQMAIL107.nvidia.com (172.20.187.13) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nvidia.com; s=n1; t=1612290337; bh=hYdZvoYpxqLdWb+8Aj7vDDVSwW9pDXsMLJmkcuDw5i0=; h=From:To:CC:Subject:Date:Message-ID:X-Mailer:In-Reply-To: References:MIME-Version:Content-Transfer-Encoding:Content-Type: X-Originating-IP:X-ClientProxiedBy; b=InbZPDfsgXaxgGNDF9D00phbQc/LjmwfXfYbf53oXhHfBuhQJ85kuW6tz+uSbtgy0 8KHpMPhoknQx1nU7dcmN9phWGRw4LkyrR9gCnJWmgMzDa1yoCXvW39POBPPsxAZUWV 6shMNr8LmpjmVRzP6GMoLdAEtyR5SQwO0FyYsWCZWPwaW7RWcMoxEvIn6QPvDeSIhX r16BswDfisDfXINqzkOJin+HsCQULlIh1wLv0FI+23ttckCjQCrQiQcSQF0L7zttRR AEacWA+aXvTnOPSmyGDKvD0dHTFuxrBNbHfpzZFSrO7Omfp2KHN7wQqCu9dp93ZQKD AVKsPjVLWvUVw== Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org X-Patchwork-Delegate: mkubecek+ethtool@suse.cz Lanes was added as a new link mode setting in ethtool. Support completion for lanes when setting parameters. Signed-off-by: Danielle Ratson Reviewed-by: Jiri Pirko --- shell-completion/bash/ethtool | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/shell-completion/bash/ethtool b/shell-completion/bash/ethtool index 5305559..4557341 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=()