[PATCH v2] graph: fix head move when graph walk in mcore dispatch
Thomas Monjalon
thomas at monjalon.net
Thu Jun 27 15:52:21 CEST 2024
28/03/2024 09:32, Yan, Zhirun:
> From: Wu, Jingjing <jingjing.wu at intel.com>
> > --- a/lib/graph/rte_graph_model_mcore_dispatch.h
> > +++ b/lib/graph/rte_graph_model_mcore_dispatch.h
> > @@ -100,9 +100,8 @@ rte_graph_walk_mcore_dispatch(struct rte_graph
> > *graph)
> > node = (struct rte_node *)RTE_PTR_ADD(graph,
> > cir_start[(int32_t)head++]);
> >
> > /* skip the src nodes which not bind with current worker */
> > - if ((int32_t)head < 0 && node->dispatch.lcore_id != graph-
> > >dispatch.lcore_id)
> > + if ((int32_t)head < 1 && node->dispatch.lcore_id !=
> > +graph->dispatch.lcore_id)
> > continue;
> > -
> No need for this line.
>
> > /* Schedule the node until all task/objs are done */
> > if (node->dispatch.lcore_id != RTE_MAX_LCORE &&
> > graph->dispatch.lcore_id != node->dispatch.lcore_id &&
> > --
> > 2.34.1
>
> With small change,
>
> Acked-by: Zhirun Yan <zhirun.yan at intel.com>
Applied with above change, thanks.
More information about the dev
mailing list