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
gpudev: fix page alignment in communication list
[dpdk.git]
/
lib
/
vhost
/
rte_vhost.h
diff --git
a/lib/vhost/rte_vhost.h
b/lib/vhost/rte_vhost.h
index
b454c05
..
c733f85
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)
@@
-113,6
+115,8
@@
extern "C" {
#define VHOST_USER_F_PROTOCOL_FEATURES 30
#endif
#define VHOST_USER_F_PROTOCOL_FEATURES 30
#endif
+#define RTE_MAX_VHOST_DEVICE 1024
+
struct rte_vdpa_device;
/**
struct rte_vdpa_device;
/**