]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
net: hns3: add Asym Pause support to phy default features
authorFuyun Liang <liangfuyun1@huawei.com>
Fri, 22 Dec 2017 04:21:53 +0000 (12:21 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 12 Apr 2018 10:31:02 +0000 (12:31 +0200)
commitd8ffa7dfceb5fa5c4ddcd51639bbec759592ced2
treeab26a6b434a9b405f8ad04af57d0544c590f2bc5
parent353900b835146f3d83712987cd12d15159842577
net: hns3: add Asym Pause support to phy default features

[ Upstream commit f16121c80c8ee4dab3c41363cb8b24f8d8eaf45f ]

commit c4fb2cdf575d ("net: hns3: fix a bug for phy supported feature
initialization") adds default supported features for phy, but our hardware
also supports Asym Pause. This patch adds Asym Pause support to phy
default features to prevent Asym Pause can not be advertised when the phy
negotiates flow control.

Fixes: c4fb2cdf575d ("net: hns3: fix a bug for phy supported feature initialization")
Signed-off-by: Fuyun Liang <liangfuyun1@huawei.com>
Signed-off-by: Peng Li <lipeng321@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Sasha Levin <alexander.levin@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_mdio.c