Re: [ovs-discuss] Datapath implementation query

2016-04-14 Thread Jesse Gross
On Thu, Apr 14, 2016 at 6:19 PM, Prathap T wrote: > Hi Jesse: > > "Imagine a 1 bit long flow. The flow in the table has the value 0 and > the mask is 1 (significant). There is also another mask with the value > 0 (not significant). If a packet came in with the header value of 1 > and it tried th

Re: [ovs-discuss] Datapath implementation query

2016-04-14 Thread Prathap T
Hi Jesse: "Imagine a 1 bit long flow. The flow in the table has the value 0 and the mask is 1 (significant). There is also another mask with the value 0 (not significant). If a packet came in with the header value of 1 and it tried the second mask first then the value would become 0, matching th

Re: [ovs-discuss] Datapath implementation query

2016-04-14 Thread Jesse Gross
On Thu, Apr 14, 2016 at 11:09 AM, Prathap T wrote: > Hi OVS-Team: > > We are porting OVS onto one of our hardware and I had a question in the > kernel datapath implementation. > > In the function - masked_flow_lookup > > ovs_flow_mask_key(&masked_key, unmasked, mask); > hash = flow_hash(&mas

[ovs-discuss] Datapath implementation query

2016-04-14 Thread Prathap T
Hi OVS-Team: We are porting OVS onto one of our hardware and I had a question in the kernel datapath implementation. In the function - *masked_flow_lookup* ovs_flow_mask_key(&masked_key, unmasked, mask); hash = flow_hash(&masked_key, &mask->range); head = find_bucket(ti, hash); (*n