[ovs-dev] [PATCH v4 3/5] ofproto-dpif-xlate: More robust wildcarding for select group.

Jarno Rajahalme jrajahalme at nicira.com
Tue Mar 24 18:29:26 UTC 2015


> On Mar 24, 2015, at 9:53 AM, Ben Pfaff <blp at nicira.com> wrote:
> 
> On Thu, Mar 19, 2015 at 06:03:27PM -0700, Jarno Rajahalme wrote:
>> The flow key should be the same regardless of whether a live bucket is
>> found or not, as it would be confusing that the flow key would be
>> different (different mask bits) after the last group bucket goes dead.
>> 
>> In general, the megaflow algorithm expects the mask bits be set as
>> soon as we read the header bits, regardless of what happens
>> afterwards.
>> 
>> Also, use flow_mask_hash_fields() instead of individually setting mask
>> fields. This immediately brings in IPv6 support, and helps keeping
>> masks in sync with potential algorithm changes to flow hashing
>> functions.
>> 
>> Found by inspection.
>> 
>> Signed-off-by: Jarno Rajahalme <jrajahalme at nicira.com>
> 
> Beautiful.  A bug fix that removes code.  Thank you!
> 
> Acked-by: Ben Pfaff <blp at nicira.com <mailto:blp at nicira.com>>

Thank you for your kind review. Pushed to master,

  Jarno




More information about the dev mailing list