git://git.onelab.eu
/
sliver-openvswitch.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Catalli's threaded switch
[sliver-openvswitch.git]
/
lib
/
netdev.h
diff --git
a/lib/netdev.h
b/lib/netdev.h
index
cd5c8c3
..
a9081eb
100644
(file)
--- a/
lib/netdev.h
+++ b/
lib/netdev.h
@@
-21,6
+21,10
@@
#include <stddef.h>
#include <stdint.h>
#include <stddef.h>
#include <stdint.h>
+#ifdef THREADED
+#include "dispatch.h"
+#endif
+
#ifdef __cplusplus
extern "C" {
#endif
#ifdef __cplusplus
extern "C" {
#endif
@@
-117,6
+121,10
@@
int netdev_get_ifindex(const struct netdev *);
/* Packet send and receive. */
int netdev_recv(struct netdev *, struct ofpbuf *);
void netdev_recv_wait(struct netdev *);
/* Packet send and receive. */
int netdev_recv(struct netdev *, struct ofpbuf *);
void netdev_recv_wait(struct netdev *);
+#ifdef THREADED
+int netdev_dispatch(struct netdev *, int, pkt_handler, u_char *);
+int netdev_get_fd(struct netdev *);
+#endif
int netdev_drain(struct netdev *);
int netdev_send(struct netdev *, const struct ofpbuf *);
int netdev_drain(struct netdev *);
int netdev_send(struct netdev *, const struct ofpbuf *);