crypto/qat: make the session struct variable in size
authorJohn Griffin <john.griffin@intel.com>
Thu, 4 Aug 2016 15:46:23 +0000 (16:46 +0100)
committerPablo de Lara <pablo.de.lara.guarch@intel.com>
Tue, 4 Oct 2016 18:41:09 +0000 (20:41 +0200)
commit10b49880e3c56d7463bd817059386b6dd8513074
tree888138cf2f155e4a9f3c5bd74e37e9b0e5cc9edd
parent50a3345fa9ea6482f197567497b0b8d201173a59
crypto/qat: make the session struct variable in size

This patch changes the qat firmware session data structure from a fixed
size to a variable size which is dependent on the size of the chosen
algorithm.
This reduces the amount of bytes which are transferred across
PCIe and thus helps to increase qat performance when the
accelerator is bound by PCIe.

Signed-off-by: John Griffin <john.griffin@intel.com>
Acked-by: Fiona Trahe <fiona.trahe@intel.com>
drivers/crypto/qat/qat_adf/qat_algs.h
drivers/crypto/qat/qat_adf/qat_algs_build_desc.c
drivers/crypto/qat/qat_crypto.c