Break data_hello and control_hello messages into multiple messages.
authorBen Pfaff <blp@nicira.com>
Thu, 3 Apr 2008 18:40:16 +0000 (11:40 -0700)
committerBen Pfaff <blp@nicira.com>
Fri, 4 Apr 2008 23:22:21 +0000 (16:22 -0700)
commit60a87c9b0032346568485ad40fd72ea1f72b8674
tree6deff85e976520a50505b900587a01121cf83e41
parentae3f2361b671bbf878fb63ff223ff5b34f2c2326
Break data_hello and control_hello messages into multiple messages.

We want to allow multiple OpenFlow connections to a switch, so that
dpctl and other management tools can also connect to a switch that
is connecte to the controller.  These tools will want to fetch the
information in the data_hello message, but currently this can only
be done by sending a control_hello message, which changes the
switch configuration state.  So breaking the hello messages up into
multiple different messages, only some of which affect configuration
state, cures the problem.

Also, clean up the kernel datapath a bit, by adding helper functions
for allocating and resizing Generic Netlink messages that encapsulate
OpenFlow messages.
15 files changed:
controller/controller.c
datapath/datapath.c
datapath/datapath.h
datapath/forward.c
datapath/table-hash.c
datapath/table-linear.c
datapath/table-mac.c
include/buffer.h
include/openflow.h
lib/buffer.c
lib/dpif.c
lib/ofp-print.c
switch/datapath.c
utilities/Makefile.am
utilities/dpctl.c