Re: [ovs-discuss] Resending request for a new API between controller and switch

2015-01-07 Thread Joe Stringer
Woops, missed the sibling thread. Please disregard. On 7 January 2015 at 09:46, Joe Stringer wrote: > Is there something particular that you're trying to achieve which > standard OpenFlow cookies do not provide? > > On 5 January 2015 at 23:24, Ashok Chippa wrote: >> Hi, >> >> Could someone pleas

Re: [ovs-discuss] Resending request for a new API between controller and switch

2015-01-07 Thread Joe Stringer
Is there something particular that you're trying to achieve which standard OpenFlow cookies do not provide? On 5 January 2015 at 23:24, Ashok Chippa wrote: > Hi, > > Could someone please let me know if my request can be accomodated... > > I have asked a few times for this before, but I'll ask aga

Re: [ovs-discuss] Resending request for a new API between controller and switch

2015-01-06 Thread Ashok Chippa
>From reading various docs, at some point (a few months ago) it did occur to me that lookups are implemented similar to CAM lookups... Not sure why I forgot that since then :( In any case, thanks for humoring me so far... :) BTW, I have seen ASICs that use hash tables (with indices) for FDB table

Re: [ovs-discuss] Resending request for a new API between controller and switch

2015-01-06 Thread Ben Pfaff
On Tue, Jan 06, 2015 at 02:38:53PM -0800, Ashok Chippa wrote: > So, I am reading how OVS datapath works... don't see the details but read > the following (which I had read before as well): > > - A flow may be identified by any combination of ... (tunnel id, ipv6 nd > target, ipv4/6 src addr, ip4/6

Re: [ovs-discuss] Resending request for a new API between controller and switch

2015-01-06 Thread Ben Pfaff
The OVS datapath extracts the packet headers then looks for a match in its flow table. What part of that is the "flow index"? On Tue, Jan 06, 2015 at 02:01:51PM -0800, Ashok Chippa wrote: > Okay. How does the OVS datapath know this is a new flow? i.e. there is no > matching flow entry? Doesn't it

Re: [ovs-discuss] Resending request for a new API between controller and switch

2015-01-06 Thread Ashok Chippa
Hi Ben, So, I am reading how OVS datapath works... don't see the details but read the following (which I had read before as well): - A flow may be identified by any combination of ... (tunnel id, ipv6 nd target, ipv4/6 src addr, ip4/6 dst addr, ... etc.) - The first packet of the flow is sent to

Re: [ovs-discuss] Resending request for a new API between controller and switch

2015-01-06 Thread Ashok Chippa
Okay. How does the OVS datapath know this is a new flow? i.e. there is no matching flow entry? Doesn't it derive some sort of an index (into the flow table) from packet header fields? What am I missing? :) If this is explained in details somewhere, I would appreciate the pointer. Thanks, ashok O

Re: [ovs-discuss] Resending request for a new API between controller and switch

2015-01-06 Thread Ben Pfaff
On Tue, Jan 06, 2015 at 11:01:08AM -0800, Ashok Chippa wrote: > Perhaps once you understand, it will make sense? :) > > Call it whatever flow_id or cookie or xyz? Let me call it "flow index" for > the sake of this discussion. The ovs datapath has some sort of a flow index > to look into the flow t

Re: [ovs-discuss] Resending request for a new API between controller and switch

2015-01-06 Thread Ashok Chippa
Perhaps once you understand, it will make sense? :) Call it whatever flow_id or cookie or xyz? Let me call it "flow index" for the sake of this discussion. The ovs datapath has some sort of a flow index to look into the flow table when a packet arrives, right? Now, how does the ovs datapath arrive

Re: [ovs-discuss] Resending request for a new API between controller and switch

2015-01-06 Thread Ben Pfaff
On Mon, Jan 05, 2015 at 11:24:26PM -0800, Ashok Chippa wrote: > Could someone please let me know if my request can be accomodated... > > I have asked a few times for this before, but I'll ask again: > > Basically, I need a new ofp_type support... something like > OFPT_GET_FLOWID_REQUEST and OFPT_

[ovs-discuss] Resending request for a new API between controller and switch

2015-01-05 Thread Ashok Chippa
Hi, Could someone please let me know if my request can be accomodated... I have asked a few times for this before, but I'll ask again: Basically, I need a new ofp_type support... something like OFPT_GET_FLOWID_REQUEST and OFPT_GET_FLOWID_RESPONSE. Looking for an API, that given certain match pa