[ovs-dev] [netdev-dummy V3 2/2] netdev-dummy: Reduce reconnect back off timeout

Jarno Rajahalme jrajahalme at nicira.com
Tue Feb 11 23:31:47 UTC 2014


These work for me, and the code looks OK too, so (for both patches):

Acked-by: Jarno Rajahalme <jrajahalme at nicira.com>

On Feb 11, 2014, at 1:53 PM, Andy Zhou <azhou at nicira.com> wrote:

> netdev-dummy will mostly be used for testing and debugging over fairly
> reliable connection. Reduce reconnect back off timeout in case the first
> connect attempt failed.
> 
> Signed-off-by: Andy Zhou <azhou at nicira.com>
> ---
> lib/netdev-dummy.c |    2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/lib/netdev-dummy.c b/lib/netdev-dummy.c
> index da5bb82..f23fc9f 100644
> --- a/lib/netdev-dummy.c
> +++ b/lib/netdev-dummy.c
> @@ -369,7 +369,7 @@ dummy_packet_conn_set_config(struct dummy_packet_conn *conn,
>         reconnect_set_name(reconnect, stream);
>         reconnect_set_passive(reconnect, false, time_msec());
>         reconnect_enable(reconnect, time_msec());
> -        reconnect_set_backoff(reconnect, 1000, INT_MAX);
> +        reconnect_set_backoff(reconnect, 100, INT_MAX);
>         reconnect_set_probe_interval(reconnect, 0);
>         conn->u.rconn.reconnect = reconnect;
>         conn->type = ACTIVE;
> -- 
> 1.7.9.5
> 
> _______________________________________________
> dev mailing list
> dev at openvswitch.org
> http://openvswitch.org/mailman/listinfo/dev




More information about the dev mailing list