]> git.baikalelectronics.ru Git - kernel.git/commit
net: hns3: handle pending reset while reset fail
authorHuazhong Tan <tanhuazhong@huawei.com>
Sat, 6 Apr 2019 07:43:32 +0000 (15:43 +0800)
committerDavid S. Miller <davem@davemloft.net>
Mon, 8 Apr 2019 22:30:49 +0000 (15:30 -0700)
commitc10de02b152795b697e74dc8f48b7017f095b367
treec3a9fc2a0e3af29ac68a6081c9f9e29412a8798d
parent61279033f9cfb8ce0f6650d4fc055fd19c069c53
net: hns3: handle pending reset while reset fail

The ongoing lower-level reset will fail when there is a higher-level
reset occurs, so the error handler should deal with this situation.

Fixes: 77bc6069ebfe ("net: hns3: add error handler for hclgevf_reset()")
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