Re: [ovs-dev] [PATCH v8 16/16] ofproto-dpif: Support weight for select groups

2013-11-02 Thread Ben Pfaff
On Wed, Oct 30, 2013 at 06:17:20PM +0900, Simon Horman wrote: > Signed-off-by: Simon Horman I adjusted this for highest-random weight, which just meant that I changed the scoring function to: uint32_t score = (hash_int(i, basis) & 0x) * bucket->weight; and then I adjusted the test

[ovs-dev] [PATCH v8 16/16] ofproto-dpif: Support weight for select groups

2013-10-30 Thread Simon Horman
Signed-off-by: Simon Horman --- v8 * First post --- ofproto/ofproto-dpif-xlate.c | 24 ++-- ofproto/ofproto.c| 3 ++- tests/ofproto-dpif.at| 12 tests/ofproto.at | 2 +- 4 files changed, 33 insertions(+), 8 deletions(-) diff --