]> git.droids-corp.org - dpdk.git/commit
net/hns3: fix secondary process reference count
authorHuisong Li <lihuisong@huawei.com>
Tue, 2 Nov 2021 01:38:26 +0000 (09:38 +0800)
committerFerruh Yigit <ferruh.yigit@intel.com>
Thu, 4 Nov 2021 14:11:32 +0000 (15:11 +0100)
commit323263717774df318d8a6e64ac8bfe546e03b8f6
tree96eeb9ac25ae2f256597041d89fecab61d08fede
parent3378e71244b2b2a1a14f94ece735352b5c34dd99
net/hns3: fix secondary process reference count

The "secondary_cnt" will be increased when a secondary process
initialized. But the value of this variable is not decreased when the
secondary process exits, which causes the primary process senses that
the secondary process still exists. As a result, the primary process
fails to send messages to the secondary process after the secondary
process exits.

Fixes: 23d4b61fee5d ("net/hns3: support multiple process")
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.c
drivers/net/hns3/hns3_ethdev_vf.c
drivers/net/hns3/hns3_mp.c