We are trying to control FTP traffic and for that we need support of port 
range.
We have updated? struct odp_flow_key and struct ofp_match to support port range 
( for eg: 'tp_src'? as lower port limit and 'tp_src1' as upper port limit).
The memcmp of flow key is been replaced by individual struct member compare 
with an extra? port range bound check.
Still we are few steps short, can you suggest where else is the changes are 
needed ?

Thanks,
--Mandar




-----Original Message-----
From: Ben Pfaff <[email protected]>
To: [email protected]
Cc: [email protected]
Sent: 14-Apr-2010 00:39:29 +0000
Subject: Re: [ovs-discuss] flow hash calculation in open vswitch.

 
 
 
On Wed, Apr 14, 2010 at 12:26:59AM -0400, [email protected] wrote: 
> Does all the members of struct odp_flow_key? are used in hash calculation 
? 
 
Yes. 
 
> Can you please elaborate the parameters used in hash calculations? 
 
The code that calculates the hash is in datapath/flow.c: 
 
static u32 flow_hash(const struct dp_table *table, 
                     const struct odp_flow_key *key) 
{ 
        return jhash2((u32*)key, sizeof *key / sizeof(u32), 
table->hash_seed); 
} 
 
The only "parameter" here is table->hash_seed, which is randomly 
generated when the flow table is created. 
 
 

  

_______________________________________________
discuss mailing list
[email protected]
http://openvswitch.org/mailman/listinfo/discuss_openvswitch.org

Reply via email to