Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp77609yba; Thu, 2 May 2019 20:15:40 -0700 (PDT) X-Google-Smtp-Source: APXvYqz3KH4s02W3Dp7BxTVTTd1zNqoRxj8ubuaCqI1eXyYCxiV3bcj6c74yJVwCOnMesO34OPQP X-Received: by 2002:a62:160b:: with SMTP id 11mr6748262pfw.88.1556853340062; Thu, 02 May 2019 20:15:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1556853340; cv=none; d=google.com; s=arc-20160816; b=f/2hPKruSPqHoy4UykpromsmmWAWgaIPRrnAGkdhMm/xw6ymVjh3tEyyLF7BzfCMJ3 4oQIjKqKY604QgQwmlI2YAynFEDDnYjm20MX9sxsCDPPPOINElW/eGdnqcdNAoTuYOMp 0zmiauLDAsqqnP+I+VikoWVohsez4fk18hzaFW11/04PdaN+69ptLX2e501qbgMrveda KOSEtSFOBhzdyH7Jhchn0GzbUwcQuZXdX924/0JhSPO/lnJ3ijbod3K4xFSrjWGRmEKx qvLN6JYDVhNfqmu/VeJosybA/SmDXv7Cchw3yY7xmlL/atHG1jmU2DsWxWcvgwPz7WLD 2zkA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:in-reply-to :mime-version:user-agent:date:message-id:from:cc:to:references :subject:reply-to; bh=hA6B2Yzpv89kFHgNvqQvmMIGfG6NhCMPdErcnOFoMLE=; b=f0bPQMZpFCPmi0E0UB/zEJAFumkFp68WdunjHpJj5f4LGCFwQyoxYJ/05kDCI2X87f mYR7bO41pLy7BQgGVf49VhV98JJ+oRl3cctsAexM6bPq82M7/ZFlrByrc68om4VbPcup oxFAnKA6dINkzqWv4VQk6FKYexwF2EfZhLes/z6TBghEWo9lqnNuNkG4FgONM/skY7cT zIAZqoFD1azcA5exzRPq6m1mHJYrc3xsgi0hwxx0g9ZuLcJQQApgS/ua4X7R/4Hb5UuU wn1gfxZD48aDBvMvIWuvtiCf+wE3VETdmONMaW9ZcjInVtblA8X20/bYxfPTz8CeP7Fq HVTA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id h189si828497pfc.283.2019.05.02.20.15.12; Thu, 02 May 2019 20:15:40 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726370AbfECDNn (ORCPT + 99 others); Thu, 2 May 2019 23:13:43 -0400 Received: from szxga08-in.huawei.com ([45.249.212.255]:56144 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726114AbfECDNn (ORCPT ); Thu, 2 May 2019 23:13:43 -0400 Received: from DGGEMM405-HUB.china.huawei.com (unknown [172.30.72.55]) by Forcepoint Email with ESMTP id 673BBD8C518546284565; Fri, 3 May 2019 11:13:40 +0800 (CST) Received: from dggeme757-chm.china.huawei.com (10.3.19.103) by DGGEMM405-HUB.china.huawei.com (10.3.20.213) with Microsoft SMTP Server (TLS) id 14.3.408.0; Fri, 3 May 2019 11:13:39 +0800 Received: from [127.0.0.1] (10.63.173.108) by dggeme757-chm.china.huawei.com (10.3.19.103) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1591.10; Fri, 3 May 2019 11:13:39 +0800 Reply-To: Subject: Re: [PATCH net-next 1/3] net: hns3: add support for multiple media type References: <1556679944-100941-1-git-send-email-lipeng321@huawei.com> <1556679944-100941-2-git-send-email-lipeng321@huawei.com> <20190501123750.GA9844@lunn.ch> To: Andrew Lunn CC: , , , , , From: "lipeng (Y)" Message-ID: <1d7faec8-22f7-0e8f-7e38-9ad600134a7c@huawei.com> Date: Fri, 3 May 2019 11:13:23 +0800 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.7.1 MIME-Version: 1.0 In-Reply-To: <20190501123750.GA9844@lunn.ch> Content-Type: text/plain; charset="windows-1252"; format=flowed Content-Transfer-Encoding: 7bit X-Originating-IP: [10.63.173.108] X-ClientProxiedBy: dggemx701-chm.china.huawei.com (10.1.199.48) To dggeme757-chm.china.huawei.com (10.3.19.103) X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2019/5/1 20:37, Andrew Lunn wrote: > On Wed, May 01, 2019 at 11:05:42AM +0800, Peng Li wrote: >> From: Jian Shen >> >> Previously, we can only identify copper and fiber type, the >> supported link modes of port information are always showing >> SR type. This patch adds support for multiple media types, >> include SR, LR CR, KR. Driver needs to query the media type >> from firmware periodicly, and updates the port information. >> >> The new port information looks like this: >> Settings for eth0: >> Supported ports: [ FIBRE ] >> Supported link modes: 25000baseCR/Full >> 25000baseSR/Full >> 1000baseX/Full >> 10000baseCR/Full >> 10000baseSR/Full >> 10000baseLR/Full >> Supported pause frame use: Symmetric >> Supports auto-negotiation: No >> Supported FEC modes: None BaseR >> Advertised link modes: 25000baseCR/Full >> 25000baseSR/Full >> 1000baseX/Full >> 10000baseCR/Full >> 10000baseSR/Full >> 10000baseLR/Full > Hi Peng > > If it does not support auto-negotiation, do these advertised link > modes make any sense? Does it really advertise, or is it all fixed > configured? > > Andrew > > . Hi Andrew: it makes no sense when auto-negotiation is not supported. I should handle it differently with the case supports auto-negotiation and not supports auto-negotiation. I will fix it in next version, result like below: Settings for eth0: Supported ports: [ FIBRE ] Supported link modes: 25000baseCR/Full 25000baseSR/Full 1000baseX/Full 10000baseCR/Full 10000baseSR/Full 10000baseLR/Full Supported pause frame use: Symmetric Supports auto-negotiation: No Supported FEC modes: None BaseR Advertised link modes: Not reported Advertised pause frame use: No Advertised auto-negotiation: No Advertised FEC modes: Not reported Speed: 10000Mb/s Duplex: Full Port: FIBRE PHYAD: 0 Transceiver: internal Auto-negotiation: off Current message level: 0x00000036 (54) probe link ifdown ifup Link detected: yes Wish I have understood your comments correctly. Thanks! >