]> git.droids-corp.org - dpdk.git/commit
event/dlb2: poll HW CQ inflights before mapping queue
authorTimothy McDaniel <timothy.mcdaniel@intel.com>
Wed, 16 Feb 2022 19:38:27 +0000 (13:38 -0600)
committerJerin Jacob <jerinj@marvell.com>
Tue, 22 Feb 2022 05:56:58 +0000 (06:56 +0100)
commitf6ed136aaea6b9f237670891df9c0b8a4b97d6d3
tree5d4d9dbdecbfa404a25bee918a3173923fab67f3
parente697f35dbdd1f4868b452d17a0cb11783f61690d
event/dlb2: poll HW CQ inflights before mapping queue

When attempting to link a port and queue immediately after unlinking,
the CQ inflights may not all be processed. Poll the h/w register for
outstanding inflights instead of reading once, in case the inflights
are still being processed. Also return EBUSY if the inflight
processing is not completed in a suitable amount of time.

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_resource.c