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 98C454286B; Thu, 30 Mar 2023 05:37:59 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 2AC6640E5A; Thu, 30 Mar 2023 05:37:59 +0200 (CEST) Received: from mga07.intel.com (mga07.intel.com [134.134.136.100]) by mails.dpdk.org (Postfix) with ESMTP id 2A17D40685 for ; Thu, 30 Mar 2023 05:37:55 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1680147477; x=1711683477; h=from:to:cc:subject:date:message-id:references: in-reply-to:content-transfer-encoding:mime-version; bh=Mlr8BdEdatIojt7uhzgeUjswVX32mkoRGWRgCNoRlVI=; b=DOR1SAiDhpm8dSP2kDsllbGq+J7eO/3p+eA6odn9nDCohkpMXyMHXAt2 VxgCXgFmrVbs7rFEikNTbLx3Y4Fxn+88I/IRZ0+UK2gh1PrtntrhAWgZZ +0/NiU7KNq0wB2CLy1U3fteKxO2j+jS+Bjo4Vrz1gPKL4TbnUvKAzyi0l YoTjkmKW7HuJmy6TLGfyGCMiK7feeFZ/wfY0F7fbno4ZPuURhcGW+0CRK +jdRPR3qC/I99Pyj0RHeP7LlygT8NTjifNTO0Cfou7mRhxkMh8A+yyfML Ih2x4tDNeH2BnnD02OEPy8YAmr6Kd2R2pX8L8mpQMu3pT8AzVkEBRPgzJ g==; X-IronPort-AV: E=McAfee;i="6600,9927,10664"; a="406016545" X-IronPort-AV: E=Sophos;i="5.98,301,1673942400"; d="scan'208";a="406016545" Received: from orsmga001.jf.intel.com ([10.7.209.18]) by orsmga105.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 29 Mar 2023 20:37:55 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10664"; a="717145834" X-IronPort-AV: E=Sophos;i="5.98,301,1673942400"; d="scan'208";a="717145834" Received: from fmsmsx603.amr.corp.intel.com ([10.18.126.83]) by orsmga001.jf.intel.com with ESMTP; 29 Mar 2023 20:37:54 -0700 Received: from fmsmsx603.amr.corp.intel.com (10.18.126.83) by fmsmsx603.amr.corp.intel.com (10.18.126.83) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.21; Wed, 29 Mar 2023 20:37:54 -0700 Received: from FMSEDG603.ED.cps.intel.com (10.1.192.133) by fmsmsx603.amr.corp.intel.com (10.18.126.83) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.21 via Frontend Transport; Wed, 29 Mar 2023 20:37:54 -0700 Received: from NAM02-BN1-obe.outbound.protection.outlook.com (104.47.51.46) by edgegateway.intel.com (192.55.55.68) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2507.21; Wed, 29 Mar 2023 20:37:18 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=kVYQXkTeTOgL1ApvvHRtkn5syIF7etN3hZMWGH09G7bIwVLT84uc1sfbanUBV5zOtPqc2cObQIc84qzDQ8JZH+f/g6NSPxA9JaDEKR1UweTWYugX1kP/8lowbZ2XgEZnOa6M9ccVsW67HYmzq/JVgUwC//D16EtAeIm2BSMeYPDC1enyArVkxZ9875y7MsLezacXhiIlLGVV+p8wUQoqR60s9GrqEh1i0D8n1Ze5Kt7z5a4wpFsc7SoKYIyy6IlPYiiN54v3xVMwpF/bymdm12VtDXTotKh7BSjf/X9+MNYyuaHOLfFLzk6Rg4RrE/x7LFSVqa9adMC0I10XFa1E4w== 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=yvMwQE8NcgkQBEnfXB/T1HHUtTkZ0856JgAQDnf1OIY=; b=LkjA2StaqcRz3xmZPXbmVzwjLw5Zk3mo/bi4pdXP2BuFTlXY2t2WGAvHdFsMK4o4ahnuPPmuMkQWLvHvktH/+XS9KRxVjndPWQSbXLetjBq9i1THFFeYwwyRM9c2PGYl3+eV5XADMYK1ZpH8DRnSdotij9b4e1KLuSPxgyNBesoQ9s/rb2F95Fe6n/RrLMUuNGW90onWThrk+8zK545xbi5iDMAPZW9nAqJiTg1G0eo+2WjRqRqqx16haBfCnZU9X6cCzvSSy7Rx88tl2VGnrn63hYXVuno9stgH8gcVZ0p46j5rJZAkiafrp6GNpUEnmo56VMuenDBRqpVwN++CJw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=intel.com; dmarc=pass action=none header.from=intel.com; dkim=pass header.d=intel.com; arc=none Received: from SN7PR11MB6775.namprd11.prod.outlook.com (2603:10b6:806:264::21) by DM4PR11MB6527.namprd11.prod.outlook.com (2603:10b6:8:8e::19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6222.28; Thu, 30 Mar 2023 03:37:11 +0000 Received: from SN7PR11MB6775.namprd11.prod.outlook.com ([fe80::7972:8de5:546c:65f0]) by SN7PR11MB6775.namprd11.prod.outlook.com ([fe80::7972:8de5:546c:65f0%6]) with mapi id 15.20.6254.020; Thu, 30 Mar 2023 03:37:11 +0000 From: "Yan, Zhirun" To: Stephen Hemminger CC: "dev@dpdk.org" , "jerinj@marvell.com" , "kirankumark@marvell.com" , "ndabilpuram@marvell.com" , "Liang, Cunming" , "Wang, Haiyue" Subject: RE: [PATCH v3 04/15] graph: add get/set graph worker model APIs Thread-Topic: [PATCH v3 04/15] graph: add get/set graph worker model APIs Thread-Index: AQHZYgnYnYc9j7NJHkitReztGBZaL68R5BcAgADIgrA= Date: Thu, 30 Mar 2023 03:37:10 +0000 Message-ID: References: <20230324021622.1369006-1-zhirun.yan@intel.com> <20230329064340.2550530-1-zhirun.yan@intel.com> <20230329064340.2550530-5-zhirun.yan@intel.com> <20230329083526.1f0c62e6@hermes.local> In-Reply-To: <20230329083526.1f0c62e6@hermes.local> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=intel.com; x-ms-publictraffictype: Email x-ms-traffictypediagnostic: SN7PR11MB6775:EE_|DM4PR11MB6527:EE_ x-ms-office365-filtering-correlation-id: cfda3246-15cb-4fb3-2eea-08db30d00b8f x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: fBRANPFocjHIHY3y4ZcP+NVLoPBZpCv5FVMtlje86qJTbnvpWrx4LbHm1BcCQ+3rX+2YzMoJ6kJ5pFGgxij7UaJMkJ8V2qBSbuo2ZUv4DZuDhvlZtFR/lU89MF+3T+rqrmdfruI9AQcyLjz4DLKJCjw3qXIf3Lx3phsVYFUao1gmomqUJ7HnCDqbeBojUrs90tki14UOGasTO1pbiGTt9wq1egdC5Oc2NlmsPJta1Ss9vXqKIzpIFd4sz6f2Czd5DNV0JyEFAc3B/pMkBx8YZEs84hPbwuXsQibMlXBvZVFXKPvANM/l2Bq3QDjA+IbXH8Qh1ZW6TtooAbooSd+n0l/cfIYdcVxEwMun2p0x9m4PL6Vk3VlDF+XVHA/pdGsUs6cVhiL7EwocV6cVqoFn2slvLyXGZCyaSk4e9cnhGlC28d+HbYgUNCukr9jQhnH3ZpSCK6G9zFEI8q0HzDoXLMauAlQEg6xXWBVIeK4u7BRY0isXrKgs6t3GFHFKu1S3ETqXxE57+GGt6kQT6m+onyGJrHwXN3qI1uTJGl0oMUwmZ/87RR388BHOpGrOEy170fnTEM5tunM+kyCrvatHLPRJnP6H/CjpzNWlHGZACjb+bX/27lHPKRIcJsNAwG45 x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:SN7PR11MB6775.namprd11.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230028)(376002)(396003)(136003)(366004)(346002)(39860400002)(451199021)(2906002)(83380400001)(6916009)(76116006)(54906003)(64756008)(66946007)(8676002)(66476007)(4326008)(7696005)(66556008)(71200400001)(478600001)(38070700005)(53546011)(26005)(316002)(9686003)(55016003)(6506007)(107886003)(186003)(38100700002)(52536014)(86362001)(66446008)(122000001)(5660300002)(82960400001)(33656002)(41300700001)(8936002); DIR:OUT; SFP:1102; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?VbqrEQL29k6U70YnGX3PCDLBDptip237yso79qmcaWir677CJRfd+Axov3AN?= =?us-ascii?Q?ueuwfrYyZdtiqKXv8BrUyE586JkvS3qJOMG0Tv6htZOFzio4Oohn+BOM1ELy?= =?us-ascii?Q?oCg4dj+hT9KdACIlJMFmGVKq/yL69W9V9whnCK737LMjPw+sRwJ39nhFFJ2j?= =?us-ascii?Q?UTobIHIq0lY9CNdN9at79VyyZ+VtU0vwlibyn1kN38Z8o4mgcRm/45qFZMJz?= =?us-ascii?Q?6/GnnZcwBZi13wigEyZ5d9nFgnHUlrxHK+1eWNUrXoOmiN0jZBih8nUwjWjK?= =?us-ascii?Q?v4eCbEwaNFRORTUS1VXGQ59UvfgOah3bHhlPIaxfapqwreEUrp13wels+54h?= =?us-ascii?Q?6O1vtEzVIlGhpLJKMl3lKWpxjpc1mjKRgRD0ODkATr2wIw3D1yBht3ELyFWS?= =?us-ascii?Q?l2g/kg0FySOblJFvasvGgnhQ9xuKNMbJ2kR4qcSGt5bTR/fgeIJdh4WYNc7w?= =?us-ascii?Q?NFhUdzh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owmad7jn3GYZu?= =?us-ascii?Q?QBX5b8dtAujpmER/dniMUx0V2sZ+E83Buxq95dnsk/1mOF9NXDiK3mcZxcLU?= =?us-ascii?Q?G10GR5RTdoCF9DE3/+pyIvMry8AwM3NIQFrqEFeWMW/2roEPwt+l358ENVaj?= =?us-ascii?Q?QHiQxinFiMJiYMbVVm3GjCJS/3I8dqC2R5gTPxTODL+d17H/GBRi9cmBJ3VY?= =?us-ascii?Q?gO5KZd6xqsKApr1buzr4odHZdAb/+78LUrOOsgcl?= Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: SN7PR11MB6775.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: cfda3246-15cb-4fb3-2eea-08db30d00b8f X-MS-Exchange-CrossTenant-originalarrivaltime: 30 Mar 2023 03:37:10.7861 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 46c98d88-e344-4ed4-8496-4ed7712e255d X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: /tLQJ2+taXWb1icQnO1aFfGGlAC7f0M8hv4YLnBoHjOjzTefRKK/G/j3BRl8o8FI8VztsSmwRZwB/NmnCaD28A== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM4PR11MB6527 X-OriginatorOrg: intel.com 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: Stephen Hemminger > Sent: Wednesday, March 29, 2023 11:35 PM > To: Yan, Zhirun > Cc: dev@dpdk.org; jerinj@marvell.com; kirankumark@marvell.com; > ndabilpuram@marvell.com; Liang, Cunming ; Wang, > Haiyue > Subject: Re: [PATCH v3 04/15] graph: add get/set graph worker model APIs >=20 > On Wed, 29 Mar 2023 15:43:29 +0900 > Zhirun Yan wrote: >=20 > > + > > +/** > > + * @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. > > + */ > > +inline int > > +rte_graph_worker_model_set(enum rte_graph_worker_model model) { > > + if (model >=3D RTE_GRAPH_MODEL_LIST_END) > > + goto fail; > > + > > + RTE_PER_LCORE(worker_model) =3D model; > > + return 0; > > + > > +fail: > > + RTE_PER_LCORE(worker_model) =3D RTE_GRAPH_MODEL_DEFAULT; > > + return -1; > > +} > > + >=20 > Once again, this doesn't have to be inline, could be a real API. Thanks, I will remove inline in next version.