[ovs-dev] [PATCH 3/3] lacp: Implement custom timing mode.
Ben Pfaff
blp at nicira.com
Tue Apr 19 18:13:47 UTC 2011
On Tue, Apr 19, 2011 at 11:03:57AM -0700, Ethan Jackson wrote:
> --- a/lib/lacp.c
> +++ b/lib/lacp.c
> @@ -190,7 +190,9 @@ lacp_configure(struct lacp *lacp, const struct lacp_settings *s)
>
> lacp->active = s->active;
> lacp->lacp_time = s->lacp_time;
> - lacp->custom_time = s->custom_time;
> + lacp->custom_time = (s->custom_time < TIME_UPDATE_INTERVAL
> + ? TIME_UPDATE_INTERVAL
> + : s->custom_time);
You can use MAX(TIME_UPDATE_INTERVAL, s->custom_time) here.
The vswitch.xml update looks good.
I'm still looking at your previous response, please give me a few
minutes.
Thank you!
More information about the dev
mailing list