[ovs-dev] [PATCH v3 06/11] dpif: Support conntrack zone limit.
Yi-Hung Wei
yihung.wei at gmail.com
Tue Aug 14 23:48:26 UTC 2018
On Tue, Aug 14, 2018 at 4:00 PM Justin Pettit <jpettit at ovn.org> wrote:
> > diff --git a/lib/dpif-provider.h b/lib/dpif-provider.h
> > index 62b3598acfc5..53a4fbdf7ae8 100644
> > --- a/lib/dpif-provider.h
> > +++ b/lib/dpif-provider.h
> > + /* Connection tracking per zone limit */
> > +
> > + /* Per zone conntrack limit sets the maximum allowed connections in zones
> > + * to provide resource isolation. If a per zone limit for a particular
> > + * zone is not available in the datapath, it defaults to the default
> > + * per zone limit. Initially, the default per zone limit is
> > + * unlimited (0). */
> > +
> > + /* Set max connections allowed per zone according to 'zone_limits'.
> > + * If 'default_limit' is not NULL, modifies the default limit to
> > + * '*default_limit'. */
> > + int (*ct_set_limits)(struct dpif *, const uint32_t *default_limit,
> > + const struct ovs_list *zone_limits);
> > +
> > + /* Look up the default per zone limit and stores that in 'default_limit'.
> > + * Look up the per zone limits for all zones in the 'zone_limits_in'
> > + * list, and stores reply that includes the zone, the per zone limit,
> > + * and the number of connections in the zone into 'zone_limits_out'
> > + * list. */
> > + int (*ct_get_limits)(struct dpif *, uint32_t *default_limit,
> > + const struct ovs_list *zone_limits_in,
> > + struct ovs_list *zone_limits_out);
>
> It wasn't immediately obvious to me how to use this interface without some digging. I've taken a stab at it with the incremental at the bottom. Let me know what you think.
>
> Thanks,
>
> --Justin
Thanks Justin. I think the modification makes the comment to be much
more clear. I will include them in the next version.
Thanks,
-Yi-Hung
More information about the dev
mailing list