git.droids-corp.org
/
dpdk.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7e2e162
)
net/hns3: fix rollback in PF init
author
Min Hu (Connor)
<humin29@huawei.com>
Sat, 10 Apr 2021 01:11:15 +0000
(09:11 +0800)
committer
Ferruh Yigit
<ferruh.yigit@intel.com>
Tue, 13 Apr 2021 09:13:41 +0000
(11:13 +0200)
This patch adds rollback processing when updating imissed
stats failed in PF init.
Fixes:
3e9f3042d7c8
("net/hns3: add imissed packet stats")
Signed-off-by: Min Hu (Connor) <humin29@huawei.com>
drivers/net/hns3/hns3_ethdev.c
patch
|
blob
|
history
diff --git
a/drivers/net/hns3/hns3_ethdev.c
b/drivers/net/hns3/hns3_ethdev.c
index
0240d66
..
53a0b54
100644
(file)
--- a/
drivers/net/hns3/hns3_ethdev.c
+++ b/
drivers/net/hns3/hns3_ethdev.c
@@
-5009,7
+5009,7
@@
hns3_init_pf(struct rte_eth_dev *eth_dev)
ret = hns3_update_imissed_stats(hw, true);
if (ret) {
hns3_err(hw, "clear imissed stats failed, ret = %d", ret);
-
return re
t;
+
goto err_cmd_ini
t;
}
hns3_config_all_msix_error(hw, true);