2
0
mirror of https://github.com/openvswitch/ovs synced 2025-10-29 15:28:56 +00:00

rconn: New function rconn_is_reliable().

This will have its first user in an upcoming commit.

Reviewed-by: Yifeng Sun <pkusunyifeng@gmail.com>
Signed-off-by: Ben Pfaff <blp@ovn.org>
This commit is contained in:
Ben Pfaff
2018-10-29 14:58:17 -07:00
parent da0158d193
commit 8645f9cd19
2 changed files with 8 additions and 0 deletions

View File

@@ -883,6 +883,13 @@ rconn_get_target(const struct rconn *rc)
return rc->target;
}
/* Returns true if 'rconn' will reconnect if it disconnects. */
bool
rconn_is_reliable(const struct rconn *rconn)
{
return rconn->reliable;
}
/* Returns true if 'rconn' is connected or in the process of reconnecting,
* false if 'rconn' is disconnected and will not reconnect on its own. */
bool