net/hns3: fix rollback in PF init
authorMin Hu (Connor) <humin29@huawei.com>
Sat, 10 Apr 2021 01:11:15 +0000 (09:11 +0800)
committerFerruh Yigit <ferruh.yigit@intel.com>
Tue, 13 Apr 2021 09:13:41 +0000 (11:13 +0200)
commitdfca14a3a514959505ad1e7f7a1a7999ed7793d9
treec500312b93c71baa5956203784d1ebcf5d3fdf8c
parent7e2e162ed04401eeb493c5655da9036842466e46
net/hns3: fix rollback in PF init

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