linux_dsm_epyc7002/drivers/net/ethernet/hisilicon/hns3
Huazhong Tan 65e41e7e68 net: hns3: add error handler for hclge_reset()
When hclge_reset() is called, it may fail for several reasons.
For example, an higher-level reset event occurs, memory allocation
failure, hardware reset timeout, etc. Therefore, it is necessary
to add corresponding error handling for these situations.
1. A high-level reset is required due to a high-level reset failure.
2. For memory allocation failure, a high-level reset is initiated by
the timer to recover. The reason for using the timer is to prevent this
new high-level reset to interrupt the reset process of other pf/vf;
3. For the case of hardware reset timeout, reschedule the reset task
to wait for the hardware to complete the reset.
For memory allocation failure and reset timeouts, in order to prevent
an infinite number of scheduled reset tasks, the number of error
recovery needs to be limited.

This patch also add some reset related debug log printing.

Signed-off-by: Huazhong Tan <tanhuazhong@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2018-11-07 11:42:18 -08:00
..
hns3pf net: hns3: add error handler for hclge_reset() 2018-11-07 11:42:18 -08:00
hns3vf net: hns3: move some reset information from hnae3_handle into hclge_dev/hclgevf_dev 2018-11-07 11:42:18 -08:00
hclge_mbx.h net: hns3: Drop depricated mta table support 2018-10-05 12:01:55 -07:00
hnae3.c net: hns3: Fix client initialize state issue when roce client initialize failed 2018-09-19 21:20:22 -07:00
hnae3.h net: hns3: move some reset information from hnae3_handle into hclge_dev/hclgevf_dev 2018-11-07 11:42:18 -08:00
hns3_dcbnl.c net: hns3: use HNS3_NIC_STATE_RESETTING to indicate resetting 2018-11-07 11:42:17 -08:00
hns3_enet.c net: hns3: move some reset information from hnae3_handle into hclge_dev/hclgevf_dev 2018-11-07 11:42:18 -08:00
hns3_enet.h net: hns3: use HNS3_NIC_STATE_RESETTING to indicate resetting 2018-11-07 11:42:17 -08:00
hns3_ethtool.c net: hns3: use HNS3_NIC_STATE_RESETTING to indicate resetting 2018-11-07 11:42:17 -08:00
Makefile net: hns3: Unified HNS3 {VF|PF} Ethernet Driver for hip08 SoC 2017-12-15 10:55:34 -05:00