mirror of
https://github.com/openvswitch/ovs
synced 2025-08-31 22:35:15 +00:00
ovsdb-cs: Add function to set all jsonrpc session options.
Allow setting all the options for the source connection, not only the inactivity probe interval. Acked-by: Dumitru Ceara <dceara@redhat.com> Signed-off-by: Ilya Maximets <i.maximets@ovn.org>
This commit is contained in:
@@ -791,6 +791,16 @@ ovsdb_cs_get_last_error(const struct ovsdb_cs *cs)
|
||||
}
|
||||
}
|
||||
|
||||
/* Sets all the JSON-RPC session 'options' for 'cs''s current session. */
|
||||
void
|
||||
ovsdb_cs_set_jsonrpc_options(const struct ovsdb_cs *cs,
|
||||
const struct jsonrpc_session_options *options)
|
||||
{
|
||||
if (cs->session) {
|
||||
jsonrpc_session_set_options(cs->session, options);
|
||||
}
|
||||
}
|
||||
|
||||
/* Sets the "probe interval" for 'cs''s current session to 'probe_interval', in
|
||||
* milliseconds. */
|
||||
void
|
||||
|
Reference in New Issue
Block a user