memif: fix the spinlock and unlock issue. 08/32608/4
authorfangtong <fangtong2007@163.com>
Sat, 5 Jun 2021 13:45:36 +0000 (21:45 +0800)
committerDamjan Marion <dmarion@me.com>
Thu, 10 Jun 2021 15:13:39 +0000 (15:13 +0000)
commitdc9215903809f74bd27cef332a18858711f928a0
tree2bb7f01ca7613c5be825cae83c586f599e49ffbe
parent07d04f7b03077d1b6e93d9a430fedd31bd858023
memif: fix the spinlock and unlock issue.

when the configuration of tx queues is larger than the worker-threads,
the clib_spinlock_lock_if_init will not be executed, and then this function
will executed the clib_spinlock_unlock_if_init, so this may caused the issue.

Type: fix

Signed-off-by: fangtong <fangtong2007@163.com>
Change-Id: I3ce244cd5e1f410e9f14bd060b929238f069b9fa
src/plugins/memif/device.c