net: hns3: fix for getting wrong link mode problem
authorFuyun Liang <[email protected]>
Wed, 21 Mar 2018 07:49:27 +0000 (15:49 +0800)
committerDavid S. Miller <[email protected]>
Thu, 22 Mar 2018 17:12:02 +0000 (13:12 -0400)
commit0979aa0bfdc6d873f495310a8680436a66ff9c81
treeef039da90cc1e88d4c404a9655ed032ddeaaa027
parenta95e1f8666e910f43f47b5b1bec2cdf25f513f74
net: hns3: fix for getting wrong link mode problem

Fixed link mode is returned by hns3_get_link_ksettings. It is
unreasonable.

This patch fixes it by adding some related functions to get link
mode from hardware.

Signed-off-by: Fuyun Liang <[email protected]>
Signed-off-by: Peng Li <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
drivers/net/ethernet/hisilicon/hns3/hnae3.h
drivers/net/ethernet/hisilicon/hns3/hns3_ethtool.c
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_cmd.h
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.h