Hi,

I got some question regarding 'flow addition' function of open vswitch. The
*add_flow(struct ofconn *ofconn, struct flow_mod *fm)* function in
ofproto/ofproto.c has comments as follows
" Implements OFPFC_ADD and the cases for OFPFC_MODIFY and
OFPFC_MODIFY_STRICT * in which no matching flow already exists in the flow
table."
>From above comments, I perceive that this is the function which actually
adds flow in the flow table. right?

I was thinking that since open Vswitch uses 'flow_mode' struct, the
controller applications should also play around with this struct. The
controller applications sholuld put some values in "flow_mod *fm" and send
it back to the switch. The switch then receive this struct as argument of
add_flow() and add the flow in his flow table.
Now problem is that most of the controller applications, which I have seen,
play around with struct "struct ofp_flow_mod *ofm" instead of "struct
flow_mod". Is the open vSwitch code, internally convert the "ofp_flow_mod
*ofm" to "flow_mod *fm"? And then call add_flow function with 'flow_mod'
struct. Is it safe to use ofp_flow_mod in controller applications and then
use flow_mod at switch side for adding flows.

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

Reply via email to