]> git.baikalelectronics.ru Git - kernel.git/commit
net: hns3: fix port capbility updating issue
authorJian Shen <shenjian15@huawei.com>
Thu, 4 Jul 2019 14:04:22 +0000 (22:04 +0800)
committerDavid S. Miller <davem@davemloft.net>
Fri, 5 Jul 2019 22:39:38 +0000 (15:39 -0700)
commit18712917b8c7714d91a6ff64ee31a8e6fbc0e0f6
tree3610ec88058142b5e88aa0bf0438e81ab86a4950
parent64af180bd9d8f70c30084b2563f4acc855a89b0b
net: hns3: fix port capbility updating issue

Currently, the driver queries the media port information, and
updates the port capability periodically. But it sets an error
mac->speed_type value, which stops update port capability.

Fixes: 66e2d2466077 ("net: hns3: add support for multiple media type")
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