On Sat, May 14, 2011 at 05:12:31PM +0500, Tahir Rauf wrote: > Can any body tell me the difference between ofproto_add_flow() and > add_flow() function? The comments given on functions state > a) ofproto_add_flow(): Adds a flow to the OpenFlow flow table. > b) add_flow(): Adds the flow to ofproto's flow table. > I was considering ofproto as just openflow switch (as described in comments > of 'struct ofproto' in ofproto/private.h file). So, I was thinking that > ofproto's flow table and OpenFlow table is same. If these two terms are same > then why we have separate functions?
Open vSwitch uses ofproto_add_flow() internally to implement in-band control and fail-open. add_flow() implements the OpenFlow OFPT_FLOW_MOD request. _______________________________________________ dev mailing list [email protected] http://openvswitch.org/mailman/listinfo/dev
