net/virtio: move PCI specific dev init to PCI ethdev init
authorMaxime Coquelin <maxime.coquelin@redhat.com>
Tue, 26 Jan 2021 10:16:03 +0000 (11:16 +0100)
committerFerruh Yigit <ferruh.yigit@intel.com>
Fri, 29 Jan 2021 17:16:09 +0000 (18:16 +0100)
commit512e27eeb7435780cfe6915e17dbf840e0f4df20
tree173db0adf196fe074c5e593cbc488313e92b7161
parent36a7a2e7a53fd269725429eec2d2354d8ca17f3e
net/virtio: move PCI specific dev init to PCI ethdev init

This patch moves the PCI specific initialization from
eth_virtio_dev_init() to eth_virtio_pci_init().

Signed-off-by: Maxime Coquelin <maxime.coquelin@redhat.com>
Reviewed-by: Chenbo Xia <chenbo.xia@intel.com>
Reviewed-by: David Marchand <david.marchand@redhat.com>
drivers/net/virtio/virtio_ethdev.c
drivers/net/virtio/virtio_pci_ethdev.c