]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit64af180bd9d8f70c30084b2563f4acc855a89b0b
tree61ffb88ed2b0c9df6d7779873b916bcefd98c1f0
parentc52276bb4e6e533547ab2f7ad00a5c1096f64de0
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