2
0
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:
Ilya Maximets
2024-01-09 23:49:13 +01:00
parent 6de317c0e0
commit dd0947b871
2 changed files with 13 additions and 0 deletions

View File

@@ -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