[PATCH v7 06/17] graph: introduce graph bind unbind API
Jerin Jacob
jerinjacobk at gmail.com
Mon Jun 5 14:41:23 CEST 2023
On Mon, Jun 5, 2023 at 4:56 PM Zhirun Yan <zhirun.yan at 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.wang at intel.com>
> Signed-off-by: Cunming Liang <cunming.liang at intel.com>
> Signed-off-by: Zhirun Yan <zhirun.yan at 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
> +graph_src_node_avail(struct graph *graph)
More information about the dev
mailing list