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/mlx5: share Rx queue indirection table code
[dpdk.git]
/
drivers
/
net
/
virtio
/
virtio_ring.h
diff --git
a/drivers/net/virtio/virtio_ring.h
b/drivers/net/virtio/virtio_ring.h
index
6abec4d
..
0f6574f
100644
(file)
--- a/
drivers/net/virtio/virtio_ring.h
+++ b/
drivers/net/virtio/virtio_ring.h
@@
-15,10
+15,15
@@
#define VRING_DESC_F_WRITE 2
/* This means the buffer contains a list of buffer descriptors. */
#define VRING_DESC_F_INDIRECT 4
#define VRING_DESC_F_WRITE 2
/* This means the buffer contains a list of buffer descriptors. */
#define VRING_DESC_F_INDIRECT 4
+
/* This flag means the descriptor was made available by the driver */
/* This flag means the descriptor was made available by the driver */
-#define VRING_
DESC_F_AVAIL(b) ((uint16_t)(b)
<< 7)
+#define VRING_
PACKED_DESC_F_AVAIL (1
<< 7)
/* This flag means the descriptor was used by the device */
/* This flag means the descriptor was used by the device */
-#define VRING_DESC_F_USED(b) ((uint16_t)(b) << 15)
+#define VRING_PACKED_DESC_F_USED (1 << 15)
+
+/* Frequently used combinations */
+#define VRING_PACKED_DESC_F_AVAIL_USED (VRING_PACKED_DESC_F_AVAIL | \
+ VRING_PACKED_DESC_F_USED)
/* The Host uses this in used->flags to advise the Guest: don't kick me
* when you add a buffer. It's unreliable, so it's simply an
/* The Host uses this in used->flags to advise the Guest: don't kick me
* when you add a buffer. It's unreliable, so it's simply an
@@
-54,7
+59,7
@@
struct vring_used_elem {
struct vring_used {
uint16_t flags;
struct vring_used {
uint16_t flags;
-
volatile
uint16_t idx;
+ uint16_t idx;
struct vring_used_elem ring[0];
};
struct vring_used_elem ring[0];
};