crypto/qat: enable Tx tail writes coalescing
authorAnatoly Burakov <anatoly.burakov@intel.com>
Tue, 12 Sep 2017 09:31:18 +0000 (10:31 +0100)
committerPablo de Lara <pablo.de.lara.guarch@intel.com>
Thu, 12 Oct 2017 14:12:46 +0000 (15:12 +0100)
commit82982e17664581229b95883769215941b38ad922
tree3c1b311ae8aaf886e89950e9f8bc963da952cfab
parent571365dd4c5e02406aa5f2bfec389d4a49be936d
crypto/qat: enable Tx tail writes coalescing

Don't write CSR tail until we processed enough TX descriptors.

To avoid crypto operations sitting in the TX ring indefinitely,
the "force write" threshold is used:
 - on TX, no tail write coalescing will occur if number of inflights
   is below force write threshold
 - on RX, check if we have a number of crypto ops enqueued that is
   below force write threshold that are not yet submitted to
   processing.

Signed-off-by: Anatoly Burakov <anatoly.burakov@intel.com>
Acked-by: Fiona Trahe <fiona.trahe@intel.com>
doc/guides/rel_notes/release_17_11.rst
drivers/crypto/qat/qat_crypto.c
drivers/crypto/qat/qat_crypto.h