From: Deepak Kumar Jain Date: Tue, 21 Jun 2016 09:03:41 +0000 (+0100) Subject: qat: fix probing X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=58a4037046ab182009f738a10fc4ae27542bd32c;p=dpdk.git qat: fix probing The class id is not filled and makes probing to fail. Updated the code to use RTE_PCI_DEVICE which fills the class id with a wildcard value. Fixes: 701c8d80c820 ("pci: support class id probing") Signed-off-by: Deepak Kumar Jain --- diff --git a/drivers/crypto/qat/rte_qat_cryptodev.c b/drivers/crypto/qat/rte_qat_cryptodev.c index a7912f5a23..f46ec85750 100644 --- a/drivers/crypto/qat/rte_qat_cryptodev.c +++ b/drivers/crypto/qat/rte_qat_cryptodev.c @@ -69,10 +69,7 @@ static struct rte_cryptodev_ops crypto_qat_ops = { static struct rte_pci_id pci_id_qat_map[] = { { - .vendor_id = 0x8086, - .device_id = 0x0443, - .subsystem_vendor_id = PCI_ANY_ID, - .subsystem_device_id = PCI_ANY_ID + RTE_PCI_DEVICE(0x8086, 0x0443), }, {.device_id = 0}, };