crypto/qat: separate sym-specific from generic qp setup
authorFiona Trahe <fiona.trahe@intel.com>
Wed, 13 Jun 2018 12:13:55 +0000 (14:13 +0200)
committerPablo de Lara <pablo.de.lara.guarch@intel.com>
Wed, 27 Jun 2018 23:25:33 +0000 (01:25 +0200)
commitd145a21bde828cda5b4852f7e295454ca1d9f478
tree1250792719a3b45b2a94ac5fe5eebf85b15b7fc6
parent9f27a860dc16a986c12b0a9df886931866e0d428
crypto/qat: separate sym-specific from generic qp setup

Extracted all sym-specific code from qp setup fns, leaving
generic qat_qp_setup fn and helper fns. Created a new
meta-data struct qat_qp_config to hold all the data needed
to create a qp, filled this out in the sym-specific code
and passed to the generic qp_setup fn.
No need now for rx and tx queue_create fns, one generic
queue_create fn replaces these.
Included the service name (e.g. "sym") in the qp memzone
and cookie pool names.

Signed-off-by: Fiona Trahe <fiona.trahe@intel.com>
drivers/crypto/qat/qat_adf/adf_transport_access_macros.h
drivers/crypto/qat/qat_qp.c
drivers/crypto/qat/qat_qp.h