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 EF2E042C5E; Thu, 8 Jun 2023 15:43:07 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 8B9A540A84; Thu, 8 Jun 2023 15:43:07 +0200 (CEST) Received: from mx0b-0016f401.pphosted.com (mx0b-0016f401.pphosted.com [67.231.156.173]) by mails.dpdk.org (Postfix) with ESMTP id 65B6340042 for ; Thu, 8 Jun 2023 15:43:06 +0200 (CEST) Received: from pps.filterd (m0045851.ppops.net [127.0.0.1]) by mx0b-0016f401.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 358D5EhY005521; Thu, 8 Jun 2023 06:43:05 -0700 Received: from nam10-bn7-obe.outbound.protection.outlook.com (mail-bn7nam10lp2101.outbound.protection.outlook.com [104.47.70.101]) by mx0b-0016f401.pphosted.com (PPS) with ESMTPS id 3r30eu2r83-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 08 Jun 2023 06:43:05 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Rj+LgjahYi8+bNBYpoW+87AquuX8hW75FOQuYOGFMj1wMItRc4xpMrE3F80+t08g6BeHUEE4+xGJIJ72A0ZkufO3b2BXHj9fGJC6yvsASYRbdjEa74n4da1G6Vlz3OP1sxlciDmY0JDk/vm2eJHJnhV6aU1TA2EwdIku85U38sWPerWRE8aeu7SRuz45jaDGqh10hcqIgvG/1nTRcwR1wipVrrAgD4f1KfsCHfg6X6FnbnH6x4WW315sh98C0oH0tQdn1YeUjYMNNHOcc8li30Y/vMoLwkB6QYmlimbgSMom4120WH39N7bytiWkfuujXsD6sV9BQ+Ua3wZxzn53mQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=+1US+rstr98/W5rxYGOrE7ZxTUStVtFQLiP+OJHGggI=; b=ld6KD2ft0o+LBGFAqw+4ayLG2PPiMEOVk+y45OkpdH2fDRw0cGw5frLk3tFJzzv+jLE+T2x3kkQjSjdyhJLQpJVbYAyL2ADZy+C6eQE51HYcc+DNrFPZDDsSN6u/ExVFl8aTp3P+NDQ3V7s9yXNaPrOo4Lsf+QaKUaDRjDAOeDGchrK07Jl4kqOJ/VD+nMdhSm6rtBW2lY7AuoQxzR6hZfZVVxgubEfFG7E912iBZ8PmNSfbq4WjIU+82LFBGKCrpSwiGcnCVLdaKQFF2ljiUnrTBsOkUudbO4k5GlrIe3e7NwwoWOKnYAvQ8RAQXcU+EoYn/1fO3b4i5wsDjzLpOA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=marvell.com; dmarc=pass action=none header.from=marvell.com; dkim=pass header.d=marvell.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=marvell.onmicrosoft.com; s=selector1-marvell-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=+1US+rstr98/W5rxYGOrE7ZxTUStVtFQLiP+OJHGggI=; b=T99Yc8fjGEzeM86y5Ob2tAp1SpNbU/hTWZy3tsW/PoMP7cs520e0fpPyb58BxdL7XiNPxtpmIcwZ71w2+FlHQPrPfm6G/SRezLStySEEr0/9UJJDkbVKDwKpea4AVFkaeWsMuVBBa2Fxm7qY7jo8hYdKlw4wWp5VN4Ie2d9rPy0= Received: from PH0PR18MB4086.namprd18.prod.outlook.com (2603:10b6:510:3::9) by DM8PR18MB4502.namprd18.prod.outlook.com (2603:10b6:8:3b::9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6455.33; Thu, 8 Jun 2023 13:43:01 +0000 Received: from PH0PR18MB4086.namprd18.prod.outlook.com ([fe80::600f:e50f:8159:d89]) by PH0PR18MB4086.namprd18.prod.outlook.com ([fe80::600f:e50f:8159:d89%6]) with mapi id 15.20.6455.030; Thu, 8 Jun 2023 13:43:01 +0000 From: Pavan Nikhilesh Bhagavatula To: Zhirun Yan , "dev@dpdk.org" , Jerin Jacob Kollanukkaran , Kiran Kumar Kokkilagadda , Nithin Kumar Dabilpuram , "stephen@networkplumber.org" , "jerinjacobk@gmail.com" CC: "cunming.liang@intel.com" , "haiyue.wang@intel.com" , "mattias.ronnblom@ericsson.com" Subject: RE: [EXT] [PATCH v10 11/16] graph: enable create and destroy graph scheduling workqueue Thread-Topic: [EXT] [PATCH v10 11/16] graph: enable create and destroy graph scheduling workqueue Thread-Index: AQHZmfDIPpC+GhP9XUih5Gukv6hEDa+A6k6w Date: Thu, 8 Jun 2023 13:43:01 +0000 Message-ID: References: <20230607035144.1214492-1-zhirun.yan@intel.com> <20230608095759.1800617-1-zhirun.yan@intel.com> <20230608095759.1800617-12-zhirun.yan@intel.com> In-Reply-To: <20230608095759.1800617-12-zhirun.yan@intel.com> Accept-Language: en-IN, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-dg-ref: PG1ldGE+PGF0IG5tPSJib2R5LnR4dCIgcD0iYzpcdXNlcnNccGJoYWdhdmF0dWxhXGFwcGRhdGFccm9hbWluZ1wwOWQ4NDliNi0zMmQzLTRhNDAtODVlZS02Yjg0YmEyOWUzNWJcbXNnc1xtc2ctNjE2NjI1ZjItMDYwMi0xMWVlLWI2Y2UtNGMwMzRmNWZhYTMyXGFtZS10ZXN0XDYxNjYyNWY0LTA2MDItMTFlZS1iNmNlLTRjMDM0ZjVmYWEzMmJvZHkudHh0IiBzej0iMTcyMyIgdD0iMTMzMzA3MDUzNzk4OTYzMTc1IiBoPSJrTFBaTFZlS3NaVmMzZzd4TjRLdGpGYVphK289IiBpZD0iIiBibD0iMCIgYm89IjEiLz48L21ldGE+ x-dg-rorf: true x-ms-publictraffictype: Email x-ms-traffictypediagnostic: PH0PR18MB4086:EE_|DM8PR18MB4502:EE_ x-ms-office365-filtering-correlation-id: b849adf3-251e-4fa0-2b5d-08db68264716 x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: IBRNWHZuD5v5n/wYn5n2Hb6sN0dBXLdphm+jRGDVRBn8AWINLFdtDG++pHifMNaRCM1VFD8iNFn+eTn60kr5Clv3oRbCNnfmnwafggxJUoOsOUuVPtOLtpOmdra+FammsgT0a6yFQs2IGpqymIr8RqVzciVRnL8BoK9LsUO9YhdDz6Kgz7ylK8cR/UJgwVDQk6qFQu0CU3MyzeYEvwFWNa/5swYMP5vqJscEtgxWu9LqZE4maiMyHIbW80C7/o5mzi2PhsWOlAJQThmxnkqjj4mPK4mqU4sAdDfGvM6UIbUD0+vZ5vYe0DYzckmYHCgG6dJkWC+se8kDihz9uZiOf+8tDTx2zY5ceKyir1bEVCVBSnCFPYR8kFL+PFsWW0bn+MAmjqylsOxtapvyd8RSo20SUHAvbPsFx8GrkrDtuxCLqUpokI6yP8XZwteNABVoznka6dKgroicgkSN3l+Yy8RZNfFXvEURex/Vs/z4CmA46JCiCTzfBU2esJ01VBRBulNoWSZp33Qg+/cyxojWvXnr5yj/gKfd60dDPZtgEBn3YYGRhKREjzy9EY0IqF0K2ldylh+Ke+bLeRPuFsqOIKr7Kkc+YXAPhUFbyKu3oVHFeJ2gNWUCt4WEAdqnZihz x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:PH0PR18MB4086.namprd18.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230028)(4636009)(376002)(366004)(396003)(39860400002)(136003)(346002)(451199021)(6506007)(9686003)(26005)(52536014)(122000001)(86362001)(33656002)(186003)(316002)(55016003)(2906002)(5660300002)(8676002)(38070700005)(8936002)(41300700001)(38100700002)(76116006)(66446008)(110136005)(66556008)(66476007)(66946007)(4326008)(54906003)(64756008)(478600001)(71200400001)(7696005); DIR:OUT; SFP:1101; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?zfnqGSmgY8m7c5O/sMSyESvPSbYwqApPHe7eDZgJM8qvpv+cyJtj/7qjNPXe?= =?us-ascii?Q?1hPacP1Qbtib6CPgpQkSTZqW8muLQloD2D/cmi5I+Z5tClJO8JuZKRPhwCLd?= =?us-ascii?Q?V6KxFEpDgTr+z3s6I0VKJ2FT/RNPu9yyBfd0pLvytiFQwmyTnKlHJyysuxp4?= =?us-ascii?Q?GFqrrWpbPgiAso0Z63v7i7XGwEwgpOV/AFiHy/UuW1p2dGl4YW/rj6lxHaIf?= =?us-ascii?Q?o7/xwHyhh7vIY7UFa7Kznf6JGColhSe1Jj+oltuTl2voA3+s5oX+qCM48pMc?= =?us-ascii?Q?7+y1mEYgFHfQaAKOix15FF5/Z9PYC9EFCUwP7Sf4Tb/AlTohzo/ikQtm8jxj?= =?us-ascii?Q?S2bASQRaUqKXYLrysa9JYmpSAP/U2KVcbTDEX3Cb8uxi8LrFgh7k/jj1vkri?= =?us-ascii?Q?8vQqTYS5Rpj3RZ8Wuu+Lsg/NIrHgNGLf8gsUR7u2mnE3xeCfoGZ2feiC4c0J?= =?us-ascii?Q?R8k7/y/x354+6OnvpfrBzhrdN2STHte0BBcGXd1AikP5+vKQzTjoMmNo1DkZ?= =?us-ascii?Q?fJGg4b3lapw+1qV9l0Z8v6QI7aYszmwtXRfkyVZHGCDHaI2JAR5PTWQCf9qe?= =?us-ascii?Q?G7yUSFGmFIg975P1LCOXsw5DDfBcr8tVPspk5uQZSC/bscG9MiJhZMulL1aL?= =?us-ascii?Q?yH+14pffv2SsoacEThPcrT1KJr5mQPUNTIRG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eNaMq535Od8cc3QHuZRq74VD0VqfrRk?= Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: marvell.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: PH0PR18MB4086.namprd18.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: b849adf3-251e-4fa0-2b5d-08db68264716 X-MS-Exchange-CrossTenant-originalarrivaltime: 08 Jun 2023 13:43:01.3330 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 70e1fb47-1155-421d-87fc-2e58f638b6e0 X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: CfvYjQO+q7PbfJB/yzG3wqJoNDjee8XkM2yTS1wFwEDE2Fz6kRRej6au0Vg8Edgz33CABicJ79htf0/nVqaWyMQJ/EKH1wJt3xT2m4yVA5g= X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM8PR18MB4502 X-Proofpoint-ORIG-GUID: rtRAiW2m-J3fEeDySC8GuCtk3xhSs0PP X-Proofpoint-GUID: rtRAiW2m-J3fEeDySC8GuCtk3xhSs0PP X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.254,Aquarius:18.0.957,Hydra:6.0.573,FMLib:17.11.176.26 definitions=2023-06-08_10,2023-06-08_01,2023-05-22_02 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 > This patch enables to create and destroy scheduling workqueue into > common graph operations. >=20 > Signed-off-by: Haiyue Wang > Signed-off-by: Cunming Liang > Signed-off-by: Zhirun Yan Acked-by: Pavan Nikhilesh > --- > lib/graph/graph.c | 10 ++++++++++ > 1 file changed, 10 insertions(+) >=20 > diff --git a/lib/graph/graph.c b/lib/graph/graph.c > index 41251e3435..0c28d925bc 100644 > --- a/lib/graph/graph.c > +++ b/lib/graph/graph.c > @@ -451,6 +451,11 @@ rte_graph_destroy(rte_graph_t id) > while (graph !=3D NULL) { > tmp =3D STAILQ_NEXT(graph, next); > if (graph->id =3D=3D id) { > + /* Destroy the schedule work queue if has */ > + if (rte_graph_worker_model_get(graph->graph) =3D=3D > + RTE_GRAPH_MODEL_MCORE_DISPATCH) > + graph_sched_wq_destroy(graph); > + > /* Call fini() of the all the nodes in the graph */ > graph_node_fini(graph); > /* Destroy graph fast path memory */ > @@ -524,6 +529,11 @@ graph_clone(struct graph *parent_graph, const char > *name, struct rte_graph_param > /* Clone the graph model */ > graph->graph->model =3D parent_graph->graph->model; >=20 > + /* Create the graph schedule work queue */ > + if (rte_graph_worker_model_get(graph->graph) =3D=3D > RTE_GRAPH_MODEL_MCORE_DISPATCH && > + graph_sched_wq_create(graph, parent_graph, prm)) > + goto graph_mem_destroy; > + > /* Call init() of the all the nodes in the graph */ > if (graph_node_init(graph)) > goto graph_mem_destroy; > -- > 2.37.2