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 3CDBE45AAC; Fri, 4 Oct 2024 10:40:17 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 2B2594027F; Fri, 4 Oct 2024 10:40:17 +0200 (CEST) Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.16]) by mails.dpdk.org (Postfix) with ESMTP id 88EE140268; Fri, 4 Oct 2024 10:40:14 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1728031215; x=1759567215; h=from:to:cc:subject:date:message-id:references: in-reply-to:mime-version; bh=LnzaIUCQObvHqojwJiDo4BXM6OX21jyOjlrDc8Q6VfM=; b=UT++daqVBrNZkreeOAV+h878BpR+ePC7DB5AuGol3QAkdOh102RizcDg 4NIddT/4kGmKdeJzRe43rcsmewF3caIHgZLfVZjtsE7f1eqguNdOh3+lP r/MUmVO9S5ey/C/Umv7r5rFFHCRoD0Fwz6D1XlBAzqK7GsPv2dAC0ixNM tXsPHBWHi+v3VeX3p3MZWuLh/VmpVkevC3kmVTOHk8u/gm0c6+mvfUU7K vdqNEZhARRFWvzj/AANVTqrN7sNLqyiBJPcK4pRT2H3CeEBqLXX9Q7MkY UxJ5y1MW26lJKyIkl8XpTdPulPVNCPkBU7KeSZ+5/xuiRZ1xSw+wdkz8L g==; X-CSE-ConnectionGUID: sVG1puffRRKPLFTM+ig/Lw== X-CSE-MsgGUID: ejMQEtU8R0O4eFkfDXNaWg== X-IronPort-AV: E=McAfee;i="6700,10204,11214"; a="27337197" X-IronPort-AV: E=Sophos;i="6.11,177,1725346800"; d="scan'208,217";a="27337197" Received: from orviesa002.jf.intel.com ([10.64.159.142]) by orvoesa108.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 04 Oct 2024 01:40:12 -0700 X-CSE-ConnectionGUID: vcoSCBtnQtGLzBn/WJs1Rw== X-CSE-MsgGUID: T4gDWEtuQqygd8cE76rrdA== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.11,177,1725346800"; d="scan'208,217";a="105478555" Received: from orsmsx602.amr.corp.intel.com ([10.22.229.15]) by orviesa002.jf.intel.com with ESMTP/TLS/AES256-GCM-SHA384; 04 Oct 2024 01:40:12 -0700 Received: from orsmsx601.amr.corp.intel.com (10.22.229.14) 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.39; Fri, 4 Oct 2024 01:40:11 -0700 Received: from ORSEDG602.ED.cps.intel.com (10.7.248.7) 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.39 via Frontend Transport; Fri, 4 Oct 2024 01:40:11 -0700 Received: from NAM04-MW2-obe.outbound.protection.outlook.com (104.47.73.173) by edgegateway.intel.com (134.134.137.103) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2507.39; Fri, 4 Oct 2024 01:40:11 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=LhOqYW1onIotaaFG6b7MOeodmdb5fX50OzOAr/rWh4mqetgG3FZptySIP7rZjw6BtWTDtiPsMj/3xAJf3KgULtByxpXfV15e283g5Fce2VMULBHTpsTcgIfuopu3cbLuimwV8vdZLTUZ+9g55HDkflE/gyCuNjyUTJO/F6oeszbvcP7k8avCM+WRsLEftlL7FWdIsuzmesJ7XyF7Pic3MHtAIVxC1JLCnrseslwD0yMPcC2clHru/qP/6IVnALzFEb8xfGZQABg89MQp+AdhrvYETzXnGdSKJkjBMsfQNQZQvqv7i4txSzyaUaUAZRWGEdG4OZY8Vv/DeQTGng7enQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; 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=RFmUyFDgGtBI5LGRss/0nOSDa8uoxEGVX4e2u8KI6YU=; b=KC09o/Q5yqw3+CGTUsRwo8pIZLvhzqEVvMzWtrXULbeU5yckZxAFsEXKnWIKY3s2DCfuYUUzSoCqnERUyEBdFbTJf2wWcPAX6tMaN20ptuR2A/hGUDyE/vJ49pWjrbGpaLGFCBKgVnbz0w/T7vzh0jmIUytWSJ9KtgtohC3oD+jcLrZq/BKV8bDxIydyyRtGRz28kUTLUGahkgWba1Rvx4VUQPUZ9iTflwh/fvqhDPvMpLiO1aPhCirXJt6bwlQijQbUhDqEg6wfWefZnd7fw0XCHIraFOEEQ3ocuneU8wPS3OCijl89npMc9hay7g8BcAEJ0envLdOS/SI++PAZQg== 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 DS0PR11MB7458.namprd11.prod.outlook.com (2603:10b6:8:145::13) by PH8PR11MB6976.namprd11.prod.outlook.com (2603:10b6:510:223::5) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8026.16; Fri, 4 Oct 2024 08:40:04 +0000 Received: from DS0PR11MB7458.namprd11.prod.outlook.com ([fe80::1a9e:53a6:9603:8f79]) by DS0PR11MB7458.namprd11.prod.outlook.com ([fe80::1a9e:53a6:9603:8f79%4]) with mapi id 15.20.8026.017; Fri, 4 Oct 2024 08:40:04 +0000 From: "Ji, Kai" To: jhascoet , "dev@dpdk.org" CC: jhascoet , "stable@dpdk.org" , Julien Hascoet , Anoob Joseph , "O'Sullivan, Kevin" , Ciara Power , "Coyle, David" Subject: Re: [PATCH] driver: crypto: scheduler: fix session size computation Thread-Topic: [PATCH] driver: crypto: scheduler: fix session size computation Thread-Index: AQHazq3Xf2rObfSo10GhzEXIOljM97J21Jgw Date: Fri, 4 Oct 2024 08:40:03 +0000 Message-ID: References: <20240705073407.215867-1-jhascoet@kalrayinc.com> In-Reply-To: <20240705073407.215867-1-jhascoet@kalrayinc.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: DS0PR11MB7458:EE_|PH8PR11MB6976:EE_ x-ms-office365-filtering-correlation-id: f58540f4-2bcd-4c5c-f34c-08dce450246d x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; ARA:13230040|376014|366016|1800799024|10070799003|38070700018; x-microsoft-antispam-message-info: =?us-ascii?Q?hL+2RlmDbRGXg2JsH46WHeqfWn6qaC4D/W4vOYqXgvEHJOwf9KyLSbz6EpC5?= =?us-ascii?Q?nrVSppIaeL13a7l1gqskoEAsh4n9Cbqyb2AbwjgGgupFC1b+rx3sPUAKP/CQ?= =?us-ascii?Q?ApAyrkzbzjdZ2FeL+3qobF+3Fy5fG8aX1322rcT18lBrBXydNYZjAdfXKCP6?= =?us-ascii?Q?bIy5ZKp/TVbnnGeNSBbzkm1VAW2YcEld/pyfWPN/c5GX2NflpG+nHs5SJsv3?= =?us-ascii?Q?lB6M5QlxtZQtQJK8yvqZDd7NyDJfVNFvWIFGf1i8kvWDn3NF2MCPlMl0CfiW?= =?us-ascii?Q?ZMnWBzJIMMkFS5FZ7qStOqPKT2eDfKF5VboQMreVT4akkAySUvfBB54B4tHo?= =?us-ascii?Q?HEXJN4ZdJF1wGxzmuCtqqlksVScO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RkDFfbHgsiAtMrKas41V4eU2fnHhXEn7aW7Z6FqxegR+lyHJZyjr7?= =?us-ascii?Q?W22tv2W+4cANOVd15I60mRfGYAvdT+lROvd5ZDiF7sP8dQ=3D=3D?= x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:DS0PR11MB7458.namprd11.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230040)(376014)(366016)(1800799024)(10070799003)(38070700018); DIR:OUT; SFP:1101; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?OQuEkmVA/QUcwzkCUOTB/sEJlHi5JLBQ34CVAFgFCIu72jIdBfldjb/pxx+8?= =?us-ascii?Q?4WADonM9xRbVhmfgKE66JDWnpcYgDkwu8gKmQpyhxHn4+PeESlojCY1DXiSw?= =?us-ascii?Q?FpKQr/DvNHRbV/UNB6WrJe3sWybHGnxtOISI7m51Xe0Ta09iri90RGxyGU28?= =?us-ascii?Q?8gSA0V5XE+n99TybkeJO3m5J7iIw/5KdYTHq2vWl9RWSGYdi4KtdzauOeP+s?= =?us-ascii?Q?JRCqZ2nBkby0/IOVX6IfVfSvlPit28/sqhUBdqKdwKyMImwSfecITHkENurx?= =?us-ascii?Q?/rYAYtM1YNFPb9QVJ+e1IiuT6JAwon3EX4WAJNFhb5lmUFhGu40k6Lr3RAyn?= =?us-ascii?Q?1gT9D1lnQenVy0emwoBUZt6B0M5lkche2YnYcV9z3OwagpuExiybQOElPaNL?= =?us-ascii?Q?vtqrOoPJygT6kHpw+pW4LnooE4sbqbLvRXNTMvjGHrQ5Yn0ZHCppj4rKKYGT?= =?us-ascii?Q?J07CKQONtybtLbO44lyD4uju3/63sRcgbipzrGsB4vIyFYtQr4qgKcifKRM2?= =?us-ascii?Q?wMaSnRR15H20M1nCQy77/lssLfZbZ3mqXtT4rLP/+ScQ5jdoCSidV5G57zUo?= =?us-ascii?Q?fONCVGBx6j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=?us-ascii?Q?TkDDh3EcVom8NMfGXOgo7wnIGhCtXR3na5/KgRfilz/A2oMUVubjBrbIF076?= =?us-ascii?Q?ah4ouOFsXVkvWOR5GMtcruMQNWoagCKsBO42f+WF9nFkQExj3g2O4Q3PMfDY?= =?us-ascii?Q?MdGGQZQhwklH+vpGZPiSIr4=3D?= Content-Type: multipart/alternative; boundary="_000_DS0PR11MB745810FAB8CA634B5BE1468A81722DS0PR11MB7458namp_" MIME-Version: 1.0 X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: DS0PR11MB7458.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: f58540f4-2bcd-4c5c-f34c-08dce450246d X-MS-Exchange-CrossTenant-originalarrivaltime: 04 Oct 2024 08:40:03.8849 (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: /vmjKKk9oiMq3EEt57lUrQ4GbyMPMj/43mhVsoDyD+PajgdHNGOQ2HrMoTbjdozY+A5z0nfeadaYp/HmURWuoA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: PH8PR11MB6976 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_DS0PR11MB745810FAB8CA634B5BE1468A81722DS0PR11MB7458namp_ Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Acked-by: Kai Ji ________________________________ From: jhascoet Sent: 05 July 2024 08:34 To: dev@dpdk.org Cc: jhascoet ; stable@dpdk.org ; J= ulien Hascoet ; Ji, Kai ; Anoob Josep= h ; O'Sullivan, Kevin ; Ciar= a Power ; Coyle, David Subject: [PATCH] driver: crypto: scheduler: fix session size computation The crypto scheduler session size computation was taking into account only the worker session sizes and not its own. Fixes: e2af4e403c1 ("crypto/scheduler: support DOCSIS security protocol") Cc: stable@dpdk.org Signed-off-by: Julien Hascoet --- drivers/crypto/scheduler/scheduler_pmd_ops.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/crypto/scheduler/scheduler_pmd_ops.c b/drivers/crypto/= scheduler/scheduler_pmd_ops.c index a18f7a08b0..6e43438469 100644 --- a/drivers/crypto/scheduler/scheduler_pmd_ops.c +++ b/drivers/crypto/scheduler/scheduler_pmd_ops.c @@ -185,7 +185,7 @@ scheduler_session_size_get(struct scheduler_ctx *sched_= ctx, uint8_t session_type) { uint8_t i =3D 0; - uint32_t max_priv_sess_size =3D 0; + uint32_t max_priv_sess_size =3D sizeof(struct scheduler_session_ctx= ); /* Check what is the maximum private session size for all workers = */ for (i =3D 0; i < sched_ctx->nb_workers; i++) { -- 2.34.1 --_000_DS0PR11MB745810FAB8CA634B5BE1468A81722DS0PR11MB7458namp_ Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable
Acked-by: Kai Ji <kai.ji@intel.com>

