]> git.droids-corp.org - dpdk.git/commit
event/dlb2: rework queue drain handling
authorTimothy McDaniel <timothy.mcdaniel@intel.com>
Mon, 6 Jun 2022 15:55:17 +0000 (10:55 -0500)
committerJerin Jacob <jerinj@marvell.com>
Thu, 9 Jun 2022 17:27:15 +0000 (19:27 +0200)
commit82a710bccb209f7b5b0309f687741102f093234f
tree06633c6ab68423efdde4f3372af6f6cd4619fb06
parent87ecdd9e7fbfe3d734a9f80c4f49b526835a57b4
event/dlb2: rework queue drain handling

Previously, anything that prevented the CQs from being drained
would hang the PMD for an unacceptably long time. This commit updates
the drain logic to be resource and time based, thus eliminating
the potential for a long hang when draining the queues in preparation
for a reset.

Fixes: 1857f1922ce2 ("event/dlb2: use new implementation of resource file")
Cc: stable@dpdk.org
Signed-off-by: Timothy McDaniel <timothy.mcdaniel@intel.com>
drivers/event/dlb2/pf/base/dlb2_hw_types.h
drivers/event/dlb2/pf/base/dlb2_resource.c