ofproto: Add initialization function.
authorJustin Pettit <jpettit@nicira.com>
Tue, 9 Oct 2012 00:57:22 +0000 (17:57 -0700)
committerJustin Pettit <jpettit@nicira.com>
Fri, 2 Nov 2012 05:54:27 +0000 (22:54 -0700)
commitb0408fcacca150694d116d4ead3930757e545bbf
treecbaab13e5c29198ab26e972fcc185ecb5a5d405e
parent81816a5fe8ddd96a296fabc8ea8069e9a19a2631
ofproto: Add initialization function.

A future commit will make all bridges of a particular dpif share a
single backing datapath.  In order to handle restart, the datapath will
need to have some idea of what the initial state looks like.  Otherwise,
it won't know which ports belong to which bridges and orphaned ports may
never be cleaned up.

This commit introduces an initialization method to ofproto, which takes
as an argument a high-level description of the bridges and ports.  An
ofproto provider can then use this information to initialize its state.

Signed-off-by: Justin Pettit <jpettit@nicira.com>
ofproto/ofproto-dpif.c
ofproto/ofproto-provider.h
ofproto/ofproto.c
ofproto/ofproto.h
vswitchd/bridge.c