common/qat: support dual threads for enqueue/dequeue
authorFiona Trahe <fiona.trahe@intel.com>
Wed, 15 Jan 2020 14:32:10 +0000 (15:32 +0100)
committerAkhil Goyal <akhil.goyal@nxp.com>
Wed, 15 Jan 2020 14:20:58 +0000 (15:20 +0100)
commit026f21c0b95120a4e249af4480a0ddad75838ff9
tree79c2760aada73b36839800f02ad2ad641b9eab2b
parent8f185e7c3e651eb845bd82f7ab0bbb862cc0a2e2
common/qat: support dual threads for enqueue/dequeue

Remove the limitation whereby enqueue and dequeue must be
done in same thread.
The inflight calculation is reworked to be thread-safe for 2
threads - note this is not general multi-thread support, i.e
all enqueues to a qp must still be done in one thread and
all dequeues must be done in one thread, but enqueues and
dequeues may be in separate threads.
Documentation updated.

Signed-off-by: Fiona Trahe <fiona.trahe@intel.com>
Signed-off-by: Arek Kusztal <arkadiuszx.kusztal@intel.com>
doc/guides/compressdevs/qat_comp.rst
doc/guides/cryptodevs/qat.rst
drivers/common/qat/qat_qp.c
drivers/common/qat/qat_qp.h