]> git.baikalelectronics.ru Git - 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)
commit428b01145ccc842387194085b3f39ce8debaa341
treed4c6ab10997578bd9f9041d837b5e8e478148de4
parentc87a2c8aa31c4632595ce31846112270ec9b8a28
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