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
vhost: remove unnecessary SMP barrier for avail idx
[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
76a42fb
..
3ab5cfd
100644
(file)
--- a/
lib/librte_vhost/fd_man.h
+++ b/
lib/librte_vhost/fd_man.h
@@
-24,6
+24,7
@@
struct fdset {
struct pollfd rwfds[MAX_FDS];
struct fdentry fd[MAX_FDS];
pthread_mutex_t fd_mutex;
struct pollfd rwfds[MAX_FDS];
struct fdentry fd[MAX_FDS];
pthread_mutex_t fd_mutex;
+ pthread_mutex_t fd_pooling_mutex;
int num; /* current fd number of this fdset */
union pipefds {
int num; /* current fd number of this fdset */
union pipefds {
@@
-44,6
+45,7
@@
int fdset_add(struct fdset *pfdset, int fd,
fd_cb rcb, fd_cb wcb, void *dat);
void *fdset_del(struct fdset *pfdset, int fd);
fd_cb rcb, fd_cb wcb, void *dat);
void *fdset_del(struct fdset *pfdset, int fd);
+int fdset_try_del(struct fdset *pfdset, int fd);
void *fdset_event_dispatch(void *arg);
void *fdset_event_dispatch(void *arg);