net/virtio: store PCI type in virtio device metadata
[dpdk.git] / drivers / net / virtio / virtio_pci.h
index a0f7d1f..906de06 100644 (file)
@@ -292,6 +292,7 @@ struct virtio_hw {
 
 struct virtio_pci_dev {
        struct virtio_hw hw;
+       bool modern;
 };
 
 #define virtio_pci_get_dev(hwp) container_of(hwp, struct virtio_pci_dev, hw)
@@ -371,7 +372,7 @@ vtpci_packed_queue(struct virtio_hw *hw)
 /*
  * Function declaration from virtio_pci.c
  */
-int vtpci_init(struct rte_pci_device *dev, struct virtio_hw *hw);
+int vtpci_init(struct rte_pci_device *pci_dev, struct virtio_pci_dev *dev);
 void vtpci_reset(struct virtio_hw *);
 
 void vtpci_reinit_complete(struct virtio_hw *);