rconn: Preserve the name of an unreliable connection beyond disconnection.
authorBen Pfaff <blp@nicira.com>
Wed, 30 Apr 2014 17:45:16 +0000 (10:45 -0700)
committerBen Pfaff <blp@nicira.com>
Mon, 5 May 2014 19:27:06 +0000 (12:27 -0700)
commit46e2b6c8c816eb637481fe7fa0ef0848458dc5ee
tree69c312fb0821cbde8425f191ef42d980ada7ef61
parentd5447a0e661767651b481b7b22abc00c6da319cf
rconn: Preserve the name of an unreliable connection beyond disconnection.

An rconn has a human-readable name that typically designates both endpoints
of the connection.  For a "reliable" rconn, that automatically reconnects,
the name remains constant regardless of whether the rconn is currently
connected.  Until now, though, an "unreliable" rconn, that cannot
automatically reconnect, kept its name only until disconnection occurred.
This is OK for the uses currently in the OVS tree, which only use the name
of a rconn while it is connected, but an upcoming commit will add a final
log message following disconnection in some cases, and it makes the log
messages less useful if unreliable rconns just report "void" in that case.
This commit, therefore, modifies the rconn code so that unreliable rconns
preserve their names past disconnection, just like reliable ones.

Signed-off-by: Ben Pfaff <blp@nicira.com>
Acked-by: Alex Wang <alexw@nicira.com>
lib/rconn.c