This patch won't be needed after the next iteration of 'Clone
packets...' patch in the set drops. I'm dropping it in the next set.

On Wed, May 11, 2022 at 2:20 AM Han Zhou <[email protected]> wrote:
>
>
>
> On Thu, May 5, 2022 at 6:38 AM Ihar Hrachyshka <[email protected]> wrote:
> >
> > A next patch may need to clone packets to another chassis as part of
> > "port migration" procedure, but only if they haven't originated at
> > another chassis. This LOCAL_ONLY tag will enforce the requirement.
> >
> > Signed-off-by: Ihar Hrachyshka <[email protected]>
> > ---
> >  controller/physical.c | 1 +
> >  controller/pinctrl.c  | 2 ++
> >  2 files changed, 3 insertions(+)
> >
> > diff --git a/controller/physical.c b/controller/physical.c
> > index 734444320..527df5df8 100644
> > --- a/controller/physical.c
> > +++ b/controller/physical.c
> > @@ -1737,6 +1737,7 @@ physical_run(struct physical_ctx *p_ctx,
> >              OVS_NOT_REACHED();
> >          }
> >
> > +        put_load(1, MFF_LOG_FLAGS, MLF_LOCAL_ONLY_BIT, 1, &ofpacts);
> >          put_resubmit(OFTABLE_LOCAL_OUTPUT, &ofpacts);
> >
> >          ofctrl_add_flow(flow_table, OFTABLE_PHY_TO_LOG, 100, 0, &match,
> > diff --git a/controller/pinctrl.c b/controller/pinctrl.c
> > index ae3da332c..df9284e50 100644
> > --- a/controller/pinctrl.c
> > +++ b/controller/pinctrl.c
> > @@ -586,6 +586,8 @@ set_actions_and_enqueue_msg(struct rconn *swconn,
> >      enum ofp_version version = rconn_get_version(swconn);
> >
> >      reload_metadata(&ofpacts, md);
> > +    /* Allow packet to leave the node. */
> > +    put_load(0, MFF_LOG_FLAGS, MLF_LOCAL_ONLY_BIT, 1, &ofpacts);
> >      enum ofperr error = ofpacts_pull_openflow_actions(userdata, 
> > userdata->size,
> >                                                        version, NULL, NULL,
> >                                                        &ofpacts);
> > --
> > 2.34.1
> >
> > _______________________________________________
> > dev mailing list
> > [email protected]
> > https://mail.openvswitch.org/mailman/listinfo/ovs-dev
>
> Acked-by: Han Zhou <[email protected]>

_______________________________________________
dev mailing list
[email protected]
https://mail.openvswitch.org/mailman/listinfo/ovs-dev

Reply via email to