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=-8.5 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_PATCH,MAILING_LIST_MULTI,SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS, URIBL_BLOCKED,USER_AGENT_MUTT 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 5A37BC04AB6 for ; Fri, 31 May 2019 15:50:12 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 37ABC2680F for ; Fri, 31 May 2019 15:50:12 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726695AbfEaPuL (ORCPT ); Fri, 31 May 2019 11:50:11 -0400 Received: from mx2.suse.de ([195.135.220.15]:48622 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726037AbfEaPuK (ORCPT ); Fri, 31 May 2019 11:50:10 -0400 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 46C2DAF79; Fri, 31 May 2019 15:50:09 +0000 (UTC) Received: by unicorn.suse.cz (Postfix, from userid 1000) id 9E8CAE00E3; Fri, 31 May 2019 17:50:07 +0200 (CEST) Date: Fri, 31 May 2019 17:50:07 +0200 From: Michal Kubecek To: netdev@vger.kernel.org Cc: Andrew Lunn , linville@redhat.com Subject: Re: [PATCH v2 2/2] ethtool: Add 100BaseT1 and 1000BaseT1 link modes Message-ID: <20190531155007.GF15954@unicorn.suse.cz> References: <20190531135748.23740-1-andrew@lunn.ch> <20190531135748.23740-3-andrew@lunn.ch> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190531135748.23740-3-andrew@lunn.ch> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: netdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org On Fri, May 31, 2019 at 03:57:48PM +0200, Andrew Lunn wrote: > The kernel can now indicate if the PHY supports operating over a > single pair at 100Mbps or 1000Mbps. > > Signed-off-by: Andrew Lunn > --- Reviewed-by: Michal Kubecek > ethtool.8.in | 2 ++ > ethtool.c | 6 ++++++ > 2 files changed, 8 insertions(+) > > diff --git a/ethtool.8.in b/ethtool.8.in > index 430d11b915af..6af63455c636 100644 > --- a/ethtool.8.in > +++ b/ethtool.8.in > @@ -639,8 +639,10 @@ lB l lB. > 0x002 10baseT Full > 0x004 100baseT Half > 0x008 100baseT Full > +0x80000000000000000 100baseT1 Full > 0x010 1000baseT Half (not supported by IEEE standards) > 0x020 1000baseT Full > +0x100000000000000000 1000baseT1 Full > 0x20000 1000baseKX Full > 0x20000000000 1000baseX Full > 0x800000000000 2500baseT Full This reminds me the earlier discussion about which syntax extension would be more useful: ethtool -s advertise 100baseT1/Full 1000baseT1/Full (listing modes to be advertised) or ethtool -s advertise 100baseT1/Full off 1000baseT1/Full on (enabling/disabling selected modes). But maybe we could support both; after all, it's unlikely there would ever be a link mode named "on" or "off". Michal