crypto/qat: add multi-process handling of driver ID
authorArek Kusztal <arkadiuszx.kusztal@intel.com>
Tue, 7 Jul 2020 15:02:38 +0000 (17:02 +0200)
committerThomas Monjalon <thomas@monjalon.net>
Wed, 8 Jul 2020 16:16:27 +0000 (18:16 +0200)
commit21792c4432056711bfac7f08500eb50100c9122c
tree0b470597aaa6cd96b5e73017c1bafd5c49bc6b1e
parent9904ff684981e09019103d48af6f39d5a00ac800
crypto/qat: add multi-process handling of driver ID

As cryptodev driver_id is allocated per-process,
a corner case exists where binaries for primary and
secondary processes could have different driver_ids
if built differently. Add checking in qat PMD to catch and
handle the case where driver_ids are inconsistent.

Signed-off-by: Arek Kusztal <arkadiuszx.kusztal@intel.com>
Acked-by: Fiona Trahe <fiona.trahe@intel.com>
drivers/common/qat/qat_device.h
drivers/crypto/qat/qat_asym.c
drivers/crypto/qat/qat_asym_pmd.c
drivers/crypto/qat/qat_asym_pmd.h
drivers/crypto/qat/qat_sym.c
drivers/crypto/qat/qat_sym.h
drivers/crypto/qat/qat_sym_pmd.c
drivers/crypto/qat/qat_sym_pmd.h