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=-7.0 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_PATCH,MAILING_LIST_MULTI,SIGNED_OFF_BY,SPF_PASS,URIBL_BLOCKED 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 DA10AC43381 for ; Wed, 27 Feb 2019 13:49:08 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id B470920C01 for ; Wed, 27 Feb 2019 13:49:08 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730420AbfB0NtH (ORCPT ); Wed, 27 Feb 2019 08:49:07 -0500 Received: from mx2.suse.de ([195.135.220.15]:48536 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1730367AbfB0NtG (ORCPT ); Wed, 27 Feb 2019 08:49:06 -0500 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.220.254]) by mx1.suse.de (Postfix) with ESMTP id 34799AFE9; Wed, 27 Feb 2019 13:49:05 +0000 (UTC) Received: by unicorn.suse.cz (Postfix, from userid 1000) id D5ACBE00AD; Wed, 27 Feb 2019 14:49:04 +0100 (CET) From: Michal Kubecek Subject: [PATCH RESEND ethtool] ethtool: add 10000baseR_FEC link mode name To: "John W. Linville" Cc: netdev@vger.kernel.org Message-Id: <20190227134904.D5ACBE00AD@unicorn.suse.cz> Date: Wed, 27 Feb 2019 14:49:04 +0100 (CET) Sender: netdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org ETHTOOL_LINK_MODE_10000baseR_FEC_BIT link mode is listed in ethtool_link_mode_bit_indices array but doesn't have its name assigned in the table in dump_link_caps() (so that it's not shown in "ethtool " output) and is not listed in the manual page. Add it to both. Signed-off-by: Michal Kubecek --- ethtool.8.in | 1 + ethtool.c | 2 ++ 2 files changed, 3 insertions(+) diff --git a/ethtool.8.in b/ethtool.8.in index 5a26cff5fb33..3d288eaadf23 100644 --- a/ethtool.8.in +++ b/ethtool.8.in @@ -633,6 +633,7 @@ lB l lB. 0x1000 10000baseT Full 0x40000 10000baseKX4 Full 0x80000 10000baseKR Full +0x100000 10000baseR_FEC 0x40000000000 10000baseCR Full 0x80000000000 10000baseSR Full 0x100000000000 10000baseLR Full diff --git a/ethtool.c b/ethtool.c index fb4c0886ca84..b6a1eaa383a3 100644 --- a/ethtool.c +++ b/ethtool.c @@ -633,6 +633,8 @@ static void dump_link_caps(const char *prefix, const char *an_prefix, "10000baseKX4/Full" }, { 0, ETHTOOL_LINK_MODE_10000baseKR_Full_BIT, "10000baseKR/Full" }, + { 0, ETHTOOL_LINK_MODE_10000baseR_FEC_BIT, + "10000baseR_FEC" }, { 0, ETHTOOL_LINK_MODE_20000baseMLD2_Full_BIT, "20000baseMLD2/Full" }, { 0, ETHTOOL_LINK_MODE_20000baseKR2_Full_BIT, -- 2.20.1