]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
net: hns3: Config NIC port speed same as that of optical module
authorPeng Li <lipeng321@huawei.com>
Thu, 28 Feb 2019 02:29:10 +0000 (19:29 -0700)
committerKhalid Elmously <khalid.elmously@canonical.com>
Thu, 28 Feb 2019 17:42:21 +0000 (12:42 -0500)
commit0daa6e883ce1a79e0fac5c9ce10c954f03b33409
tree5eaea09576efbea97d130431826ecc8713207452
parentfb837273a1f17ba249baf8fdf97a0ce0735b870a
net: hns3: Config NIC port speed same as that of optical module

BugLink: https://bugs.launchpad.net/bugs/1817969
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>
(cherry picked from commit 5d497936756fa2a917643ca688585d721dc6d31e)
Signed-off-by: dann frazier <dann.frazier@canonical.com>
Acked-by: Marcelo Henrique Cerri <marcelo.cerri@canonical.com>
Acked-by: Stefan Bader <stefan.bader@canonical.com>
Signed-off-by: Khalid Elmously <khalid.elmously@canonical.com>
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