From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 8E8E942BF1; Mon, 5 Jun 2023 14:41:51 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 6527040A87; Mon, 5 Jun 2023 14:41:51 +0200 (CEST) Received: from mail-vs1-f44.google.com (mail-vs1-f44.google.com [209.85.217.44]) by mails.dpdk.org (Postfix) with ESMTP id 8CCE44021F for ; Mon, 5 Jun 2023 14:41:50 +0200 (CEST) Received: by mail-vs1-f44.google.com with SMTP id ada2fe7eead31-43b148975e0so1424368137.0 for ; Mon, 05 Jun 2023 05:41:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1685968910; x=1688560910; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=12CZASaOxdt4fJVLnGCyAqwes3aHtmm/TYfITlNnA5w=; b=gD91RdaoL9zXUvLXeIJww4VRGqiXQ+UMjL4Kt4S9H4xfp17n13bLTsQWUdMM3QIFNn bHO6guR4JHJ2ZYSztQag8dfsfbCsmKW7+5eseO1S1+YhMsG5Wn1yuECvpAfZFodfw7Up KZtGe+q51C5KNuVqbU7TnlpFrCVy4ipJzbjfM6JqoGecumikcWcnpcNUkplI1gnRfIZy Qiso4dsuA2dlKgSEmzBNqC9h7wdk4CH17AOe69lEzcmsFt3CFvmqAe7sGXU9aGOe50yS zlGnuuVLrxkoq8ViXx3FcTMZVIzuWlOEpiLVdGBue8iCIoO9OvZvBKTBxZVTPDmDlb0d wLuQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1685968910; x=1688560910; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=12CZASaOxdt4fJVLnGCyAqwes3aHtmm/TYfITlNnA5w=; b=AzXmp3w+IC6odmGIs/09XZRpFUe/LYRdzvyGbc6ZsOnq79qz4oFwSxkArWx0QyYrbZ KAfHHOqveyjAXbEdfNykEbf6Sy8v4vQL0idXTSkAAgfoQU/AbQGoUdhpeTYi+vRdQI+v dbJNGmaye8VLb2Fl6beEyCU8PcqOBS8Vz76QoMc6BvhVPNMxLqWIa1xaYKV/JTTSdedT DDdXgkj0HBfSrTFafLiScrfY9/jLqcw5kUYB67bMv/qneMoWpJ/ChoSjrIyxG+cb66L1 UYzgTRUeDxscGTfQMJv3xpCOapPpAajvq13SsiUMxZa6zr0eHDElLXGBFmuyvzQVTnpt OJdQ== X-Gm-Message-State: AC+VfDyNtjSofFGN5UkZIBs4Xa0vAlERgaqXOyjKTSDTtrHUQcVuUZyp 7w/M0M99CCIM2cEECGmGUh1LtHu92WfzF+JQK94= X-Google-Smtp-Source: ACHHUZ6ftQLEEqpYqACop7vzSn3Jv0l/9LHk+5b08FQ/IQ+mkfnijPAOB8WkeiACQUU0Hb0g+U5AmrL444xG1Ge8B8U= X-Received: by 2002:a05:6102:393:b0:43b:44f2:afb2 with SMTP id m19-20020a056102039300b0043b44f2afb2mr1047290vsq.27.1685968909702; Mon, 05 Jun 2023 05:41:49 -0700 (PDT) MIME-Version: 1.0 References: <20230509060347.1237884-1-zhirun.yan@intel.com> <20230605111923.3772260-1-zhirun.yan@intel.com> <20230605111923.3772260-7-zhirun.yan@intel.com> In-Reply-To: <20230605111923.3772260-7-zhirun.yan@intel.com> From: Jerin Jacob Date: Mon, 5 Jun 2023 18:11:23 +0530 Message-ID: Subject: Re: [PATCH v7 06/17] graph: introduce graph bind unbind API To: Zhirun Yan Cc: dev@dpdk.org, jerinj@marvell.com, kirankumark@marvell.com, ndabilpuram@marvell.com, stephen@networkplumber.org, pbhagavatula@marvell.com, cunming.liang@intel.com, haiyue.wang@intel.com, mattias.ronnblom@ericsson.com Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org On Mon, Jun 5, 2023 at 4:56=E2=80=AFPM Zhirun Yan wr= ote: > > 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 > Signed-off-by: Cunming Liang > Signed-off-by: Zhirun Yan > --- > 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)