git.droids-corp.org
/
dpdk.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
net/virtio: add packed virtqueue helpers
[dpdk.git]
/
drivers
/
net
/
virtio
/
virtio_pci.h
diff --git
a/drivers/net/virtio/virtio_pci.h
b/drivers/net/virtio/virtio_pci.h
index
4c975a5
..
b22b62d
100644
(file)
--- a/
drivers/net/virtio/virtio_pci.h
+++ b/
drivers/net/virtio/virtio_pci.h
@@
-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
*/