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: check protocol feature in user backend
[dpdk.git]
/
drivers
/
net
/
virtio
/
virtio_user
/
vhost.h
diff --git
a/drivers/net/virtio/virtio_user/vhost.h
b/drivers/net/virtio/virtio_user/vhost.h
index
9ace1a9
..
2e71995
100644
(file)
--- a/
drivers/net/virtio/virtio_user/vhost.h
+++ b/
drivers/net/virtio/virtio_user/vhost.h
@@
-50,7
+50,15
@@
struct vhost_vring_addr {
/** Protocol features. */
#ifndef VHOST_USER_PROTOCOL_F_MQ
/** Protocol features. */
#ifndef VHOST_USER_PROTOCOL_F_MQ
-#define VHOST_USER_PROTOCOL_F_MQ 0
+#define VHOST_USER_PROTOCOL_F_MQ 0
+#endif
+
+#ifndef VHOST_USER_PROTOCOL_F_REPLY_ACK
+#define VHOST_USER_PROTOCOL_F_REPLY_ACK 3
+#endif
+
+#ifndef VHOST_USER_PROTOCOL_F_STATUS
+#define VHOST_USER_PROTOCOL_F_STATUS 16
#endif
enum vhost_user_request {
#endif
enum vhost_user_request {
@@
-73,6
+81,8
@@
enum vhost_user_request {
VHOST_USER_SET_PROTOCOL_FEATURES = 16,
VHOST_USER_GET_QUEUE_NUM = 17,
VHOST_USER_SET_VRING_ENABLE = 18,
VHOST_USER_SET_PROTOCOL_FEATURES = 16,
VHOST_USER_GET_QUEUE_NUM = 17,
VHOST_USER_SET_VRING_ENABLE = 18,
+ VHOST_USER_SET_STATUS = 39,
+ VHOST_USER_GET_STATUS = 40,
VHOST_USER_MAX
};
VHOST_USER_MAX
};
@@
-95,6
+105,10
@@
struct virtio_user_backend_ops {
int (*enable_qp)(struct virtio_user_dev *dev,
uint16_t pair_idx,
int enable);
int (*enable_qp)(struct virtio_user_dev *dev,
uint16_t pair_idx,
int enable);
+ int (*dma_map)(struct virtio_user_dev *dev, void *addr,
+ uint64_t iova, size_t len);
+ int (*dma_unmap)(struct virtio_user_dev *dev, void *addr,
+ uint64_t iova, size_t len);
};
extern struct virtio_user_backend_ops virtio_ops_user;
};
extern struct virtio_user_backend_ops virtio_ops_user;