]> git.droids-corp.org - dpdk.git/commit
net/hns3: fix double decrement of secondary count
authorHuisong Li <lihuisong@huawei.com>
Fri, 28 Jan 2022 02:07:06 +0000 (10:07 +0800)
committerFerruh Yigit <ferruh.yigit@intel.com>
Mon, 31 Jan 2022 13:22:21 +0000 (14:22 +0100)
commitc687877595ed7e287f3634d23736ff6400ad25af
treeea3c8b3f388fe73c04fcd83f1b6c1274707c20a4
parent6ee07e3cb589145d0f0826f918fd44eb3e160a08
net/hns3: fix double decrement of secondary count

The "secondary_cnt" indicates the number of secondary processes on an
Ethernet device. But the variable is double subtracted when detach the
device in secondary processes.

Fixes: ff6dc76e40b8 ("net/hns3: refactor multi-process initialization")
Cc: stable@dpdk.org
Signed-off-by: Huisong Li <lihuisong@huawei.com>
Signed-off-by: Min Hu (Connor) <humin29@huawei.com>
drivers/net/hns3/hns3_ethdev_vf.c