[dpdk-dev,v3] qat: fix for VFs not getting recognized

Message ID 1466499821-205232-1-git-send-email-deepak.k.jain@intel.com (mailing list archive)
State Accepted, archived
Delegated to: Thomas Monjalon
Headers

Commit Message

Deepak Kumar JAIN June 21, 2016, 9:03 a.m. UTC
  From: "Jain, Deepak K" <deepak.k.jain@intel.com>

Updated the code to use RTE_PCI_DEVICE.

Fixes: 701c8d80c820 ("pci: support class id probing")

Signed-off-by: Jain, Deepak K <deepak.k.jain@intel.com>
---
v3: kept PCI id in the driver file

v2: updated code to use RTE_PCI_DEVICE

 drivers/crypto/qat/rte_qat_cryptodev.c | 5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)
  

Comments

Thomas Monjalon June 21, 2016, 1:37 p.m. UTC | #1
2016-06-21 10:03, Deepak Kumar Jain:
> From: "Jain, Deepak K" <deepak.k.jain@intel.com>
> 
> Updated the code to use RTE_PCI_DEVICE.
> 
> Fixes: 701c8d80c820 ("pci: support class id probing")
> 
> Signed-off-by: Jain, Deepak K <deepak.k.jain@intel.com>

Applied, thanks
  

Patch

diff --git a/drivers/crypto/qat/rte_qat_cryptodev.c b/drivers/crypto/qat/rte_qat_cryptodev.c
index a7912f5..f46ec85 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},
 };