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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user