[ovs-dev] [PATCH 3/4] vswitchd: Add new configuration table for IPFIX collectors.

Ben Pfaff blp at nicira.com
Fri Jan 4 18:31:26 UTC 2013


On Tue, Dec 18, 2012 at 11:52:11AM -0800, Romain Lenglet wrote:
> Signed-off-by: Romain Lenglet <rlenglet at vmware.com>

...

> +struct dpif_ipfix *
> +dpif_ipfix_create(void)
> +{
> +    struct dpif_ipfix *di;
> +    di = xcalloc(1, sizeof *di);

You can use xzalloc(x) instead of xcalloc(1, x);

> +    return di;
> +}

In vswitch.ovsschema, I believe that we could limit obs_domain_id to the
32-bit range, since it's a 32-bit value.  Is it worthwhile to do so?



More information about the dev mailing list