]> git.droids-corp.org - dpdk.git/blobdiff - drivers/net/virtio/virtio_pci.c
virtio: fix query of legacy features
[dpdk.git] / drivers / net / virtio / virtio_pci.c
index 98fc370af0e5af34d77d8fcdd5192b08b3cf7c97..c007959f20f5e5cc94fa650ee25eabe11a3ddf95 100644 (file)
@@ -74,7 +74,7 @@ legacy_write_dev_config(struct virtio_hw *hw, size_t offset,
 static uint64_t
 legacy_get_features(struct virtio_hw *hw)
 {
-       uint64_t dst;
+       uint32_t dst;
 
        rte_eal_pci_ioport_read(&hw->io, &dst, 4, VIRTIO_PCI_HOST_FEATURES);
        return dst;