X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=ofproto%2Fofproto.h;h=0919d813b7075c68ded92c9456dd5b2aa728c5e1;hb=a3a0c29e2b11d8fcae86043cd16520ecbaa03731;hp=c8d98578e8876c837a9914a5e0c23496d49f152b;hpb=e0edde6fee279cdbbf3c179f5f50adaf0c7c7f1e;p=openvswitch diff --git a/ofproto/ofproto.h b/ofproto/ofproto.h index c8d98578..0919d813 100644 --- a/ofproto/ofproto.h +++ b/ofproto/ofproto.h @@ -39,6 +39,7 @@ struct netdev; struct ofproto; struct ofport; struct shash; +struct simap; struct netdev_stats; struct ofproto_controller_info { @@ -153,6 +154,8 @@ int ofproto_run_fast(struct ofproto *); void ofproto_wait(struct ofproto *); bool ofproto_is_alive(const struct ofproto *); +void ofproto_get_memory_usage(const struct ofproto *, struct simap *); + /* A port within an OpenFlow switch. * * 'name' and 'type' are suitable for passing to netdev_open(). */ @@ -198,6 +201,7 @@ int ofproto_port_query_by_name(const struct ofproto *, const char *devname, struct ofproto_port *); /* Top-level configuration. */ +uint64_t ofproto_get_datapath_id(const struct ofproto *); void ofproto_set_datapath_id(struct ofproto *, uint64_t datapath_id); void ofproto_set_controllers(struct ofproto *, const struct ofproto_controller *, size_t n);