]> git.droids-corp.org - dpdk.git/blobdiff - drivers/net/virtio/virtio_pci.h
net/virtio: add packed virtqueue helpers
[dpdk.git] / drivers / net / virtio / virtio_pci.h
index 4c975a53165d4547362fc46030e5dac1ca05fa73..b22b62dad67207e875d92696677fdbac9897200b 100644 (file)
@@ -315,6 +315,12 @@ vtpci_with_feature(struct virtio_hw *hw, uint64_t bit)
        return (hw->guest_features & (1ULL << bit)) != 0;
 }
 
+static inline int
+vtpci_packed_queue(struct virtio_hw *hw)
+{
+       return vtpci_with_feature(hw, VIRTIO_F_RING_PACKED);
+}
+
 /*
  * Function declaration from virtio_pci.c
  */