On Wed, Aug 13, 2014 at 12:43 PM, Pravin Shelar <pshe...@nicira.com> wrote: > On Wed, Aug 13, 2014 at 9:25 AM, Ben Pfaff <b...@nicira.com> wrote: >> On Mon, Aug 11, 2014 at 02:37:45PM -0700, Jarno Rajahalme wrote: >>> Add DPIF-level infrastructure for meters. Allow meter_set to modify >>> the meter configuration (e.g. set the burst size if unspecified). >>> >>> Signed-off-by: Jarno Rajahalme <jrajaha...@nicira.com> >> >> The dpif_meter_del() convention of using stats->n_bands for both input >> and output is one that I've found awkward in other contexts. It's >> easy for a careless caller to forget to initialize stats->n_bands, for >> example. I would consider passing in the maximum number of bands as a >> separate parameter, because that interface is harder for the caller to >> get wrong. >> >> Other than that I'm happy with this, as long as Jesse and Pravin are >> satisfied interfacewise. > > For now this is targeted for DPDK metering support which is in > user-space datapath therefore we can change interface anytime we want.
I think at a minimum we should give it a high enum value in the interface so it doesn't clash with kernel assignments. _______________________________________________ dev mailing list dev@openvswitch.org http://openvswitch.org/mailman/listinfo/dev