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 6948F433AD for ; Thu, 23 Nov 2023 18:22:13 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 5F63542F5B; Thu, 23 Nov 2023 18:22:13 +0100 (CET) Received: from mgamail.intel.com (mgamail.intel.com [192.55.52.43]) by mails.dpdk.org (Postfix) with ESMTP id 0C13A40A73; Thu, 23 Nov 2023 18:22:09 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1700760130; x=1732296130; h=from:to:cc:subject:date:message-id:references: in-reply-to:mime-version; bh=TDO/7+lwCzYAv3C3fw7kDYrAgA2wAww7tZKLNIG8y5c=; b=JeX81BMD9WiY24jIDC82vJ9cvVUiUvTiKaQLDasnI8KIpM7xXkFa3sAd qFa4spsx+ZmL1MWXPk07UH9w6iywHQfFRsH1nb1Szviak4Zy0094r0Suw kN1nC86adZ085DfXtZpgY1/Cqzwl9/rw+xCRdoY70pxBQlg9BZSfZH/Fh NePGmB2lrZgEYtI8hXUzoJ5oF9JEurlisyPxDDCnKyjpl1mTqMOyrIjRw 5oISqO6KiQ0Mvq9EHDzwchCa5V++JjW74rHlh3sGrA7Av0SDKe9RI9wKT XltsjaA242bUtYepB6EtZ1Gx2WrqGI5IND7l2t7Bnu2MYa5IzPAOoXR2Y Q==; X-IronPort-AV: E=McAfee;i="6600,9927,10902"; a="478502644" X-IronPort-AV: E=Sophos;i="6.04,222,1695711600"; d="scan'208,217";a="478502644" Received: from fmviesa002.fm.intel.com ([10.60.135.142]) by fmsmga105.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 23 Nov 2023 09:22:08 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.04,222,1695711600"; d="scan'208,217";a="8907524" Received: from fmsmsx602.amr.corp.intel.com ([10.18.126.82]) by fmviesa002.fm.intel.com with ESMTP/TLS/AES256-GCM-SHA384; 23 Nov 2023 09:22:08 -0800 Received: from fmsmsx612.amr.corp.intel.com (10.18.126.92) by fmsmsx602.amr.corp.intel.com (10.18.126.82) 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:22:07 -0800 Received: from fmsmsx601.amr.corp.intel.com (10.18.126.81) by fmsmsx612.amr.corp.intel.com (10.18.126.92) 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:22:07 -0800 Received: from fmsedg601.ED.cps.intel.com (10.1.192.135) by fmsmsx601.amr.corp.intel.com (10.18.126.81) 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:22:07 -0800 Received: from NAM12-DM6-obe.outbound.protection.outlook.com (104.47.59.168) by edgegateway.intel.com (192.55.55.70) 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:22:07 -0800 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=mXaFDdWwg1sqepdC4xmqtnllD/7WpPSVZMBf9uJmzCPZ8htSt2HW0SfzDkQvPHf/Q2HBjepo98HmbqeukVH6lqDFBVGTV2zmZjaHJGOeDPDmuMBsVmo0N5EIgIhSukKv4N+AktwgLk6HlqCiFKPxuuGmh2n7/a/vpfAR1o2WEmUjgjBQhdXtVeb7nmG+Wq7DrBzYeEFkj5495Jo+qio6DknmWzx4MUJ+FppKdaZQwdNnvNYWUWYgraT/JSIEXDBGfZfjJRPOm/3SBnZzDeG1MEhYSiSdwj52o42dSbSFoXQaOiy9ri6cY7HfCOFFU5pOjZv4ktOAkpCba8UEYd1SwQ== 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=TDO/7+lwCzYAv3C3fw7kDYrAgA2wAww7tZKLNIG8y5c=; b=jMK29z0jbZgWPhx/llHTLJWooTvuSiPX++RYvUoKBEvImmYHhm3hfh8PYDqo/M7QXH0lCwClP60MZxAy2dOYr0aquX9GvGSNDdlA+RiDXsRiMu3b19MedThOTXJoQ009lq/4sSr+g+Uw99MtfPvoVokmAvqAsmC40X/VUUrL/5lyVEhE+nZ/ookocijfUZXV9iLTTcQ4+Fsro0/86E3cxNP/u+OvXEsM3y5+ZemNq4l5EWRzCb2I+4CAQcwRUIM+9P+RDy5h3l2Ob4VCDhV/bO6LXS+VrRHAQX8HEO3qh0Ag7LGN3oHJmcKl4KN1F5AtDUd5F8Zpiwj3vGQYwm7paw== 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 IA1PR11MB8149.namprd11.prod.outlook.com (2603:10b6:208:447::7) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7025.19; Thu, 23 Nov 2023 17:22:05 +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:22:05 +0000 From: "Ji, Kai" To: "Power, Ciara" , "dev@dpdk.org" CC: "thomas@monjalon.net" , "De Lara Guarch, Pablo" , "stable@dpdk.org" Subject: Re: [PATCH v2] crypto/ipsec_mb: fix getting process ID per job Thread-Topic: [PATCH v2] crypto/ipsec_mb: fix getting process ID per job Thread-Index: AQHaHjC8NFwWs3SwUkOSfIae/HJ9OrCIJmN8 Date: Thu, 23 Nov 2023 17:22:05 +0000 Message-ID: References: <20231123170701.901946-1-ciara.power@intel.com> <20231123171544.906577-1-ciara.power@intel.com> In-Reply-To: <20231123171544.906577-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_|IA1PR11MB8149:EE_ x-ms-office365-filtering-correlation-id: c3ca1a95-d139-4bbf-4bb4-08dbec48b6c0 x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: LaJcf18c8jLk36ay11HB1CjqTE6W+pkMyDzI7xJTl+luzYvM2iD73kcm9Qqq7zgb3AoR0QsgYF2jtoWaxeLLnSVkkD5sehhn+Qv3hvcZuyvoqd4M/7Z7w4zRnJn6Vj2BVdp4N8Zi83kqTQs8ktDF9A84HX3cxpJ6geWTg3/EDP8dOS3gEY0pnk4UBFV8/puuUu6KgmUJbabb/ny6RIvUD/7dR0W+ULsnMcu5rLz0S/bmwexSPJ05p94SGh5eJmzmX+YmZRzUdG2ecw+Q2jfOUezkAuXpbHR1a7x08OcPR1h9z159Z6Tue8lAayBQkiBW0aHhB2NEWCT5fT/KP+KO5d1K06HAA3m8tcGqwSP5aOh/+k+38dC20im1vFkyczyEVRMQ7n01p4JR2B/cxYdXazDdzD6uKAljZpDjwMHdFxgBTU5cyyd+cTqLzXFgWNV7yYXFy7pGKPPIyiOXYTKe0oQMXgu0I19RDLHmhLU3FM3ileNQmO3mCVVa0pwWbd1stBDSW77TuQTvaEGEVUex1aKHw08Ob7TpI7gqqhduqIm1uNiUr9GRVZrmWByVZzwKpKOIJqrtIpogSZXk0NInvmeSSj4v06I/pnaVd2FuIoiH7L/X0hDaWHq+DPU5ve0Y 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)(366004)(346002)(136003)(39860400002)(376002)(396003)(230922051799003)(451199024)(1800799012)(64100799003)(186009)(53546011)(7696005)(6506007)(5660300002)(4326008)(71200400001)(8936002)(52536014)(41300700001)(8676002)(316002)(478600001)(26005)(2906002)(4744005)(9686003)(91956017)(54906003)(110136005)(66446008)(66476007)(66556008)(64756008)(66946007)(76116006)(33656002)(86362001)(38100700002)(82960400001)(122000001)(38070700009)(55016003)(19627405001); DIR:OUT; SFP:1102; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?iso-8859-1?Q?UrUdSHi4R/dfDlfKV0zOgVncf2HQQcvpNZHwRGs8R723ysa4qZfgCddoA4?= =?iso-8859-1?Q?KnD7+g4SBJmsUfbKiuUcbHGMetz4Nai5hTpxGza0itGMuNscq4mua91DRl?= =?iso-8859-1?Q?+j+/pPNhSXS9srWwOPbe+K4JiAQnBKD+/73KzZBVBZRpXA0LEX22i2qbcZ?= =?iso-8859-1?Q?bAFiHhlcFxMpn5wO+vDu7xdVXtK4Vms3vMBxeC1IGt8EH1qRWomMqM9WVu?= =?iso-8859-1?Q?zs+gMG11rOuGh22Nni4wXBH+0A9slbkUFyko9VeKsdZkSMZ4ZVLZ3QBXpf?= =?iso-8859-1?Q?cCpuvBJy2gcbqQqKtkQMURci5qGVIkHQL5GDnbKzD2Ycxys4cXQQKWgzm3?= =?iso-8859-1?Q?QjpHZeW3DW/QftNIYssnYQ9bgMk5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kF4sXWXS6Ak0/LIc29HbT4+fRA8ZW/h0S9xOi75SWXTKiGP73J?= =?iso-8859-1?Q?LYMD7e2ULeYlqEkvzaEAu8HwUWw9E/xgo5HIe//SOKKXm5UdNhxdO29+2v?= =?iso-8859-1?Q?bI4OrcrTthRPbQPQoBrYbar7GpTHGSSPpGPSqXhEWx0SbXTdZSUmPv1Div?= =?iso-8859-1?Q?GUHdTsE4PMvplmDBnSa1yGnbikTtMInY1BzS7X2XAVAf3onTtw8yVtVNG3?= =?iso-8859-1?Q?OCzBAVf/Rps5kX5seC21STFYJR2DFPURpRxPO08KR/ramiiCpQWGnL51NY?= =?iso-8859-1?Q?4L2pQBgFL75L+qVJbjxsvGkER7y3B/gc5y28WhTPBj4XAopYfolIJN/iPk?= =?iso-8859-1?Q?hP6q9VBl/JSFc=3D?= Content-Type: multipart/alternative; boundary="_000_SN6PR11MB340841410E17AD82B683BA0A81B9ASN6PR11MB3408namp_" 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: c3ca1a95-d139-4bbf-4bb4-08dbec48b6c0 X-MS-Exchange-CrossTenant-originalarrivaltime: 23 Nov 2023 17:22:05.0800 (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: y1+yWAzdGS37N/AtnsdbFfHExptp6ngibTxoWE6THDXWy18A0KxQogyQNtMx8ntfcpV+9CD3ISwNsYE+IG7Xcg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: IA1PR11MB8149 X-OriginatorOrg: intel.com X-BeenThere: stable@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: patches for DPDK stable branches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: stable-bounces@dpdk.org --_000_SN6PR11MB340841410E17AD82B683BA0A81B9ASN6PR11MB3408namp_ 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:15 To: dev@dpdk.org Cc: thomas@monjalon.net ; Ji, Kai ; = De Lara Guarch, Pablo ; Power, Ciara ; stable@dpdk.org Subject: [PATCH v2] 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 --_000_SN6PR11MB340841410E17AD82B683BA0A81B9ASN6PR11MB3408namp_ Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
Acked-by: Kai Ji <kai.ji@intel.com>



From: Power,= Ciara <ciara.power@intel.com>
Sent: 23 November 2023 17:15
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 v2] 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 sess= ion ID")
Cc: stable@dpdk.org

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


--_000_SN6PR11MB340841410E17AD82B683BA0A81B9ASN6PR11MB3408namp_--