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 kernel vhost
[dpdk.git]
/
lib
/
librte_vhost
/
fd_man.h
diff --git
a/lib/librte_vhost/fd_man.h
b/lib/librte_vhost/fd_man.h
index
bd66ed1
..
d319cac
100644
(file)
--- a/
lib/librte_vhost/fd_man.h
+++ b/
lib/librte_vhost/fd_man.h
@@
-35,6
+35,7
@@
#define _FD_MAN_H_
#include <stdint.h>
#include <pthread.h>
#define _FD_MAN_H_
#include <stdint.h>
#include <pthread.h>
+#include <poll.h>
#define MAX_FDS 1024
#define MAX_FDS 1024
@@
-49,6
+50,7
@@
struct fdentry {
};
struct fdset {
};
struct fdset {
+ struct pollfd rwfds[MAX_FDS];
struct fdentry fd[MAX_FDS];
pthread_mutex_t fd_mutex;
int num; /* current fd number of this fdset */
struct fdentry fd[MAX_FDS];
pthread_mutex_t fd_mutex;
int num; /* current fd number of this fdset */