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 A6711A0552; Tue, 6 Dec 2022 04:35:19 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 491A940156; Tue, 6 Dec 2022 04:35:19 +0100 (CET) Received: from mx0b-0016f401.pphosted.com (mx0a-0016f401.pphosted.com [67.231.148.174]) by mails.dpdk.org (Postfix) with ESMTP id 77ECA40151 for ; Tue, 6 Dec 2022 04:35:17 +0100 (CET) Received: from pps.filterd (m0045849.ppops.net [127.0.0.1]) by mx0a-0016f401.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 2B63B9r7008454; Mon, 5 Dec 2022 19:35:16 -0800 Received: from nam10-dm6-obe.outbound.protection.outlook.com (mail-dm6nam10lp2106.outbound.protection.outlook.com [104.47.58.106]) by mx0a-0016f401.pphosted.com (PPS) with ESMTPS id 3m9g83b7gq-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 05 Dec 2022 19:35:16 -0800 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=lkC9rSSaAGyvvaouQPzHUl0h379D4WdVbtXVhEX8QUqQd+yzow9U/ysKpNos53KUjFshsLbQE6IY1YizwWoiWq7uCTzFmj6cgiyvh4ACowguyMjzVY6F9PnDtdtxyEJoFfy8z/GjWPohTJR5hUjn1OyRK+FQKIZKJPfznWpwLo9Wi9DngVkIE3qvV6PfGiupbwak3PpH492BB4KT+mDFJtNYz1yHu0sm4Yc7SeQYGXHADzyKO3lmaFRWJCbYB6VEdddbA7sWWFXgfTiqiVK5ivSYcH1yQjJcy3Mdh+/0EIzLhMoa+Yg/Kn5yXyc/CwYX98GPp1KkE5KYy4jR699v2A== 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=jRbkwSpx/+Bez4Xy15uvf9lXqeFavRkW+tANtj4JYX0=; b=n8XyGR3VOWYPW8NTJ8eRKHmZ286lw9pO3mNsPdzSDaADqSHgV+7I7PSIJTIhVcm+6FwoPPhqSbEuXmO3tY1LW3cWd22mZzxesmvSm9RravzmlwaRJDwB2GoenxzPfLDpTij29Mk7f+PFIqeQP1bnS1Zb4L93ZddmpCB25lWlHWQy+A7ni+LUjbht3Hw291Fa1nzsy5r06BB2cQBKsAKB8ejhwTdqfX59RjG4xGUHBKJvVuGfhvUawmLtdpbStaPVxa9TPmnQbrFnNvrgkMpPQObrfZy+nTJKP9ry1iQBxr+DTtORjqYqxyeG5fpB3FbPIoBgeEIyK8RGOZ0MjfbExg== 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=jRbkwSpx/+Bez4Xy15uvf9lXqeFavRkW+tANtj4JYX0=; b=YkQ0wGvdy28/DgIgafKRzPKuUelGnmQp/A2GFGuygdVyczrT9vzvsffOSoKqdek2RlOyZoyiFJNqb+2Yn1MORTgEeFmWVlhPEl5ZZs7bpoYvac7QZm26a2eKd2LYLo9SzQvH8+/k6ClrbfVhiRq5q+NfyUudvqmNxImwQ7ku494= Received: from BYAPR18MB2965.namprd18.prod.outlook.com (2603:10b6:a03:10c::30) by SJ0PR18MB5137.namprd18.prod.outlook.com (2603:10b6:a03:438::18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5880.14; Tue, 6 Dec 2022 03:35:14 +0000 Received: from BYAPR18MB2965.namprd18.prod.outlook.com ([fe80::5fc2:34c2:22c9:3d80]) by BYAPR18MB2965.namprd18.prod.outlook.com ([fe80::5fc2:34c2:22c9:3d80%5]) with mapi id 15.20.5880.011; Tue, 6 Dec 2022 03:35:13 +0000 From: Kiran Kumar Kokkilagadda To: Zhirun Yan , "dev@dpdk.org" , Jerin Jacob Kollanukkaran , Nithin Kumar Dabilpuram CC: "cunming.liang@intel.com" , "haiyue.wang@intel.com" Subject: RE: [EXT] [PATCH v1 04/13] graph: add get/set graph worker model APIs Thread-Topic: [EXT] [PATCH v1 04/13] graph: add get/set graph worker model APIs Thread-Index: AQHY+kLTvUpp0xCun0iOlnueG4auqq5gT31g Date: Tue, 6 Dec 2022 03:35:13 +0000 Message-ID: References: <20221117050926.136974-1-zhirun.yan@intel.com> <20221117050926.136974-5-zhirun.yan@intel.com> In-Reply-To: <20221117050926.136974-5-zhirun.yan@intel.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-dg-rorf: true x-dg-ref: =?us-ascii?Q?PG1ldGE+PGF0IG5tPSJib2R5LnR4dCIgcD0iYzpcdXNlcnNca2lyYW5rdW1h?= =?us-ascii?Q?cmtcYXBwZGF0YVxyb2FtaW5nXDA5ZDg0OWI2LTMyZDMtNGE0MC04NWVlLTZi?= =?us-ascii?Q?ODRiYTI5ZTM1Ylxtc2dzXG1zZy1iNzJlZDZmNi03NTE1LTExZWQtODYyNC1j?= =?us-ascii?Q?OGNiOWVhN2QzZTdcYW1lLXRlc3RcYjcyZWQ2ZjctNzUxNS0xMWVkLTg2MjQt?= =?us-ascii?Q?YzhjYjllYTdkM2U3Ym9keS50eHQiIHN6PSIzOTk1IiB0PSIxMzMxNDc3MDc2?= =?us-ascii?Q?NjIwMjg0ODMiIGg9IllJZjZtOGRneXBqNFVreTFtRHA2e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ii?Q?QmxBR3dBYkFCZkFIUUFaUUJ5QUcwQWFRQnVBSFVBY3dBQUFBQUFBQUFBQUFB?= =?us-ascii?Q?QUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFB?= =?us-ascii?Q?QUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFB?= =?us-ascii?Q?QUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFB?= x-dg-reftwo: QUFBQUFBQUFBQUFBQUFBQkFBQUFBQUFBQUFJQUFBQUFBQT09Ii8+PC9tZXRhPg== x-ms-publictraffictype: Email x-ms-traffictypediagnostic: BYAPR18MB2965:EE_|SJ0PR18MB5137:EE_ x-ms-office365-filtering-correlation-id: eccd98a0-059d-481e-bc58-08dad73ae2af x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: HxQhTqeJ7AKzY/dR58OHGVVdR5IFMkF76LDGtCjwUM2PhE4Ik5ekMrOTn2m2H98kd6BmR6oVESQYCu1CD2xVCy2BulLsSRwcfxhVGu1a2cSEzjazanbs/ZwEu8szHp3OJhKVm1Q4FqJ9ey86VXlb0Vg+9wAPhV60xpnI+vCBdBHmFmZosmSlFqnMEp1qXB/QW1BIFPwt3drPnlQHZFpPKqukyZc/hsL270DNuuDfdz/ly84+FTiM5XPMKdtcWwLEh2HuNqT9K3zHHHR1zCGycjov44iTpEJAIbJm6Z+L3SjBH3dEVkUwiTvQqRkH9ISV8Vi1GUbw4QCtp5vNh9e56+J/pF6i/GRBKr6qPr5djmQD8beam7oToZVNy7TDiTZ+seDrGJO4FN4geXNXSeEDO6B4TdNdaF9fCZ/ZE2TWuHS+WIjo+i/tlj68YrDnEcPIOLMvrCYNKTeJYuynic4dGN9q8B6NtiflK/D3kDG+FJYhjaBxdxC5KbFN/fNk67b6nmEX7dRm8Y+CPTy/wEjMU8Dsyd8UuIGHYoCKu8cRkR+ysDt3fyEtUv+4DfRxLw3ebj5BcL6O5GGd1YYiRuIyC4O1ZaZxQD75/4T+b2okH84QvfdyufTkd99fe+ZW1HXr0+x8yAUUSqyb5WyE7+qgo5qGojZ/scPpdP06vRbNZXUDuDgAQv3L3yrwoCr/LmNpkOXBZwTu6HyLSVWDTbbRQQ== x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:BYAPR18MB2965.namprd18.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230022)(4636009)(39860400002)(376002)(136003)(396003)(366004)(346002)(451199015)(316002)(38070700005)(38100700002)(71200400001)(6506007)(55016003)(33656002)(55236004)(53546011)(7696005)(478600001)(110136005)(6636002)(54906003)(9686003)(83380400001)(26005)(86362001)(66946007)(66446008)(76116006)(122000001)(66476007)(66556008)(64756008)(8936002)(4326008)(8676002)(41300700001)(186003)(2906002)(5660300002)(52536014); DIR:OUT; SFP:1101; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?29JwtWqm7yhEmKXqAqQVxDB/ZYRjTQ/0PlbbbxWNpCTwDt3QjEj/2pgcAIpB?= =?us-ascii?Q?3bNM3JV4tpasDGDQsjYIgWdVeOMWaQRn5WiBXbVeB2YQeBAso5ZCBq1JRBnD?= =?us-ascii?Q?QyPsL2NzTfeDUPk5jGfwj1wwLBuL+3IWQMpvPNDtYkKdH5NTAg/9cFovtykf?= =?us-ascii?Q?8JYqauHCI5NMP05WVhm9yAIbAO5DBJ6jBH/nKjTaS7EveXbB/9WNUNR4lBef?= =?us-ascii?Q?MnOC3DwPWK1Yk3nQh32OAwzYjPalgzC7LNUgIXplykvfBfqrCJ0KT/DZVcpf?= =?us-ascii?Q?bFNbD8sN9r897PXHRB+fkJvoJzYU5PY2T5kB8bHOqt0noUjbYpzr7StrcjaJ?= =?us-ascii?Q?o0Gp/A6p/81bOaPl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kQ?= =?us-ascii?Q?tt/Erm9uRuNos4a+P230uciOQcEPwjgz0ibxjjBllQNF1Vh+jZs9WPIBtAEC?= =?us-ascii?Q?jrzzYJWLH3wvZaAb4bcl90ehLAhJeUb8FN6ktnvKC2qL/WTZwwv4YrDqcGjs?= =?us-ascii?Q?/h92Zv6GbRotI13LhNrL4jg1XaA11+HY69CKBTku+pHK4JKWxGjCNx1JTYIR?= =?us-ascii?Q?2sEob/Z5mGl6y7DR9O2qMptWhsortDM+UEvVzKkEMNaZ5fYXntdRj23h1i+H?= =?us-ascii?Q?4Ex7A7FwrcZZDAZlcq2UnQQrvtjnOjcc5w/+YB6nS/4i2iGLXyFX+qtgrNqh?= =?us-ascii?Q?8HcuqkL72l/1hG/29J4kjS2sHDsOz79XOwBgWIpS?= 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: BYAPR18MB2965.namprd18.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: eccd98a0-059d-481e-bc58-08dad73ae2af X-MS-Exchange-CrossTenant-originalarrivaltime: 06 Dec 2022 03:35:13.7120 (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: ypc3/HYls1IOWg9DeTHeB8qFZ9dNeNF+qMN+Q2dzmplHZ9/ouXLXaYL7IT7cDhK56wJA38s4tRj63uutmpN6kg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: SJ0PR18MB5137 X-Proofpoint-ORIG-GUID: TjJvE1bWrdy_b3KENirGOFmbyaBeyQAo X-Proofpoint-GUID: TjJvE1bWrdy_b3KENirGOFmbyaBeyQAo X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.205,Aquarius:18.0.923,Hydra:6.0.545,FMLib:17.11.122.1 definitions=2022-12-06_02,2022-12-05_01,2022-06-22_01 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 > -----Original Message----- > From: Zhirun Yan > Sent: 17 November 2022 10:39 AM > To: dev@dpdk.org; Jerin Jacob Kollanukkaran ; Kiran > Kumar Kokkilagadda ; Nithin Kumar Dabilpuram > > Cc: cunming.liang@intel.com; haiyue.wang@intel.com; Zhirun Yan > > Subject: [EXT] [PATCH v1 04/13] graph: add get/set graph worker model API= s >=20 > External Email >=20 > ---------------------------------------------------------------------- > Add new get/set APIs to configure graph worker model which is used to > determine which model will be chosen. >=20 > Signed-off-by: Haiyue Wang > Signed-off-by: Cunming Liang > Signed-off-by: Zhirun Yan > --- > lib/graph/rte_graph_worker.h | 51 +++++++++++++++++++++++++++++ > lib/graph/rte_graph_worker_common.h | 13 ++++++++ > lib/graph/version.map | 3 ++ > 3 files changed, 67 insertions(+) >=20 > diff --git a/lib/graph/rte_graph_worker.h b/lib/graph/rte_graph_worker.h = index > 54d1390786..a0ea0df153 100644 > --- a/lib/graph/rte_graph_worker.h > +++ b/lib/graph/rte_graph_worker.h > @@ -1,5 +1,56 @@ > #include "rte_graph_model_rtc.h" >=20 > +static enum rte_graph_worker_model worker_model =3D > +RTE_GRAPH_MODEL_DEFAULT; > + > +/** > + * @warning > + * @b EXPERIMENTAL: this API may change, or be removed, without prior > +notice > + * Set the graph worker model > + * > + * @note This function does not perform any locking, and is only safe to= call > + * before graph running. > + * > + * @param name > + * Name of the graph worker model. > + * > + * @return > + * 0 on success, -1 otherwise. > + */ > +__rte_experimental > +static inline int > +rte_graph_worker_model_set(enum rte_graph_worker_model model) { > + if (model >=3D RTE_GRAPH_MODEL_MAX) > + goto fail; > + > + worker_model =3D model; > + return 0; > + > +fail: > + worker_model =3D RTE_GRAPH_MODEL_DEFAULT; > + return -1; > +} > + > +/** > + * @warning > + * @b EXPERIMENTAL: this API may change, or be removed, without prior > +notice > + * > + * Get the graph worker model > + * > + * @param name > + * Name of the graph worker model. > + * > + * @return > + * Graph worker model on success. > + */ > +__rte_experimental > +static inline > +enum rte_graph_worker_model > +rte_graph_worker_model_get(void) > +{ > + return worker_model; > +} > + > /** > * Perform graph walk on the circular buffer and invoke the process func= tion > * of the nodes and collect the stats. > diff --git a/lib/graph/rte_graph_worker_common.h > b/lib/graph/rte_graph_worker_common.h > index df33204336..507a344afd 100644 > --- a/lib/graph/rte_graph_worker_common.h > +++ b/lib/graph/rte_graph_worker_common.h > @@ -86,6 +86,19 @@ struct rte_node { > struct rte_node *nodes[] __rte_cache_min_aligned; /**< Next nodes. > */ } __rte_cache_aligned; >=20 > + > + > +/** Graph worker models */ > +enum rte_graph_worker_model { > +#define WORKER_MODEL_DEFAULT "default" > + RTE_GRAPH_MODEL_DEFAULT =3D 0, > +#define WORKER_MODEL_RTC "rtc" > + RTE_GRAPH_MODEL_RTC, Since default is RTC, do we need one more enum for RTC? Can we just have d= efault and generic and remove rtc? > +#define WORKER_MODEL_GENERIC "generic" > + RTE_GRAPH_MODEL_GENERIC, > + RTE_GRAPH_MODEL_MAX, > +}; > + > /** > * @internal > * > diff --git a/lib/graph/version.map b/lib/graph/version.map index > 13b838752d..eea73ec9ca 100644 > --- a/lib/graph/version.map > +++ b/lib/graph/version.map > @@ -43,5 +43,8 @@ EXPERIMENTAL { > rte_node_next_stream_put; > rte_node_next_stream_move; >=20 > + rte_graph_worker_model_set; > + rte_graph_worker_model_get; > + > local: *; > }; > -- > 2.25.1