]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commit
net: hns3: Config NIC port speed same as that of optical module
authorPeng Li <lipeng321@huawei.com>
Mon, 26 Nov 2018 18:43:00 +0000 (18:43 +0000)
committerDavid S. Miller <davem@davemloft.net>
Wed, 28 Nov 2018 00:33:34 +0000 (16:33 -0800)
commit5d497936756fa2a917643ca688585d721dc6d31e
treed4c6ab10997578bd9f9041d837b5e8e478148de4
parentcc3ec656c78cdbaed925bdc47112735b2d8d2e0b
net: hns3: Config NIC port speed same as that of optical module

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.

Signed-off-by: Peng Li <lipeng321@huawei.com>
Signed-off-by: Salil Mehta <salil.mehta@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_cmd.h
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.h