From: jhascoet <ju.hasco= et@gmail.com>
Sent: 05 July 2024 08:34
To: dev@dpdk.org <dev@dpdk.org>
Cc: jhascoet <jhascoet@kalrayinc.com>; stable@dpdk.org <sta= ble@dpdk.org>; Julien Hascoet <jhascoet@gmail.com>; Ji, Kai <ka= i.ji@intel.com>; Anoob Joseph <anoobj@marvell.com>; O'Sullivan, Ke= vin <kevin.osullivan@intel.com>; Ciara Power <ciara.power@intel.co= m>; Coyle, David <david.coyle@intel.com>
Subject: [PATCH] driver: crypto: scheduler: fix session size computa= tion
 
The crypto scheduler session size computation was = taking
into account only the worker session sizes and not its own.

Fixes: e2af4e403c1 ("crypto/scheduler: support DOCSIS security protoco= l")
Cc: stable@dpdk.org

Signed-off-by: Julien Hascoet <jhascoet@gmail.com>
---
 drivers/crypto/scheduler/scheduler_pmd_ops.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/crypto/scheduler/scheduler_pmd_ops.c b/drivers/crypto/= scheduler/scheduler_pmd_ops.c
index a18f7a08b0..6e43438469 100644
--- a/drivers/crypto/scheduler/scheduler_pmd_ops.c
+++ b/drivers/crypto/scheduler/scheduler_pmd_ops.c
@@ -185,7 +185,7 @@ scheduler_session_size_get(struct scheduler_ctx *sched_= ctx,
            &nb= sp;    uint8_t session_type)
 {
         uint8_t i =3D 0;
-       uint32_t max_priv_sess_size =3D 0; +       uint32_t max_priv_sess_size =3D sizeo= f(struct scheduler_session_ctx);
 
         /* Check what is the maxim= um private session size for all workers */
         for (i =3D 0; i < sched= _ctx->nb_workers; i++) {
--
2.34.1

--_000_DS0PR11MB745810FAB8CA634B5BE1468A81722DS0PR11MB7458namp_--