[ovs-dev] [PATCH] datapath: Fix tunnel hashing.

Pravin Shelar pshelar at nicira.com
Tue Oct 4 21:32:46 UTC 2011


On Tue, Oct 4, 2011 at 2:09 PM, Jesse Gross <jesse at nicira.com> wrote:
> On Tue, Oct 4, 2011 at 2:03 PM, Pravin B Shelar <pshelar at nicira.com> wrote:
>> diff --git a/datapath/tunnel.h b/datapath/tunnel.h
>> index b3e21fa..dde75ba 100644
>> --- a/datapath/tunnel.h
>> +++ b/datapath/tunnel.h
>> @@ -58,6 +58,8 @@ struct port_lookup_key {
>>        u32    tunnel_type;
>>  };
>>
>> +#define PORT_KEY_LEN   (offsetof(struct port_lookup_key, tunnel_type) + sizeof(u32))
>
> Is there a reason to not use FIELD_SIZEOF?
>
sorry, I missed it.

--pravin.



More information about the dev mailing list