Re: [ovs-dev] [PATCH 1/3] Check the number of buckets for indirect groups.

2013-09-03 Thread Jarno Rajahalme
On Aug 30, 2013, at 9:48 PM, Simon Horman wrote: > On Fri, Aug 30, 2013 at 01:40:16PM -0700, Jarno Rajahalme wrote: >> +LIST_FOR_EACH(bucket, list_node, &gm->buckets) { >> +++n_buckets; > > Any reason you favour a pre-increment over a post-increment. > I realise it makes no

Re: [ovs-dev] [PATCH 1/3] Check the number of buckets for indirect groups.

2013-09-01 Thread Ben Pfaff
On Fri, Aug 30, 2013 at 01:40:16PM -0700, Jarno Rajahalme wrote: > Indirect groups can have at most one bucket. > > Signed-off-by: Jarno Rajahalme Good catch, thank you. I chose to just add this instead, though: +if (gm->type == OFPGT11_INDIRECT && !list_is_short(&gm->buckets)) { +

Re: [ovs-dev] [PATCH 1/3] Check the number of buckets for indirect groups.

2013-08-30 Thread Simon Horman
On Fri, Aug 30, 2013 at 01:40:16PM -0700, Jarno Rajahalme wrote: > Indirect groups can have at most one bucket. > > Signed-off-by: Jarno Rajahalme Reviewed-by: Simon Horman > --- > lib/ofp-parse.c | 14 +++--- > 1 file changed, 11 insertions(+), 3 deletions(-) > > diff --git a/lib/