Helo all,

Im using openvswitch 1.2.2 and i am doing following

i add a flow and then try to add same flow again, now openflow 1.0 spec
says i should get *Overlap erro*r but i dont get it.
In source code i saw in openflow.h
enum ofp_flow_mod_flags {
    *OFPFF_SEND_FLOW_REM = 1 << 0,  /* Send flow removed message when flow
                                    * expires or is deleted. */
    OFPFF_CHECK_OVERLAP = 1 << 1,  /* Check for overlapping entries first.
*/
    OFPFF_EMERG         = 1 << 2   /* Ramark this is for *
}

here in openflow.h it says flags are enabled
But in ofproto,c
*/* Check for overlap, if requested. */
    if (fm->flags & OFPFF_CHECK_OVERLAP)* {
        struct classifier *cls;

        FOR_EACH_MATCHING_TABLE (cls, fm->table_id, ofproto) {
            if (classifier_rule_overlaps(cls, &fm->cr)) {
                return ofp_mkerr(OFPET_FLOW_MOD_FAILED, OFPFMFC_OVERLAP);
            }
        }
    }

here we are also checking fm->flags variable which is set to zero in
ofp-parse.c


void
parse_ofp_str(struct flow_mod *fm, int command, const char *str_, bool
verbose)
{
...
 *  fm->flags = 0;*
...
}



Due to this i dont get (*OFPET_FLOW_MOD_FAILED, OFPFMFC_OVERLAP) error..
i want to know how to enable this flags on commandline so that this
condition is true and overlap flows are checked**
/* Check for overlap, if requested. */
    if (fm->flags & OFPFF_CHECK_OVERLAP)*
{
}


if i edit this code ofp-parse.c and* add fm->flags=2* then i do get the
overlap error if i add same flow again but i want to know how to enable it
without editing code.


there must be somne commandto request check for overlap
_______________________________________________
discuss mailing list
discuss@openvswitch.org
http://openvswitch.org/mailman/listinfo/discuss

Reply via email to