> -----Original Message----- > From: Jerin Jacob <[email protected]> > Sent: Monday, June 5, 2023 8:41 PM > To: Yan, Zhirun <[email protected]> > Cc: [email protected]; [email protected]; [email protected]; > [email protected]; [email protected]; > [email protected]; Liang, Cunming <[email protected]>; Wang, > Haiyue <[email protected]>; mattias.ronnblom > <[email protected]> > Subject: Re: [PATCH v7 06/17] graph: introduce graph bind unbind API > > On Mon, Jun 5, 2023 at 4:56 PM Zhirun Yan <[email protected]> wrote: > > > > Add lcore_id for graph to hold affinity core id where graph would run on. > > Add bind/unbind API to set/unset graph affinity attribute. lcore_id > > will be set as MAX by default, it means not enable this attribute. > > > > Signed-off-by: Haiyue Wang <[email protected]> > > Signed-off-by: Cunming Liang <[email protected]> > > Signed-off-by: Zhirun Yan <[email protected]> > > --- > > lib/graph/graph.c | 58 +++++++++++++++++++++++++++++++++++++++ > > lib/graph/graph_private.h | 2 ++ > > lib/graph/rte_graph.h | 22 +++++++++++++++ > > lib/graph/version.map | 2 ++ > > 4 files changed, 84 insertions(+) > > > > diff --git a/lib/graph/graph.c b/lib/graph/graph.c index > > 5582631b53..ecb47dceda 100644 > > --- a/lib/graph/graph.c > > +++ b/lib/graph/graph.c > > @@ -260,6 +260,63 @@ graph_mem_fixup_secondary(struct rte_graph > *graph) > > return graph_mem_fixup_node_ctx(graph); } > > > > +static __rte_always_inline bool > > slowpath function, no need for __rte_always_inline > Ok, I will remove this.
> > +graph_src_node_avail(struct graph *graph)

