crypto/qat: use common stats structures
authorFiona Trahe <fiona.trahe@intel.com>
Wed, 13 Jun 2018 12:14:05 +0000 (14:14 +0200)
committerPablo de Lara <pablo.de.lara.guarch@intel.com>
Wed, 27 Jun 2018 23:25:33 +0000 (01:25 +0200)
commite1c6aa1f776f845db2c27172b289a25864ec6243
tree2dabe8405ad6f472921b8290c44ee410a5da151f
parent67ddef185cb33c3b16192e84c6151d1b931aa898
crypto/qat: use common stats structures

Split qat_sym_stats_get/reset into 2 functions, a wrapper function calling
a new qat_stats_get/reset function which can be called per service.
Remove cryptodev stats struct from qat_qp, replace with qat_common_stats.
Add links for qat_qp into qat_pci_device using an array per service to
avoid need for a lock and so qp_id for the service can be used as index.

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