]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
net: hns3: add support to update flow control settings after autoneg
authorPeng Li <lipeng321@huawei.com>
Fri, 22 Dec 2017 04:21:52 +0000 (12:21 +0800)
committerSeth Forshee <seth.forshee@canonical.com>
Fri, 16 Mar 2018 15:47:12 +0000 (10:47 -0500)
commit6282f2ea7f2c173c4dcc4860631a4e9e66d6d69e
treecdd15e2136fe332892ca2e63d062017268847975
parent09ea401e34505ade0023a86ea6316a74bb3b2ce4
net: hns3: add support to update flow control settings after autoneg

BugLink: http://bugs.launchpad.net/bugs/1756097
When auto-negotiation is enabled, the MAC flow control settings is
based on the flow control negotiation result. And it should be configured
after a valid link has been established. This patch adds support to update
flow control settings after auto-negotiation has completed.

Signed-off-by: Peng Li <lipeng321@huawei.com>
Signed-off-by: Fuyun Liang <liangfuyun1@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
(cherry picked from commit 1770a7a3aeb23c0a1232486c8c4f50964725de46)
Signed-off-by: Manoj Iyer <manoj.iyer@canonical.com>
Signed-off-by: Seth Forshee <seth.forshee@canonical.com>
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.h
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_mdio.c