Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp568433pxb; Tue, 19 Oct 2021 08:33:32 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw7t5c0Sm1du81fH8HdoGeRfk/ZY0DdYz2WS689UfMEHqP23fZMowRyKqCkjaE0yLKQzfIo X-Received: by 2002:a17:90a:62ca:: with SMTP id k10mr597062pjs.38.1634657612333; Tue, 19 Oct 2021 08:33:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1634657612; cv=none; d=google.com; s=arc-20160816; b=E2mw0zporq3jjLCQQYP7hbr4bwAXzz5FX8PjojC4qU/9goWJYnd4w61dxVLkAAt5cU uoBfe6Ary8WpNUQGxhRgWp1hATgbRyzDQ58AoaVeJyQFxEuunqGz0L14gJjsMTT4Vy2q GkMVy+sGykSp2afZshuXEDSp/VO+HAvrsxvPxq5A5DZjp7TJxB6nw0gedJYNulrXEQB3 GtaFZHKVLWS687dtnsT8GPwnbL5RXqO8XMmR3LOFmL1ObnrS61zwDFR4TmFuw7FK/2r+ dQR7lklH3dvVad4UjgkdfeJ2PhcI4HAe/JQGdsFDnvpV6ziFnxUkcxY/HDRhQK/zGJMD Q8gw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=z8BL/0+dJumsZiNiOfF9e5CmSkrMWw8g5VfhkDAHdKg=; b=pe0NNA8IcLxhjw1FU6AnqLNq7PnEuHMXwmYFw0YRAv7DL+gOgQ8nUWQoq0VOuc4za5 P+5Zb9rWmtuc5ETMg+8a5HK/XFNDYgZZJT4wJjtXLwnoE8lYSlFLG4efuoCewuJsv+RE bs1o4Kk/OTL/0SnirG51MzydiJfYu2hpgWAAHmddlnJiF1z8AAvebBaKBUEEuWyEI78n kshXUqYnBFg1j+O+O1mVbCrLRwdsHUSePh366fO3Tffc7chrZb0dRKuVsWfRSEnZCCDq VfYZRW2huvK9Dw71cTcBP3YxCn+lct2bzoEdX/BcXUpyDVA/ilXhMFf5cAIz4Dj6zm/6 Pqow== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b=1jpucm7p; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id kb10si5463540pjb.46.2021.10.19.08.33.19; Tue, 19 Oct 2021 08:33:32 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b=1jpucm7p; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232051AbhJSPeK (ORCPT + 99 others); Tue, 19 Oct 2021 11:34:10 -0400 Received: from vps0.lunn.ch ([185.16.172.187]:46870 "EHLO vps0.lunn.ch" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230097AbhJSPeJ (ORCPT ); Tue, 19 Oct 2021 11:34:09 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lunn.ch; s=20171124; h=In-Reply-To:Content-Disposition:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:From:Sender:Reply-To:Subject: Date:Message-ID:To:Cc:MIME-Version:Content-Type:Content-Transfer-Encoding: Content-ID:Content-Description:Content-Disposition:In-Reply-To:References; bh=z8BL/0+dJumsZiNiOfF9e5CmSkrMWw8g5VfhkDAHdKg=; b=1jpucm7pWi3VLrT8O2rwvoTjNy nVJYwmLyzWjJqyjDhR9Ue9f74ODqhjPhy34Erlwcrw0wQ5Io/NlRKSoLWgCx0pWO1gZJYrClirNfi bL7Vz6PbySthe2OgUDqRJog+sIsFGuBaHzqiKwyS/zFB0wD2KJL+M3/fhJQMKjsACIBg=; Received: from andrew by vps0.lunn.ch with local (Exim 4.94.2) (envelope-from ) id 1mcr5k-00B5cd-4F; Tue, 19 Oct 2021 17:31:52 +0200 Date: Tue, 19 Oct 2021 17:31:52 +0200 From: Andrew Lunn To: Erik Ekman Cc: Edward Cree , Martin Habets , "David S. Miller" , Jakub Kicinski , netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] sfc: Export fibre-specific link modes for 1/10G Message-ID: References: <20211018183709.124744-1-erik@kryo.se> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20211018183709.124744-1-erik@kryo.se> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Oct 18, 2021 at 08:37:08PM +0200, Erik Ekman wrote: > These modes were added to ethtool.h in 5711a98221443 ("net: ethtool: add support > for 1000BaseX and missing 10G link modes") back in 2016. > > Only setting CR mode for 10G, similar to how 25/40/50/100G modes are set up. > > Tested using SFN5122F-R7 (with 2 SFP+ ports) and a 1000BASE-BX10 SFP module. Did you test with a Copper SFP modules? > +++ b/drivers/net/ethernet/sfc/mcdi_port_common.c > @@ -133,9 +133,9 @@ void mcdi_to_ethtool_linkset(u32 media, u32 cap, unsigned long *linkset) > case MC_CMD_MEDIA_QSFP_PLUS: > SET_BIT(FIBRE); > if (cap & (1 << MC_CMD_PHY_CAP_1000FDX_LBN)) > - SET_BIT(1000baseT_Full); > + SET_BIT(1000baseX_Full); I'm wondering if you should have both? The MAC is doing 1000BaseX. But it could then be connected to a copper PHY which then does 1000baseT_Full? At 1G, it is however more likely to be using SGMII, not 1000BaseX. Andrew