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)
committerDavid S. Miller <davem@davemloft.net>
Wed, 27 Dec 2017 15:41:54 +0000 (10:41 -0500)
commit1770a7a3aeb23c0a1232486c8c4f50964725de46
treeaf71e21ba9fdbce50a5437d24b979aae72d48e2a
parent61387774d96ef5d2c6b876efa6a35c9c124ae4ae
net: hns3: add support to update flow control settings after autoneg

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>
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