diff options
author | Jie Wang <wangjie125@huawei.com> | 2024-08-13 22:10:20 +0800 |
---|---|---|
committer | Paolo Abeni <pabeni@redhat.com> | 2024-08-15 13:07:08 +0200 |
commit | 8445d9d3c03101859663d34fda747f6a50947556 (patch) | |
tree | c1c50507a6c412730068182e46672cb0da23dcb8 /tools/perf/scripts/python/flamegraph.py | |
parent | 7965a7f32a53d9ad807ce2c53bdda69ba104974f (diff) |
net: hns3: fix wrong use of semaphore up
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>
Diffstat (limited to 'tools/perf/scripts/python/flamegraph.py')
0 files changed, 0 insertions, 0 deletions