]> git.droids-corp.org - dpdk.git/blobdiff - drivers/net/virtio/virtio_pci_ethdev.c
net/virtio: fix PCI ops assignment
[dpdk.git] / drivers / net / virtio / virtio_pci_ethdev.c
index 1b818c45655cb01d7cd04742444a848b1a8b38f5..3bb5c6268b1f9c3ad0bdb2a29403abb930f66c80 100644 (file)
@@ -77,6 +77,7 @@ eth_virtio_pci_init(struct rte_eth_dev *eth_dev)
        int ret;
 
        if (rte_eal_process_type() == RTE_PROC_PRIMARY) {
+               hw->port_id = eth_dev->data->port_id;
                ret = vtpci_init(RTE_ETH_DEV_TO_PCI(eth_dev), dev);
                if (ret) {
                        PMD_INIT_LOG(ERR, "Failed to init PCI device\n");