net: hns3: add support ethtool extended link state
authorGuangbin Huang <huangguangbin2@huawei.com>
Mon, 16 Aug 2021 02:15:29 +0000 (10:15 +0800)
committerJakub Kicinski <kuba@kernel.org>
Mon, 16 Aug 2021 22:12:14 +0000 (15:12 -0700)
commitf5c2b9f0fc078308a88de807d60cd4e352a165fc
tree7cfa1584bf38a0b9b601a165c0a471b0b969244f
parentedb40bbc17eb589beb3cbd672d341e1505d6cdb1
net: hns3: add support ethtool extended link state

In order to know the reason of link up failure, add supporting ethtool
extended link state. Driver reads the link status code from firmware if
in link down state and converts it to ethtool extended link state.

Signed-off-by: Guangbin Huang <huangguangbin2@huawei.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/hisilicon/hns3/hnae3.h
drivers/net/ethernet/hisilicon/hns3/hns3_ethtool.c
drivers/net/ethernet/hisilicon/hns3/hns3_ethtool.h
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_cmd.h
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c