-
-static void
-virtio_set_vtpci_ops(struct virtio_hw *hw)
-{
-#ifdef RTE_VIRTIO_USER
- if (hw->bus_type == VIRTIO_BUS_USER)
- VTPCI_OPS(hw) = &virtio_user_ops;
- else
-#endif
- if (hw->bus_type == VIRTIO_BUS_PCI_MODERN)
- VTPCI_OPS(hw) = &modern_ops;
- else if (hw->bus_type == VIRTIO_BUS_PCI_LEGACY)
- VTPCI_OPS(hw) = &legacy_ops;
-
- return;
-}
-