Re: [PATCH net-next] net: hns3: Config NIC port speed same as that of optical module

From: dann frazier
Date: Mon Dec 31 2018 - 20:22:23 EST


On Mon, Nov 26, 2018 at 06:43:00PM +0000, Salil Mehta wrote:
> From: Peng Li <lipeng321@xxxxxxxxxx>
>
> 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