From mboxrd@z Thu Jan 1 00:00:00 1970 From: "lipeng (Y)" Subject: Re: [PATCH net-next] net: hns3: Config NIC port speed same as that of optical module Date: Wed, 2 Jan 2019 20:45:36 +0800 Message-ID: References: <20181126184300.24964-1-salil.mehta@huawei.com> <20190101012205.GA22494@xps13.dannf> Mime-Version: 1.0 Content-Type: text/plain; charset="utf-8"; format=flowed Content-Transfer-Encoding: 8bit Cc: , , , , , To: dann frazier , Salil Mehta Return-path: Received: from szxga07-in.huawei.com ([45.249.212.35]:60682 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1729848AbfABMpw (ORCPT ); Wed, 2 Jan 2019 07:45:52 -0500 In-Reply-To: <20190101012205.GA22494@xps13.dannf> Content-Language: en-US Sender: netdev-owner@vger.kernel.org List-ID: On 2019/1/1 9:22, dann frazier wrote: > On Mon, Nov 26, 2018 at 06:43:00PM +0000, Salil Mehta wrote: >> From: Peng Li >> >> Port 0/1 of HiP08 supports 10G and 25G. This patch adds a >> change to configure NIC port speed same as that of optical >> module(SFP/QFSP). Driver gets the optical module speed and >> sets NIC port speed accordingly. > Hi, > > I'm getting the following errors in dmesg about every 1s on a D06: > > [ 766.761823] hns3 0000:bd:00.0: get sfp speed failed -5 > [ 767.785823] hns3 0000:bd:00.0: get sfp speed failed -5 > [ 768.809820] hns3 0000:bd:00.0: get sfp speed failed -5 > [ 769.833818] hns3 0000:bd:00.0: get sfp speed failed -5 > > Reverting this patch fixes the issue. > > -dann Hi,dann, Thanks for your test and report. This patch needs to match new fireware verison , And  it  does some work to  be Compatible with older versions. Can you show me more information? can you  use "ethtool -i ethx" to get the fireware version , and shows me  some other message about hns3? Thanks > > . >