> OpenFlow 1.5 (draft) extends the OFPAT_SET_FIELD action originally > introduced in OpenFlow 1.2 so that it can set not just entire fields but > any subset of bits within a field as well. This commit adds support for > that feature when OpenFlow 1.5 is used. > > With this feature, OFPAT_SET_FIELD becomes a superset of NXAST_REG_LOAD. > Thus, this commit merges the implementations of the two actions into a > single ofpact_set_field. > > ONF-JIRA: EXT-314 > Signed-off-by: Ben Pfaff <b...@nicira.com>
> diff --git a/lib/ofp-parse.c b/lib/ofp-parse.c > index eed5a08..19dfe13 100644 > --- a/lib/ofp-parse.c > +++ b/lib/ofp-parse.c > @@ -381,6 +381,7 @@ parse_ofp_str__(struct ofputil_flow_mod *fm, int command, > char *string, > return error; > } > error = str_to_be64(mask + 1, &fm->cookie_mask); > + fm->cookie &= fm->cookie_mask; > > /* Matching of the cookie is only supported through NXM > or > * OF1.1+. */ this hunk looks unrelated. otherwise the code looks reasonable to me. Acked-by: YAMAMOTO Takashi <yamam...@valinux.co.jp> _______________________________________________ dev mailing list dev@openvswitch.org http://openvswitch.org/mailman/listinfo/dev