event/dlb2: fix CQ depth override credit deadlock
authorTimothy McDaniel <timothy.mcdaniel@intel.com>
Sat, 2 Jul 2022 16:22:38 +0000 (11:22 -0500)
committerJerin Jacob <jerinj@marvell.com>
Mon, 4 Jul 2022 16:04:52 +0000 (18:04 +0200)
commit0fc71ad881f5483fc97d5f0bc27bfa01d5ae72c1
tree14b6b4a4d057ee0440ad78ecf7c20c1bc861cc5e
parentc73697024eac74463ab813ae05b1b83b572c6216
event/dlb2: fix CQ depth override credit deadlock

This commit fixes a bug, where we could encounter a credit
deadlock due to changing the CQ depth. To remedy this situation,
the commit reduces the maximum CQ depth from 1024 to 128,
and also allows configuring the maximum enqueue depth. Maximum
enqueue depth must be tuned to the CQ depth, if the CQ depth
is increased.

Fixes: 86fe66d45667 ("event/dlb2: allow CQ depths up to 1024")
Cc: stable@dpdk.org
Signed-off-by: Timothy McDaniel <timothy.mcdaniel@intel.com>
drivers/event/dlb2/dlb2.c
drivers/event/dlb2/dlb2_priv.h
drivers/event/dlb2/pf/dlb2_pf.c