No subject


Thu May 26 04:05:51 UTC 2011


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

--bcaec52157a342fc7604a94db416
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

<meta http-equiv=3D"content-type" content=3D"text/html; charset=3Dutf-8"><s=
pan class=3D"Apple-style-span" style=3D"font-family: Arial, sans-serif; fon=
t-size: 13px; line-height: 22px; ">Hi,<div style=3D"margin-top: 0px; margin=
-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; paddin=
g-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px=
; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px=
; border-style: initial; border-color: initial; outline-width: 0px; outline=
-style: initial; outline-color: initial; font-size: 13px; vertical-align: b=
aseline; background-image: initial; background-attachment: initial; backgro=
und-origin: initial; background-clip: initial; background-color: transparen=
t; ">
<br><div style=3D"margin-top: 0px; margin-right: 0px; margin-bottom: 0px; m=
argin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px;=
 padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-=
bottom-width: 0px; border-left-width: 0px; border-style: initial; border-co=
lor: initial; outline-width: 0px; outline-style: initial; outline-color: in=
itial; font-size: 13px; vertical-align: baseline; background-image: initial=
; background-attachment: initial; background-origin: initial; background-cl=
ip: initial; background-color: transparent; ">
I got some question regarding &#39;flow addition&#39; function of open vswi=
tch. The=A0<i>add_flow(struct ofconn *ofconn, struct flow_mod *fm)</i>=A0fu=
nction in ofproto/ofproto.c has comments as follows</div><div style=3D"marg=
in-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; paddi=
ng-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; bo=
rder-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; bor=
der-left-width: 0px; border-style: initial; border-color: initial; outline-=
width: 0px; outline-style: initial; outline-color: initial; font-size: 13px=
; vertical-align: baseline; background-image: initial; background-attachmen=
t: initial; background-origin: initial; background-clip: initial; backgroun=
d-color: transparent; ">
&quot;=A0Implements OFPFC_ADD and the cases for OFPFC_MODIFY and OFPFC_MODI=
FY_STRICT=A0* in which no matching flow already exists in the flow table.&q=
uot;</div><div style=3D"margin-top: 0px; margin-right: 0px; margin-bottom: =
0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom=
: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; b=
order-bottom-width: 0px; border-left-width: 0px; border-style: initial; bor=
der-color: initial; outline-width: 0px; outline-style: initial; outline-col=
or: initial; font-size: 13px; vertical-align: baseline; background-image: i=
nitial; background-attachment: initial; background-origin: initial; backgro=
und-clip: initial; background-color: transparent; ">


More information about the discuss mailing list