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
vhost: remove unnecessary SMP barrier for desc flags
[dpdk.git]
/
lib
/
librte_vhost
/
rte_vhost_async.h
diff --git
a/lib/librte_vhost/rte_vhost_async.h
b/lib/librte_vhost/rte_vhost_async.h
index
c8ad8db
..
c73bd7c
100644
(file)
--- a/
lib/librte_vhost/rte_vhost_async.h
+++ b/
lib/librte_vhost/rte_vhost_async.h
@@
-59,9
+59,9
@@
struct rte_vhost_async_channel_ops {
* @param count
* number of elements in the "descs" array
* @return
* @param count
* number of elements in the "descs" array
* @return
- *
-1 on failure, number of descs processed on success
+ *
number of descs processed
*/
*/
-
in
t (*transfer_data)(int vid, uint16_t queue_id,
+
uint32_
t (*transfer_data)(int vid, uint16_t queue_id,
struct rte_vhost_async_desc *descs,
struct rte_vhost_async_status *opaque_data,
uint16_t count);
struct rte_vhost_async_desc *descs,
struct rte_vhost_async_status *opaque_data,
uint16_t count);
@@
-70,19
+70,32
@@
struct rte_vhost_async_channel_ops {
* @param vid
* id of vhost device to check copy completion
* @param queue_id
* @param vid
* id of vhost device to check copy completion
* @param queue_id
- * queue id to check copy
p
completion
+ * queue id to check copy completion
* @param opaque_data
* buffer to receive the opaque data pair from DMA engine
* @param max_packets
* max number of packets could be completed
* @return
* @param opaque_data
* buffer to receive the opaque data pair from DMA engine
* @param max_packets
* max number of packets could be completed
* @return
- *
-1 on failure, number of iov segments completed on success
+ *
number of async descs completed
*/
*/
-
in
t (*check_completed_copies)(int vid, uint16_t queue_id,
+
uint32_
t (*check_completed_copies)(int vid, uint16_t queue_id,
struct rte_vhost_async_status *opaque_data,
uint16_t max_packets);
};
struct rte_vhost_async_status *opaque_data,
uint16_t max_packets);
};
+/**
+ * inflight async packet information
+ */
+struct async_inflight_info {
+ union {
+ uint32_t info;
+ struct {
+ uint16_t descs; /* num of descs inflight */
+ uint16_t segs; /* iov segs inflight */
+ };
+ };
+};
+
/**
* dma channel feature bit definition
*/
/**
* dma channel feature bit definition
*/