[ovs-dev] [PATCH] ofp-actions: Support mixing "conjunction" and "note" actions.
Ben Pfaff
blp at nicira.com
Fri Jun 26 15:42:43 UTC 2015
On Thu, Jun 25, 2015 at 04:27:00PM -0700, Andy Zhou wrote:
> On Mon, Jun 15, 2015 at 1:58 PM, Ben Pfaff <blp at nicira.com> wrote:
> > It doesn't make sense to mix "conjunction" actions with most other kinds
> > of actions. That's because flows with "conjunction" actions aren't ever
> > actually executed, so any actions mixed up with them would never do
> > anything useful. "note" actions are a little different because they never
> > do anything useful anyway: they are just there to allow a controller to
> > annotate flows. It makes as much sense to annotate a flow with
> > "conjunction" actions as it does to annotate any other flow, so this
> > commit makes this possible.
> >
> > Requested-by: Soner Sevinc <sevincs at vmware.com>
> > Signed-off-by: Ben Pfaff <blp at nicira.com>
> > -
> > static void
> > get_conjunctions(const struct ofputil_flow_mod *fm,
> > struct cls_conjunction **conjsp, size_t *n_conjsp)
> > @@ -4420,23 +4414,31 @@ get_conjunctions(const struct ofputil_flow_mod *fm,
> > struct cls_conjunction *conjs = NULL;
> > int n_conjs = 0;
> >
> > - if (is_conjunction(fm->ofpacts, fm->ofpacts_len)) {
> > - const struct ofpact *ofpact;
> > - int i;
> > + n_conjs = 0;
> I don't think this line is necessary. Otherwise, looks good.
Good point, thanks, removed.
> Acked-by: Andy Zhou <azhou at nicira.com>
Thanks! Applied to master and branch-2.4.
More information about the dev
mailing list