[ovs-dev] [PATCH 12/14] ofproto: Bundle all controller-related settings into a struct.
Justin Pettit
jpettit at nicira.com
Sat Apr 17 03:21:03 UTC 2010
On Apr 8, 2010, at 5:07 PM, Ben Pfaff wrote:
> @@ -305,6 +268,14 @@ parse_options(int argc, char *argv[], struct ofsettings *s)
> char *short_options = long_options_to_short_options(long_options);
>
> /* Set defaults that we can figure out before parsing options. */
> + s->controller.max_backoff = 8;
> + s->controller.probe_interval = 0;
I think the default value is supposed to be 5. A quick look at the source code, didn't indicate to me where a value of zero would get it to the default.
> case OPT_MAX_BACKOFF:
> - s->max_backoff = atoi(optarg);
> - if (s->max_backoff < 1) {
> + s->controller.max_backoff = atoi(optarg);
> + if (s->controller.max_backoff < 1) {
> ovs_fatal(0, "--max-backoff argument must be at least 1");
> - } else if (s->max_backoff > 3600) {
> - s->max_backoff = 3600;
> + } else if (s->controller.max_backoff > 3600) {
> + s->controller.max_backoff = 3600;
Do you think the max backoff value should be documented in the ovs-openflowd man page?
> + oc.band = (!c->connection_mode
> + || !strcmp(c->connection_mode, "out-of-band")
> + ? OFPROTO_IN_BAND
> + : OFPROTO_OUT_OF_BAND);
Shouldn't that string check be with "in-band"?
--Justin
More information about the dev
mailing list