common/qat: fix failure to create PMD
authorFiona Trahe <fiona.trahe@intel.com>
Thu, 11 Oct 2018 17:14:05 +0000 (18:14 +0100)
committerAkhil Goyal <akhil.goyal@nxp.com>
Wed, 17 Oct 2018 10:23:40 +0000 (12:23 +0200)
commit8451f04d0239002c29901e88c278cd83e06f46b1
tree7209616c6c715c582175d45a6ea138e8f76d4f7f
parent3f1d382ca3b73623dfa5c3d44bd4251b67d92a91
common/qat: fix failure to create PMD

If QAT crypto pmd failed to be created due to reaching MAX
cryptodevs it prevented QAT comp PMD being created. And vice versa.
Change to warning in these cases and allow the other PMD to be created.

Fixes: c0c90bc4cade ("compress/qat: add create and destroy functions")
Cc: stable@dpdk.org
Signed-off-by: Fiona Trahe <fiona.trahe@intel.com>
Acked-by: Tomasz Cel <tomaszx.cel@intel.com>
drivers/common/qat/qat_device.c