]> git.droids-corp.org - dpdk.git/blobdiff - lib/librte_eal/common/eal_common_pci.c
net/mlx5: handle Rx CQE compression
[dpdk.git] / lib / librte_eal / common / eal_common_pci.c
index 0ec3b610c35008ce8ca42e243bc481b4d548f6cf..ba5283da764a3dc142fb6c0d2f48affb0d97a51d 100644 (file)
@@ -175,6 +175,9 @@ rte_eal_pci_probe_one_driver(struct rte_pci_driver *dr, struct rte_pci_device *d
                if (id_table->subsystem_device_id != dev->id.subsystem_device_id &&
                                id_table->subsystem_device_id != PCI_ANY_ID)
                        continue;
+               if (id_table->class_id != dev->id.class_id &&
+                               id_table->class_id != RTE_CLASS_ANY_ID)
+                       continue;
 
                struct rte_pci_addr *loc = &dev->addr;