summaryrefslogtreecommitdiffstats
path: root/src/vnet
diff options
context:
space:
mode:
Diffstat (limited to 'src/vnet')
-rw-r--r--src/vnet/devices/virtio/pci.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/vnet/devices/virtio/pci.c b/src/vnet/devices/virtio/pci.c
index 0ff453eb204..a90dca47218 100644
--- a/src/vnet/devices/virtio/pci.c
+++ b/src/vnet/devices/virtio/pci.c
@@ -646,15 +646,15 @@ virtio_pci_read_caps (vlib_main_t * vm, virtio_if_t * vif)
pos = cap.cap_next;
}
- if (!pci_cfg)
- clib_error_return (error, "modern virtio pci device found");
-
if (common_cfg == 0 || notify_base == 0 || dev_cfg == 0 || isr == 0)
{
virtio_log_debug (vim, vif, "legacy virtio pci device found");
return error;
}
+ if (!pci_cfg)
+ clib_error_return (error, "modern virtio pci device found");
+
virtio_log_debug (vim, vif, "transitional virtio pci device found");
return error;
}