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
ipc: end multiprocess thread during cleanup
[dpdk.git]
/
lib
/
vhost
/
rte_vhost.h
diff --git
a/lib/vhost/rte_vhost.h
b/lib/vhost/rte_vhost.h
index
af0afbc
..
2acb31d
100644
(file)
--- a/
lib/vhost/rte_vhost.h
+++ b/
lib/vhost/rte_vhost.h
@@
-21,10
+21,12
@@
extern "C" {
#endif
extern "C" {
#endif
+#ifndef __cplusplus
/* These are not C++-aware. */
#include <linux/vhost.h>
#include <linux/virtio_ring.h>
#include <linux/virtio_net.h>
/* These are not C++-aware. */
#include <linux/vhost.h>
#include <linux/virtio_ring.h>
#include <linux/virtio_net.h>
+#endif
#define RTE_VHOST_USER_CLIENT (1ULL << 0)
#define RTE_VHOST_USER_NO_RECONNECT (1ULL << 1)
#define RTE_VHOST_USER_CLIENT (1ULL << 0)
#define RTE_VHOST_USER_NO_RECONNECT (1ULL << 1)
@@
-796,7
+798,7
@@
rte_vhost_get_vhost_ring_inflight(int vid, uint16_t vring_idx,
/**
* Set split inflight descriptor.
*
/**
* Set split inflight descriptor.
*
- * This function save descriptors that has been co
m
sumed in available
+ * This function save descriptors that has been co
n
sumed in available
* ring
*
* @param vid
* ring
*
* @param vid
@@
-815,7
+817,7
@@
rte_vhost_set_inflight_desc_split(int vid, uint16_t vring_idx,
/**
* Set packed inflight descriptor and get corresponding inflight entry
*
/**
* Set packed inflight descriptor and get corresponding inflight entry
*
- * This function save descriptors that has been co
m
sumed
+ * This function save descriptors that has been co
n
sumed
*
* @param vid
* vhost device ID
*
* @param vid
* vhost device ID