On 3/31/23 11:43, Ales Musil wrote:
> On Thu, Mar 23, 2023 at 8:25 PM Vladislav Odintsov <odiv...@gmail.com>
> wrote:
> 
>> For large OVN_Southbound DBs defatult interval of 5000 ms could be not
>> sufficient.  This patch disables OVSDB inactivity probes for ovn-*ctl
>> running
>> in non-daemon mode.
>>
>> Signed-off-by: Vladislav Odintsov <odiv...@gmail.com>
>> ---
>>  utilities/ovn-dbctl.c | 3 +++
>>  1 file changed, 3 insertions(+)
>>
>> diff --git a/utilities/ovn-dbctl.c b/utilities/ovn-dbctl.c
>> index 369a6a663..4307a5cae 100644
>> --- a/utilities/ovn-dbctl.c
>> +++ b/utilities/ovn-dbctl.c
>> @@ -208,6 +208,9 @@ ovn_dbctl_main(int argc, char *argv[],
>>      if (daemon_mode) {
>>          server_loop(dbctl_options, idl, argc, argv_);
>>      } else {
>> +        /* Disable OVSDB probe interval for non-daemon mode. */
>> +        ovsdb_idl_set_probe_interval(idl, 0);

I think I'd avoid using the idl function directly and call instead:

set_idl_probe_interval(idl, 0);

Just to keep it aligned with all other uses in OVN.  I can patch that at
apply time if it looks OK to you.

>> +
>>          struct ctl_command *commands;
>>          size_t n_commands;
>>          char *error;
>> --
>> 2.36.1
>>
>> _______________________________________________
>> dev mailing list
>> d...@openvswitch.org
>> https://mail.openvswitch.org/mailman/listinfo/ovs-dev
>>
>>
> Looks good to me, thanks.
> 
> Reviewed-by: Ales Musil <amu...@redhat.com>
> 

Vladislav, Ales, I was thinking of backporting this to stable branches
too, what do you think?

Thanks,
Dumitru

_______________________________________________
dev mailing list
d...@openvswitch.org
https://mail.openvswitch.org/mailman/listinfo/ovs-dev

Reply via email to