projects
/
openvswitch
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
ofp-util: Add version bitmap support to hello messages.
[openvswitch]
/
lib
/
dpif.h
diff --git
a/lib/dpif.h
b/lib/dpif.h
index d6d169480a6b946cf2b19f00e0cd647caa93982b..7d0881fab3127640fc9fcc0b275c0daa636a7381 100644
(file)
--- a/
lib/dpif.h
+++ b/
lib/dpif.h
@@
-57,6
+57,7
@@
void dpif_wait(struct dpif *);
const char *dpif_name(const struct dpif *);
const char *dpif_base_name(const struct dpif *);
const char *dpif_name(const struct dpif *);
const char *dpif_base_name(const struct dpif *);
+const char *dpif_type(const struct dpif *);
int dpif_delete(struct dpif *);
int dpif_delete(struct dpif *);
@@
-72,8
+73,8
@@
int dpif_get_dp_stats(const struct dpif *, struct dpif_dp_stats *);
\f
/* Port operations. */
\f
/* Port operations. */
-int dpif_port_add(struct dpif *, struct netdev *, uint
16
_t *port_nop);
-int dpif_port_del(struct dpif *, uint
16
_t port_no);
+int dpif_port_add(struct dpif *, struct netdev *, uint
32
_t *port_nop);
+int dpif_port_del(struct dpif *, uint
32
_t port_no);
/* A port within a datapath.
*
/* A port within a datapath.
*
@@
-85,14
+86,15
@@
struct dpif_port {
};
void dpif_port_clone(struct dpif_port *, const struct dpif_port *);
void dpif_port_destroy(struct dpif_port *);
};
void dpif_port_clone(struct dpif_port *, const struct dpif_port *);
void dpif_port_destroy(struct dpif_port *);
-int dpif_port_query_by_number(const struct dpif *, uint16_t port_no,
+bool dpif_port_exists(const struct dpif *dpif, const char *devname);
+int dpif_port_query_by_number(const struct dpif *, uint32_t port_no,
struct dpif_port *);
int dpif_port_query_by_name(const struct dpif *, const char *devname,
struct dpif_port *);
struct dpif_port *);
int dpif_port_query_by_name(const struct dpif *, const char *devname,
struct dpif_port *);
-int dpif_port_get_name(struct dpif *, uint
16
_t port_no,
+int dpif_port_get_name(struct dpif *, uint
32
_t port_no,
char *name, size_t name_size);
int dpif_get_max_ports(const struct dpif *);
char *name, size_t name_size);
int dpif_get_max_ports(const struct dpif *);
-uint32_t dpif_port_get_pid(const struct dpif *, uint
16
_t port_no);
+uint32_t dpif_port_get_pid(const struct dpif *, uint
32
_t port_no);
struct dpif_port_dump {
const struct dpif *dpif;
struct dpif_port_dump {
const struct dpif *dpif;