]> git.droids-corp.org - dpdk.git/blobdiff - drivers/net/virtio/virtio_pci_ethdev.c
net/sfc: extend logging in MAE backend of flow API
[dpdk.git] / drivers / net / virtio / virtio_pci_ethdev.c
index 3bb5c6268b1f9c3ad0bdb2a29403abb930f66c80..4083853c4887bf1711c1f421868eb37f7f1dc5fe 100644 (file)
@@ -78,12 +78,14 @@ eth_virtio_pci_init(struct rte_eth_dev *eth_dev)
 
        if (rte_eal_process_type() == RTE_PROC_PRIMARY) {
                hw->port_id = eth_dev->data->port_id;
+               VTPCI_DEV(hw) = pci_dev;
                ret = vtpci_init(RTE_ETH_DEV_TO_PCI(eth_dev), dev);
                if (ret) {
                        PMD_INIT_LOG(ERR, "Failed to init PCI device\n");
                        return -1;
                }
        } else {
+               VTPCI_DEV(hw) = pci_dev;
                if (dev->modern)
                        VIRTIO_OPS(hw) = &modern_ops;
                else