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-user: support server mode
[dpdk.git]
/
drivers
/
net
/
virtio
/
virtio_user
/
virtio_user_dev.h
diff --git
a/drivers/net/virtio/virtio_user/virtio_user_dev.h
b/drivers/net/virtio/virtio_user/virtio_user_dev.h
index
5f87557
..
ade727e
100644
(file)
--- a/
drivers/net/virtio/virtio_user/virtio_user_dev.h
+++ b/
drivers/net/virtio/virtio_user/virtio_user_dev.h
@@
-6,6
+6,7
@@
#define _VIRTIO_USER_DEV_H
#include <limits.h>
#define _VIRTIO_USER_DEV_H
#include <limits.h>
+#include <stdbool.h>
#include "../virtio_pci.h"
#include "../virtio_ring.h"
#include "vhost.h"
#include "../virtio_pci.h"
#include "../virtio_ring.h"
#include "vhost.h"
@@
-13,6
+14,8
@@
struct virtio_user_dev {
/* for vhost_user backend */
int vhostfd;
struct virtio_user_dev {
/* for vhost_user backend */
int vhostfd;
+ int listenfd; /* listening fd */
+ bool is_server; /* server or client mode */
/* for vhost_kernel backend */
char *ifname;
/* for vhost_kernel backend */
char *ifname;