kernel_samsung_a53x/drivers/net/ethernet/hisilicon/hns3/hns3vf
Jie Wang deb6d455f4 net: hns3: fix wrong use of semaphore up
[ Upstream commit 8445d9d3c03101859663d34fda747f6a50947556 ]

Currently, if hns3 PF or VF FLR reset failed after five times retry,
the reset done process will directly release the semaphore
which has already released in hclge_reset_prepare_general.
This will cause down operation fail.

So this patch fixes it by adding reset state judgement. The up operation is
only called after successful PF FLR reset.

Fixes: 8627bdedc435 ("net: hns3: refactor the precedure of PF FLR")
Fixes: f28368bb4542 ("net: hns3: refactor the procedure of VF FLR")
Signed-off-by: Jie Wang <wangjie125@huawei.com>
Signed-off-by: Jijie Shao <shaojijie@huawei.com>
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2024-11-23 23:20:44 +01:00
..
hclgevf_cmd.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
hclgevf_cmd.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
hclgevf_main.c net: hns3: fix wrong use of semaphore up 2024-11-23 23:20:44 +01:00
hclgevf_main.h net: hns3: fix VF reset fail issue 2024-11-18 11:43:19 +01:00
hclgevf_mbx.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
hclgevf_trace.h net: hns3: tracing: fix hclgevf trace event strings 2024-11-19 09:22:36 +01:00
Makefile Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00