]> git.baikalelectronics.ru Git - kernel.git/commit
net: hns3: re-schedule reset task while VF reset fail
authorHuazhong Tan <tanhuazhong@huawei.com>
Fri, 28 Jun 2019 11:50:13 +0000 (19:50 +0800)
committerDavid S. Miller <davem@davemloft.net>
Fri, 28 Jun 2019 16:39:49 +0000 (09:39 -0700)
commit9c699effcbdb5fd157b3d9a6647894bd9abbbded
treef217b04b23b7a89840c03488f9ae2df740461eaa
parentb28141ede1f4f176e3f35758f0ed6e645de699aa
net: hns3: re-schedule reset task while VF reset fail

The VF reset may fail for some probabilistic reasons,
such as wait for hardware reset timeout, wait for mailbox
response timeout, so this patch tries to re-schedule the
reset task when the number of reset failing is under
HCLGEVF_RESET_MAX_FAIL_CNT. This patch also add a function
hclgevf_reset_err_handle() to handle the reset failing.

Signed-off-by: Huazhong Tan <tanhuazhong@huawei.com>
Signed-off-by: Peng Li <lipeng321@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/hisilicon/hns3/hns3vf/hclgevf_main.c
drivers/net/ethernet/hisilicon/hns3/hns3vf/hclgevf_main.h