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 17870433AD; Thu, 23 Nov 2023 18:11:56 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 060D842F03; Thu, 23 Nov 2023 18:11:56 +0100 (CET) Received: from mgamail.intel.com (mgamail.intel.com [192.55.52.136]) by mails.dpdk.org (Postfix) with ESMTP id 9FF8840A73; Thu, 23 Nov 2023 18:11:54 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1700759514; x=1732295514; h=from:to:cc:subject:date:message-id:references: in-reply-to:mime-version; bh=wQkuyHh7KM0IVyRlBon38D4iCjbnXwIcbxyal45hQ00=; b=aAqVq+p5zQmMUE+mRMgryWk+XykPzACHFQDxfX0nXOlRrsEuWz/rUitP q27qIRODytDeD9fVlYVAEYGGe3bAUw37OkrjrLob+exCw9yGhAGIAdmtL T8FwyHu9hQvWH7yyC/kFY/RM/G3szgn1UdBS8v9QtXRwYDWdX+yXhzr4x 9Kpy7iWkr8JIYmzPO9LiNP8Di6igDgmmnoJNpBY6b9vNlswYkI7eSprOp 3OF69ANbpoDui0xOPbj+tnR8CFic2cipbTMKZcM3Qe84bwYooxA3Ive/0 fHrs+AzxlodBn4Z0fV27qUKfgQhN1haV0KAUJLCE6o+vmBb5CWTSix7Ea A==; X-IronPort-AV: E=McAfee;i="6600,9927,10902"; a="371656336" X-IronPort-AV: E=Sophos;i="6.04,222,1695711600"; d="scan'208,217";a="371656336" Received: from orsmga003.jf.intel.com ([10.7.209.27]) by fmsmga106.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 23 Nov 2023 09:11:53 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10902"; a="717122416" X-IronPort-AV: E=Sophos;i="6.04,222,1695711600"; d="scan'208,217";a="717122416" Received: from orsmsx601.amr.corp.intel.com ([10.22.229.14]) by orsmga003.jf.intel.com with ESMTP/TLS/AES256-GCM-SHA384; 23 Nov 2023 09:11:53 -0800 Received: from orsmsx610.amr.corp.intel.com (10.22.229.23) by ORSMSX601.amr.corp.intel.com (10.22.229.14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.34; Thu, 23 Nov 2023 09:11:53 -0800 Received: from orsmsx602.amr.corp.intel.com (10.22.229.15) by ORSMSX610.amr.corp.intel.com (10.22.229.23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.34; Thu, 23 Nov 2023 09:11:52 -0800 Received: from orsedg603.ED.cps.intel.com (10.7.248.4) by orsmsx602.amr.corp.intel.com (10.22.229.15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.34 via Frontend Transport; Thu, 23 Nov 2023 09:11:52 -0800 Received: from NAM02-SN1-obe.outbound.protection.outlook.com (104.47.57.41) by edgegateway.intel.com (134.134.137.100) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2507.34; Thu, 23 Nov 2023 09:11:52 -0800 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=iIoQyz2V8kIAfhL6xcpHcBsfSRu962mTRnHwh3piLUmtlxv0g1xJjeYS0CPIAPqN94hLfZtLq186NRYvHeiHy0A40jgHUh8Zm9VVCjXUsdjpJWjCgJQo4/BpUFam9WmZBBk3H6v2lr7MgIcYC74omIZQLMiPfi1oSwtEChNfSEF21RdzQv39LOrvt+Cy9HyackV9iAYjHHpr6d9P4cnJi2O+YtjHPEJryNFF6a6YVNR310/4mVfgmfhaWaoSBNQZszK3K0LINT7P8+zK6OaI0i4guqRrg5yQNWb3FnjMFPpgx7PqHBbg7hQ9tlypdbM4t1rF2ujGKJq3ZPeXt+9bag== 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=wQkuyHh7KM0IVyRlBon38D4iCjbnXwIcbxyal45hQ00=; b=MRz7ssipchiucMPkKdB/0XNggwyWU9X4c2rV299rx92XixPTRh0BBz2V1enDnD+QSaRMeYQRObl8NkVDyDEWGZlw7osc9SxK8h09A9qHqhefWvfk0+3ifrsw2+X+bRXqTbyULEoC0RHdrGwk3opt9lI7vux1PBWDUi2a8fK8M5WEQC6bEHuemcquHgZjBZ5+cbFzRtZOPkYaHTPSi0MWda7wFPov+dB+YJhWqzkcE2DMlpPrS7YRUtS1rdiSWA1ffO4ZCf9HshVsFp/+xqhfXdYnlTIA8ZYS4yRGIjE8jeeMA0fJxU6lrYulmTY2rBzetTMDWFh23nycEMlB4IumfA== 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 SN6PR11MB3408.namprd11.prod.outlook.com (2603:10b6:805:bc::22) by SA2PR11MB4922.namprd11.prod.outlook.com (2603:10b6:806:111::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7025.20; Thu, 23 Nov 2023 17:11:45 +0000 Received: from SN6PR11MB3408.namprd11.prod.outlook.com ([fe80::33f5:4be5:6737:5b59]) by SN6PR11MB3408.namprd11.prod.outlook.com ([fe80::33f5:4be5:6737:5b59%4]) with mapi id 15.20.7025.020; Thu, 23 Nov 2023 17:11:45 +0000 From: "Ji, Kai" To: "Power, Ciara" , "dev@dpdk.org" CC: "thomas@monjalon.net" , "De Lara Guarch, Pablo" , "stable@dpdk.org" Subject: Re: [PATCH] crypto/ipsec_mb: fix getting process ID per job Thread-Topic: [PATCH] crypto/ipsec_mb: fix getting process ID per job Thread-Index: AQHaHi+ELLQDz7BB6ki/JrCCWOp8g7CII6EJ Date: Thu, 23 Nov 2023 17:11:45 +0000 Message-ID: References: <20231123170701.901946-1-ciara.power@intel.com> In-Reply-To: <20231123170701.901946-1-ciara.power@intel.com> Accept-Language: en-GB, en-US, en-IE Content-Language: en-GB X-MS-Has-Attach: X-MS-TNEF-Correlator: msip_labels: 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: SN6PR11MB3408:EE_|SA2PR11MB4922:EE_ x-ms-office365-filtering-correlation-id: a49b4fd2-c439-4ad4-d1fc-08dbec474557 x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: bynpZGE9IvCwY+KlSal9DfTPInluLgxpZjbPJqDwkW+7PhRsYgIutryvbazm2BoAUNkgGUCAnZtwG8fTlhGIaOI/bKzuTKcuF8sRvdL/r6q/UiCOM9zTjVwf0K5r0xc7ZVtqOlXS/GUGJQ0iHsv/c4/Tn8goM+8y+13wx6Ue7OkRAgdT6ManL5N97KV/+LVhNUMwXHaWxd0+x4oL6uslQt3FGhgn6hjx7wSp1t2ZqdrzfWpw/2qNxXJqs8FNCb/j75FYVObDe/0QHYdK3r2thDC7XSOONVkZdikZStM+iQgFxZ6ZoBI9TmkOEseJMyivI7Ed/FS2Iqo51FqBChpQA0ajKPm6tKE8YkUtA3pcoLqV4S77doISEZfOY3sL/b/9CuDbVo4x8wWu89nZc7F1uA5nP9YQaKwO6SVdAmn7nZfirmery66RAQzZxXIRBoy7arttIcgow7K6pDzuJxjaz9Z0SK4158M44XYhXH1R2zIlJoCY90BZIfuozQOHiIXopQb0b3KjetZSKupp3KkNw0CFYEkHF/TVFlEFXXUlh1MBmO+u9bMybmPD1k5t9/INYFK6uR44RK8CIorwbMNXPtSAinMm/9roPk44rMuCGmvUo/X9k7+gPjDd+YwRv8CZ x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:SN6PR11MB3408.namprd11.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230031)(136003)(346002)(39860400002)(376002)(396003)(366004)(230922051799003)(64100799003)(451199024)(186009)(1800799012)(5660300002)(53546011)(7696005)(2906002)(71200400001)(6506007)(4744005)(478600001)(4326008)(8676002)(8936002)(52536014)(66476007)(66556008)(66946007)(76116006)(64756008)(316002)(66446008)(54906003)(91956017)(110136005)(86362001)(122000001)(41300700001)(55016003)(26005)(33656002)(82960400001)(19627405001)(38100700002)(9686003)(38070700009); DIR:OUT; SFP:1102; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?iso-8859-1?Q?ChnSBqPLZxOFlJSfRCN+bUO2y9nc8enUeDu29bLK30WqxUCIu33tVCUO0c?= =?iso-8859-1?Q?uMYVDMwlpBkhD8yO8SiG0RsYiKMFuIscs7hMqBWnAjNazdMPhqAZA46B3l?= =?iso-8859-1?Q?c5GNZ0XRO0/IM+oScVLsZUeF36LHeI7JtTE07yJ6BMnHDJgtCfO4YYmpLf?= =?iso-8859-1?Q?ksIvUr2cGbhIwNKUBG49XHzl0jxlED+iOGUJbG3jyB3UJ5PcAOK60uFEnM?= =?iso-8859-1?Q?ZXAO0h05dacDqiIoW6TSmqxQBVH6AAQdiRhORwxWHKnQdvyL7Xx+ARa4ZW?= =?iso-8859-1?Q?GcMVGfi+qsY+GyfQ2jTzJaeO4e+BMy6p5UX7mcaRBN1O2BpM2ai9upBtYw?= =?iso-8859-1?Q?Ogbj5TINLwJVNlJzbvyiJfqsBY0Xb1Ch1Ok+LNp2ASwjIx9hm6z3SG0eG1?= =?iso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POrG1mtkpnhYfXlzxdr/jO?= =?iso-8859-1?Q?IsFaoXeUOz6gElKEhSvr2YMuH4EowvpYnoZtqLUWKvHDPJquWRoRjZwbFX?= =?iso-8859-1?Q?FgkeeKbvKopIQIYJqc02uM/at0gCpW1T5pL9nWQFkmSs5q/mkGYyg3jAvt?= =?iso-8859-1?Q?nZ4WY2+yJgE+RsL8tw3s8M/mRqnmnttf0ZSUFfH/KAzshHFNQM/IU+wd/g?= =?iso-8859-1?Q?0tlfheYtIa2ZReptVbJtn7hPe+VtZyp1nd/Au8rPsjfpvgjMuHaL+y8EaG?= =?iso-8859-1?Q?YklC6PsFn0HC09MkztOvAzx8mkyuE5eLA5JT5lRgCgH5atrEJNvLMTN42B?= =?iso-8859-1?Q?DqAdI1gHtZ6i4=3D?= Content-Type: multipart/alternative; boundary="_000_SN6PR11MB34085DC27F16A3E3501E94D181B9ASN6PR11MB3408namp_" MIME-Version: 1.0 X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: SN6PR11MB3408.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: a49b4fd2-c439-4ad4-d1fc-08dbec474557 X-MS-Exchange-CrossTenant-originalarrivaltime: 23 Nov 2023 17:11:45.3176 (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: O9WMhVfteg4+Tws1nfWJ2aVzuYr18NsmXJ04lj3vUPVu0bUUbPRJEFDIYZVgutHiKsjEb16zQNTwTFFjcuIuDQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: SA2PR11MB4922 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 --_000_SN6PR11MB34085DC27F16A3E3501E94D181B9ASN6PR11MB3408namp_ Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Acked-by: Kai Ji ________________________________ From: Power, Ciara Sent: 23 November 2023 17:07 To: dev@dpdk.org Cc: thomas@monjalon.net ; Ji, Kai ; = De Lara Guarch, Pablo ; Power, Ciara ; stable@dpdk.org Subject: [PATCH] crypto/ipsec_mb: fix getting process ID per job Currently, when using IPsec-mb 1.4+, the process ID is obtained for each job in a burst with a call to getpid(). This system call uses too many CPU cycles, and is unnecessary per job. Instead, set the process ID value per lcore. This is read when processing the burst, instead of per job. Fixes: 9593d83e5d88 ("crypto/ipsec_mb: fix aesni_mb multi-process session I= D") Cc: stable@dpdk.org Signed-off-by: Ciara Power --- -- 2.25.1 --_000_SN6PR11MB34085DC27F16A3E3501E94D181B9ASN6PR11MB3408namp_ Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
Acked-by: Kai Ji <kai.j= i@intel.com>


From: Power,= Ciara <ciara.power@intel.com>
Sent: 23 November 2023 17:07
To: dev@dpdk.org <dev@dpdk.org>
Cc: thomas@monjalon.net <thomas@monjalon.net>; Ji, Kai &l= t;kai.ji@intel.com>; De Lara Guarch, Pablo <pablo.de.lara.guarch@inte= l.com>; Power, Ciara <ciara.power@intel.com>; stable@dpdk.org <= stable@dpdk.org>
Subject: [PATCH] crypto/ipsec_mb: fix getting process ID per jo= b
 
Currently, when using IPsec-mb 1.4+, = the process ID is obtained for each
job in a burst with a call to getpid().
This system call uses too many CPU cycles, and is unnecessary per job.

Instead, set the process ID value per lcore.
This is read when processing the burst, instead of per job.

Fixes: 9593d83e5d88 ("crypto/ipsec_mb: fix aesni_mb multi-process sess= ion ID")
Cc: stable@dpdk.org

Signed-off-by: Ciara Power <ciara.power@intel.com>
---

--
2.25.1

--_000_SN6PR11MB34085DC27F16A3E3501E94D181B9ASN6PR11MB3408namp_--