OSDN Git Service

net: hns3: fix flow control configure issue for fibre port
authorJian Shen <shenjian15@huawei.com>
Thu, 4 Jul 2019 14:04:21 +0000 (22:04 +0800)
committerDavid S. Miller <davem@davemloft.net>
Fri, 5 Jul 2019 22:39:38 +0000 (15:39 -0700)
commitfb89629f2ecfa0feb07f9981c1bd66a4b4407f44
tree61ffb88ed2b0c9df6d7779873b916bcefd98c1f0
parent2d5066fc175ea77a733d84df9ef414b34f311641
net: hns3: fix flow control configure issue for fibre port

Flow control autoneg is unsupported for fibre port. It takes no
effect for flow control when restart autoneg. This patch fixes
it, return -EOPNOTSUPP when user tries to enable flow control
autoneg.

Signed-off-by: Jian Shen <shenjian15@huawei.com>
Signed-off-by: Peng Li <lipeng321@huawei.com>
Signed-off-by: Huazhong Tan <tanhuazhong@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c