From patchwork Tue Feb 2 18:25:09 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Danielle Ratson X-Patchwork-Id: 12062595 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 D5F58C433DB 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 886E564F7E for ; Tue, 2 Feb 2021 18:28:34 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238676AbhBBS2Q (ORCPT ); Tue, 2 Feb 2021 13:28:16 -0500 Received: from hqnvemgate26.nvidia.com ([216.228.121.65]:5118 "EHLO hqnvemgate26.nvidia.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238586AbhBBS01 (ORCPT ); Tue, 2 Feb 2021 13:26:27 -0500 Received: from hqmail.nvidia.com (Not Verified[216.228.121.13]) by hqnvemgate26.nvidia.com (using TLS: TLSv1.2, AES256-SHA) id ; Tue, 02 Feb 2021 10:25:31 -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:29 +0000 From: Danielle Ratson To: CC: , , , , , Danielle Ratson Subject: [PATCH ethtool v2 1/5] ethtool: Extend ethtool link modes settings uAPI with lanes Date: Tue, 2 Feb 2021 20:25:09 +0200 Message-ID: <20210202182513.325864-2-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=1612290331; bh=RHKn4D6rGYaXM53ERofw/wQjiB4afNfRMa+qDFZOj98=; 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=IkNyKTtH6lAM1KW9pJrfvJvRJ63ZbQ7HZaFCegN9fVHNXcyMzz251qPaY7FmyRYV6 z87ZbKZaEmEDjjj6U/1pIUH6/h6SjqTVY4fFkr/eVScMcYtXkdkI6VZaZkCX45cWvK +qDBdV64aqKeQ7QdKXQyDkMxXTvs1KEpDc+Z7cr5YZbxGEBWZh1SnIjgbtavH8Y9Xk kWnezFE1AxLNjGjAclAjrS4VtuT29XIFyc8JlI0flVEgKZgNHNYse2GcbWeZe6cV1E LVuWOu1dujfj0/slG4PJa3sKPvkYrJ7i9Jrm7S/VbXmnl6B7cQvuBbkwo38N+2uYkT NFoxWZLTHyyNQ== Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org X-Patchwork-Delegate: mkubecek+ethtool@suse.cz Add ETHTOOL_A_LINKMODES_LANES, expand ethtool_link_settings with lanes attribute and define valid lanes in order to support a new lanes-selector. Signed-off-by: Danielle Ratson --- Notes: v2: * Update headers after changes in upstream patches. netlink/desc-ethtool.c | 1 + uapi/linux/ethtool_netlink.h | 1 + 2 files changed, 2 insertions(+) diff --git a/netlink/desc-ethtool.c b/netlink/desc-ethtool.c index 96291b9..fe5d7ba 100644 --- a/netlink/desc-ethtool.c +++ b/netlink/desc-ethtool.c @@ -87,6 +87,7 @@ static const struct pretty_nla_desc __linkmodes_desc[] = { NLATTR_DESC_U8(ETHTOOL_A_LINKMODES_DUPLEX), NLATTR_DESC_U8(ETHTOOL_A_LINKMODES_MASTER_SLAVE_CFG), NLATTR_DESC_U8(ETHTOOL_A_LINKMODES_MASTER_SLAVE_STATE), + NLATTR_DESC_U32(ETHTOOL_A_LINKMODES_LANES), }; static const struct pretty_nla_desc __linkstate_desc[] = { diff --git a/uapi/linux/ethtool_netlink.h b/uapi/linux/ethtool_netlink.h index c022883..0cd6906 100644 --- a/uapi/linux/ethtool_netlink.h +++ b/uapi/linux/ethtool_netlink.h @@ -227,6 +227,7 @@ enum { ETHTOOL_A_LINKMODES_DUPLEX, /* u8 */ ETHTOOL_A_LINKMODES_MASTER_SLAVE_CFG, /* u8 */ ETHTOOL_A_LINKMODES_MASTER_SLAVE_STATE, /* u8 */ + ETHTOOL_A_LINKMODES_LANES, /* u32 */ /* add new constants above here */ __ETHTOOL_A_LINKMODES_CNT, From patchwork Tue Feb 2 18:25:10 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Danielle Ratson X-Patchwork-Id: 12062599 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 14060C433E0 for ; Tue, 2 Feb 2021 18:28:58 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id CCE2764F68 for ; Tue, 2 Feb 2021 18:28:57 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238684AbhBBS2n (ORCPT ); Tue, 2 Feb 2021 13:28:43 -0500 Received: from hqnvemgate24.nvidia.com ([216.228.121.143]:11004 "EHLO hqnvemgate24.nvidia.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238590AbhBBS01 (ORCPT ); Tue, 2 Feb 2021 13:26:27 -0500 Received: from hqmail.nvidia.com (Not Verified[216.228.121.13]) by hqnvemgate24.nvidia.com (using TLS: TLSv1.2, AES256-SHA) id ; Tue, 02 Feb 2021 10:25:33 -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:31 +0000 From: Danielle Ratson To: CC: , , , , , Danielle Ratson Subject: [PATCH ethtool v2 2/5] netlink: settings: Add netlink support for lanes parameter Date: Tue, 2 Feb 2021 20:25:10 +0200 Message-ID: <20210202182513.325864-3-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=1612290333; bh=4yo+lPM3qtXm6SBubwf13EIprAXPgGk4BZQNGBP+YUM=; 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=HUBOCAbf4twbTxx/De35kuJ+tYh120gpgr3+ZajVaRQedr37CCRPgPEvzJyYnSAt1 TaEwEg/mJ3bLFvrc5b4V3dDl+oOFSsQVQnxOECkCgvA0sbNqxewyBnb2fdBeJIMsMn X7/9LpsGzUJ0pFD/k1t9LT0QVCnPi1qo1sdlFiuAE5q0qoOAlHXMOtUzdLF4kF8jVm WYfsWr8ogJhBTktJqhkZUqWE3VUOPQWI70fzetnVYBWhhqRNNeraUsmHm8DrNJ11Pg CaEUv8qYRFlqGj/6rSo+itj0bIa2QE21nHqd0gBUDevgHGb5jN2tp9gvs/ssjjkjnT 290XmJSV0Dvpg== Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org X-Patchwork-Delegate: mkubecek+ethtool@suse.cz Add support for "ethtool -s lanes N ..." for setting a specific number of lanes. Signed-off-by: Danielle Ratson Reviewed-by: Jiri Pirko --- ethtool.c | 1 + netlink/settings.c | 8 ++++++++ 2 files changed, 9 insertions(+) diff --git a/ethtool.c b/ethtool.c index 585aafa..fcb09f7 100644 --- a/ethtool.c +++ b/ethtool.c @@ -5620,6 +5620,7 @@ static const struct option args[] = { .nlfunc = nl_sset, .help = "Change generic options", .xhelp = " [ speed %d ]\n" + " [ lanes %d ]\n" " [ duplex half|full ]\n" " [ port tp|aui|bnc|mii|fibre|da ]\n" " [ mdix auto|on|off ]\n" diff --git a/netlink/settings.c b/netlink/settings.c index 90c28b1..6cb5d5b 100644 --- a/netlink/settings.c +++ b/netlink/settings.c @@ -20,6 +20,7 @@ struct link_mode_info { enum link_mode_class class; u32 speed; + u32 lanes; u8 duplex; }; @@ -1067,6 +1068,13 @@ static const struct param_parser sset_params[] = { .handler = nl_parse_direct_u32, .min_argc = 1, }, + { + .arg = "lanes", + .group = ETHTOOL_MSG_LINKMODES_SET, + .type = ETHTOOL_A_LINKMODES_LANES, + .handler = nl_parse_direct_u32, + .min_argc = 1, + }, { .arg = "duplex", .group = ETHTOOL_MSG_LINKMODES_SET, From patchwork Tue Feb 2 18:25:11 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Danielle Ratson X-Patchwork-Id: 12062597 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 E239EC43381 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 B10C064F68 for ; Tue, 2 Feb 2021 18:28:34 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238673AbhBBS2b (ORCPT ); Tue, 2 Feb 2021 13:28:31 -0500 Received: from hqnvemgate26.nvidia.com ([216.228.121.65]:5125 "EHLO hqnvemgate26.nvidia.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238447AbhBBS01 (ORCPT ); Tue, 2 Feb 2021 13:26:27 -0500 Received: from hqmail.nvidia.com (Not Verified[216.228.121.13]) by hqnvemgate26.nvidia.com (using TLS: TLSv1.2, AES256-SHA) id ; Tue, 02 Feb 2021 10:25:35 -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:33 +0000 From: Danielle Ratson To: CC: , , , , , Danielle Ratson Subject: [PATCH ethtool v2 3/5] netlink: settings: Expose the number of lanes in use Date: Tue, 2 Feb 2021 20:25:11 +0200 Message-ID: <20210202182513.325864-4-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=1612290335; bh=O3XsYI9i7i57xnl0NhZMDMhMKO1byPD2KZ5poayi7KE=; 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=NPhacdgisr2p77R53wdPuhlo/l37TSywxrgu48T0sIBSmbfba+85aXR1o5mzwkme+ Eugn/09LMa3Q0pUYXGOJpSzkFHwBpxLtWOI1HkDlPI5Q5n0MxtCOYNS11H7SzVJuCw EOOZTIirADSrzvvsVoFfMS8l1NEBQ12Vv3hBPRiMSVPJ5W44xtRBvA7GUlZyvnpTQP eLL3T7c67WE0jUxvJnlMfFBYcgDN6cK7/uY5rRQkQ45QZvIq2+CvocFlQVVbfeylX5 yDxYdqMW1yQT/gebzKlhW548lfzzVZzWiZIUzx3zXptAwGpWuyndikvLyER2DASlsp aJmRH5bL3n1OQ== Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org X-Patchwork-Delegate: mkubecek+ethtool@suse.cz Currently, the user does not have the information regarding how many lanes are used when the link is up. After adding a possibility to advertise or force a specific number of lanes this information becomes helpful. Expose the number of lanes in use if the information is passed from kernel. Signed-off-by: Danielle Ratson --- Notes: v2: * Remove possibility for printing unknown lanes, as now unknown lanes attribute doesn't pass to netlink. netlink/settings.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/netlink/settings.c b/netlink/settings.c index 6cb5d5b..2ebe4c9 100644 --- a/netlink/settings.c +++ b/netlink/settings.c @@ -474,6 +474,12 @@ int linkmodes_reply_cb(const struct nlmsghdr *nlhdr, void *data) else printf("\tSpeed: %uMb/s\n", val); } + if (tb[ETHTOOL_A_LINKMODES_LANES]) { + uint32_t val = mnl_attr_get_u32(tb[ETHTOOL_A_LINKMODES_LANES]); + + print_banner(nlctx); + printf("\tLanes: %u\n", val); + } if (tb[ETHTOOL_A_LINKMODES_DUPLEX]) { uint8_t val = mnl_attr_get_u8(tb[ETHTOOL_A_LINKMODES_DUPLEX]); 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=() From patchwork Tue Feb 2 18:25:13 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Danielle Ratson X-Patchwork-Id: 12062601 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 485ADC433E0 for ; Tue, 2 Feb 2021 18:29:44 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id E630E64F68 for ; Tue, 2 Feb 2021 18:29:43 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238690AbhBBS3D (ORCPT ); Tue, 2 Feb 2021 13:29:03 -0500 Received: from hqnvemgate25.nvidia.com ([216.228.121.64]:1733 "EHLO hqnvemgate25.nvidia.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238593AbhBBS01 (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:40 -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:38 +0000 From: Danielle Ratson To: CC: , , , , , Danielle Ratson Subject: [PATCH ethtool v2 5/5] man: Add man page for setting lanes parameter Date: Tue, 2 Feb 2021 20:25:13 +0200 Message-ID: <20210202182513.325864-6-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=1612290340; bh=lJN+XR69IOEVB/YZ4idOOmkI3khbeamZqAvWYp4mJn4=; 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=i//nTFxCBayCoNxZ9NuSxwuaSo49d2v76PG80kgfnsmvUfRulsCCYblt3plW7HyNr K7eZaY4/uGFQwUyYtKwUbDvlF4KcK0pfTUvRO6noCsZEZ6GLyXudlcYMCjPXBT80U2 0y9PiIbrRUMUBKvRd2mFXmm2cZhrHgmFMvrOz6KI1EcdmO+WNB62io7/mUBUOTmF2c d/MhcQLnIMOr/iqMQm47Myz2B53/TrhK7pmAocvlXJTt6dfU9gkk7AE1BqKC5VwAzn O4tYXtrjsZFqMzi00MdODlDpj5FdkCt7gj1FUpSvAvrwjhK4AoBvMrmCiU6VfY1y07 jaz+WmL4krwGg== Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org X-Patchwork-Delegate: mkubecek+ethtool@suse.cz Lanes parameter was added for setting using ethtool. Update the man page to include the new parameter. Signed-off-by: Danielle Ratson --- ethtool.8.in | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/ethtool.8.in b/ethtool.8.in index ba4e245..fe49b66 100644 --- a/ethtool.8.in +++ b/ethtool.8.in @@ -251,6 +251,7 @@ ethtool \- query or control network driver and hardware settings .B ethtool \-s .I devname .BN speed +.BN lanes .B2 duplex half full .B4 port tp aui bnc mii fibre da .B3 mdix auto on off @@ -685,6 +686,9 @@ Set speed in Mb/s. .B ethtool with just the device name as an argument will show you the supported device speeds. .TP +.BI lanes \ N +Set number of lanes. +.TP .A2 duplex half full Sets full or half duplex mode. .TP