summaryrefslogtreecommitdiff
path: root/ofproto/ofproto-dpif-upcall.h
diff options
context:
space:
mode:
authorHuanle Han <hanxueluo@gmail.com>2015-07-15 23:41:05 +0800
committerBen Pfaff <blp@nicira.com>2015-07-16 11:50:25 -0700
commit0fc1f5c04c8c1a9ac461da8c6ab88dee680a5ab3 (patch)
treea4217c1eadf2d385e62ad4688b84b11b3832143f /ofproto/ofproto-dpif-upcall.h
parent3f11b876befc0629ca2a174546fa3f6b43d44e81 (diff)
downloadopenvswitch-0fc1f5c04c8c1a9ac461da8c6ab88dee680a5ab3.tar.gz
ovs-appctl: register unixctl commands in the beginning
Some commands of ovs-appctl were lazily registered when first bridg or bfd was added. Before that, calling these commands raised a error("xxx is not a valid command"). The problem commangs included "bfd/...", "upcall/...","dpif/...","fdb/..." and so on. Fix this by moving the register into the "bridge_init" and "bridge_init_ofproto". All commands are registered at the moment ovs-vswitchd starts. Signed-off-by: Huanle Han <hanxueluo@gmail.com> Signed-off-by: Ben Pfaff <blp@nicira.com>
Diffstat (limited to 'ofproto/ofproto-dpif-upcall.h')
-rw-r--r--ofproto/ofproto-dpif-upcall.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/ofproto/ofproto-dpif-upcall.h b/ofproto/ofproto-dpif-upcall.h
index ec19bd0f0..efa3cd190 100644
--- a/ofproto/ofproto-dpif-upcall.h
+++ b/ofproto/ofproto-dpif-upcall.h
@@ -28,6 +28,7 @@ struct simap;
* them. Additionally, it's responsible for maintaining the datapath flow
* table. */
+void udpif_init(void);
struct udpif *udpif_create(struct dpif_backer *, struct dpif *);
void udpif_run(struct udpif *udpif);
void udpif_set_threads(struct udpif *, size_t n_handlers,