Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp340600yba; Fri, 3 May 2019 02:57:32 -0700 (PDT) X-Google-Smtp-Source: APXvYqzFdeoc0Rw3Q6F98uhKG+BPTJHOlvkzA0DZ8miA/v0wUIq3UkSGnXdR6xHGy61kuaVVDtAT X-Received: by 2002:a63:cd15:: with SMTP id i21mr1534078pgg.269.1556877452530; Fri, 03 May 2019 02:57:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1556877452; cv=none; d=google.com; s=arc-20160816; b=ldKTiQZv+EmKssab0RShc8tPP/NbVPMhc5FA5MzKPA0m4HQZqv3ZoX0H/Pckyndcpa xJ/pMRWPI9qOpbFQwHRRitYYKC5MnuAG738LV90Xz2B2SAOXPRAZq14Yy03me/J9dtKI 9VEQf/MM/ZxDnkMYHyQPV4hsAzTINzlU6QZx9Somz5LyLrK32LMkWhYRKIR53e4Nc9xJ M80/9cFeswDvcA4wtHj8uz73rXTmO5X0lVNe5jQr6FR4GzE7JqLjq7IYf2IbyHtVOZYQ mcssq3MmKkkKda5hFuFV2bBT4VFPAKN7yJSY381tVc88o9nqC4NuNPqpa1P+edfTjotv cKHg== 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=WJLyzqi/CqdykucrMHSeHdCy0+CplotHGXi7Dg/ZpjY=; b=fERuzJ1Q0yaSEDglRiNHm3pbBhCZLIq/ZDrkaS3JwZWmU3Kp+wPA5cgNlhCY5pFQCf 2UzBaOnkOmKDc2P4Do8aMfpfifNzpjJQw4Cj9xkyoVbCtp5o5VlgMcd8Cz03nWQz+jxr gYjN9mUYZh7Bn9BZYbF8bhGrwqZ6jYH92d6L7OgO2r00cYLA6gU2GzTUDg8rP+F4pmAj 5kftafWJkYeyh2HJuV/7zaGsdB6zPmPdoyQPD8P8T6W+Bfqh0h2c1hgK5f6TegrOIyg/ uf9F3b2Af1XzGr/9jAWplpez0dR1srtniHxGkmWiX3raRTNL85U0pwalG3sEBg2EvGKW 5uUw== 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 x14si1530518pfm.179.2019.05.03.02.57.17; Fri, 03 May 2019 02:57:32 -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 S1727322AbfECJyZ (ORCPT + 99 others); Fri, 3 May 2019 05:54:25 -0400 Received: from szxga08-in.huawei.com ([45.249.212.255]:50798 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726495AbfECJyY (ORCPT ); Fri, 3 May 2019 05:54:24 -0400 Received: from DGGEMM406-HUB.china.huawei.com (unknown [172.30.72.54]) by Forcepoint Email with ESMTP id 8A8414505F37E3B35B3B; Fri, 3 May 2019 17:54:21 +0800 (CST) Received: from dggeme757-chm.china.huawei.com (10.3.19.103) by DGGEMM406-HUB.china.huawei.com (10.3.20.214) with Microsoft SMTP Server (TLS) id 14.3.408.0; Fri, 3 May 2019 17:54:21 +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 17:54:20 +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> <1d7faec8-22f7-0e8f-7e38-9ad600134a7c@huawei.com> To: Andrew Lunn CC: , , , , , From: "lipeng (Y)" Message-ID: <96bbc8c7-0e13-decd-dfb5-ce68df143f39@huawei.com> Date: Fri, 3 May 2019 17:54:19 +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: <1d7faec8-22f7-0e8f-7e38-9ad600134a7c@huawei.com> Content-Type: text/plain; charset="windows-1252"; format=flowed Content-Transfer-Encoding: 7bit X-Originating-IP: [10.63.173.108] X-ClientProxiedBy: dggemx702-chm.china.huawei.com (10.1.199.49) 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/3 11:13, lipeng (Y) wrote: > > > 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! > Hi, Andrew: Thanks for your review. And I have replied your comments. As this week is 5.1-rc7, not sure if there is rc8, I'm sorry for sending V2 patch-set without waiting for your reply again on V1. Thanks > >> > > > > . >