ofproto: Make OpenFlow connection log messages name the datapath.
authorBen Pfaff <blp@nicira.com>
Tue, 8 Jun 2010 17:38:57 +0000 (10:38 -0700)
committerBen Pfaff <blp@nicira.com>
Tue, 8 Jun 2010 17:38:57 +0000 (10:38 -0700)
commiteb15cdbbea5d8193af63bd2de948b99af30e648f
treec3394f3453059f3710d4a000a70e1a569c88cf1b
parentd4cbfb1952d586282999a287b4e2768c4297dde5
ofproto: Make OpenFlow connection log messages name the datapath.

Until now, log messages about OpenFlow connections have named the target
of the connection, e.g. "tcp:1.2.3.4:5555", but they have not named the
datapath.  Most often, every datapath has the same target, so this can
make it difficult to tell which connection is going wrong.  Usually, that
isn't important, because all connections with the same target will have the
same problems, but it's probably better to be more informative.

This commit changes the log messages to include the datapath name, so that
"tcp:1.2.3.4:5555" becomes, e.g., "xenbr0<->tcp:1.2.3.4:5555".

Requested-by: Keith Amidon <keith@nicira.com>
extras/ezio/ovs-switchui.c
lib/rconn.c
lib/rconn.h
ofproto/ofproto.c
ofproto/status.c
utilities/ovs-controller.c