]> git.baikalelectronics.ru Git - 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)
committerDavid S. Miller <davem@davemloft.net>
Wed, 27 Dec 2017 15:41:54 +0000 (10:41 -0500)
commit613b6c09e720f76bc95c0a7a95a096d835f4f6b6
treeaf71e21ba9fdbce50a5437d24b979aae72d48e2a
parentc7255e9d5d5f4900c09c10ce49b752a4f7ba238b
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