> -----Original Message----- > From: Jerin Jacob <jerinjac...@gmail.com> > Sent: Monday, June 5, 2023 8:41 PM > To: Yan, Zhirun <zhirun....@intel.com> > Cc: dev@dpdk.org; jer...@marvell.com; kirankum...@marvell.com; > ndabilpu...@marvell.com; step...@networkplumber.org; > pbhagavat...@marvell.com; Liang, Cunming <cunming.li...@intel.com>; Wang, > Haiyue <haiyue.w...@intel.com>; mattias.ronnblom > <mattias.ronnb...@ericsson.com> > Subject: Re: [PATCH v7 06/17] graph: introduce graph bind unbind API > > On Mon, Jun 5, 2023 at 4:56 PM Zhirun Yan <zhirun....@intel.com> 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 <haiyue.w...@intel.com> > > Signed-off-by: Cunming Liang <cunming.li...@intel.com> > > Signed-off-by: Zhirun Yan <zhirun....@intel.com> > > --- > > 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)