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 081E045A67 for ; Mon, 30 Sep 2024 13:33:11 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id F0C7F402D3; Mon, 30 Sep 2024 13:33:10 +0200 (CEST) Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.8]) by mails.dpdk.org (Postfix) with ESMTP id 7914D4026C; Mon, 30 Sep 2024 13:33:07 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1727695988; x=1759231988; h=from:to:cc:subject:date:message-id:references: in-reply-to:mime-version; bh=43YKcsjpOQ+gnqrLi+NdoZKje8xvAa0tInUAzgnBv4Y=; b=IVLRWaRO0LBl5Vmy92mwFS9loP+O5g5rLRRc6iBqqu1tkvQCs2uAcgcC 9EyW/HWgF4p6cy2gst8zonmBUaZnELPJ3bgwLrEReQ7IJ5vFz3H9JMmRs oOeJwyBkGLFeP13KVqRYVtHldLmYclyidZV5MWl158ggZGf2BYXD5I5nw vuIGfwjUiQAwdEX8IHSezk6MLPzZBlYrpvjRdDq3cSEZEoPyZr+K4rqFw fD/6M3cRFSFVgz7peqUcIcBa+ieqT0AICh57qLR3Z0wzN0HRgkzP5Y/UX KrSCdtgwOb1QdfzoM+/SvA411hB5Mzxkd6cayPIxprjwFocNIbMBtSR2V g==; X-CSE-ConnectionGUID: xbktNGuJTvWX8rO7TUFXgw== X-CSE-MsgGUID: 7BrXAbSUSpakcnEGREXi3A== X-IronPort-AV: E=McAfee;i="6700,10204,11210"; a="44296936" X-IronPort-AV: E=Sophos;i="6.11,165,1725346800"; d="scan'208,217";a="44296936" Received: from fmviesa003.fm.intel.com ([10.60.135.143]) by fmvoesa102.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 30 Sep 2024 04:33:06 -0700 X-CSE-ConnectionGUID: eNByiKN7SDiL6CBgVF2amA== X-CSE-MsgGUID: af5PwKhIS82N9c8ARC/5KA== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.11,165,1725346800"; d="scan'208,217";a="77353778" Received: from fmsmsx603.amr.corp.intel.com ([10.18.126.83]) by fmviesa003.fm.intel.com with ESMTP/TLS/AES256-GCM-SHA384; 30 Sep 2024 04:33:06 -0700 Received: from fmsmsx601.amr.corp.intel.com (10.18.126.81) 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.39; Mon, 30 Sep 2024 04:33:06 -0700 Received: from fmsmsx611.amr.corp.intel.com (10.18.126.91) 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.39; Mon, 30 Sep 2024 04:33:05 -0700 Received: from fmsmsx611.amr.corp.intel.com (10.18.126.91) by fmsmsx611.amr.corp.intel.com (10.18.126.91) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.39; Mon, 30 Sep 2024 04:33:05 -0700 Received: from fmsedg601.ED.cps.intel.com (10.1.192.135) by fmsmsx611.amr.corp.intel.com (10.18.126.91) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.39 via Frontend Transport; Mon, 30 Sep 2024 04:33:05 -0700 Received: from NAM11-BN8-obe.outbound.protection.outlook.com (104.47.58.177) 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.39; Mon, 30 Sep 2024 04:33:05 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=lL/t4IAHO+nCTCHRPdxvjfOOW1nAJB3Rcpt5COC65mr/S/0ZuYBHmbFmJYpAKykW285babrdQxi5Ji7cQyPq8JP9xnI4oq5OCxqXnF5SRlbtxbvkQUCb4BMnYOWlinpPIRrGSrMKYbL1oqYLm7p3pesvHyXhoBmqA12nGKUpJBdHTIAKQOUSR3pDCbvJReyv1U6qrC+PjYq1dK/ufBCgVgtk/xkqY9AvH1xuKX6g8/9452YUjXw0XsmVUXIhMsAX9agZUX9uvaWIOaUiuexp65tnpdp3Co9la/dQakdSBTuGpLzQK4H44UP/6nsHnxt1TO30pE3pLclhO6FOv5zpFQ== 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=zdxwuob9sJ5VRecWNhBdjOC1r7KQWQ14GKGEQ2NdVHE=; b=dNFKkZQqYZ1cDPqHaH/UZGN3Y0vubFyxzW1ddN34jM0/jeK/K6bksi5HC4+ssUL+IrhIH4A/SwLR1voFRaNGaSW6hQnknlkeCWg+FgC0sO7U8Wc45Ll4yt9TQkGO3CEFYHdGerPsuzM6J/cZMYuoW6Sq8qpZdaBVIrBtWx3NMu6QP5JyTfeRIk9YjhY4DnusddQVv48yanLGWg7kbPnysoOFew/3TaoT0MKY0eSdTbMgnLRexVU7rFO3FavT61sZu27P2tanyvxDb3u1GHMWW54J3MxV3ZFK8CLo/xCjkLZ/Q1qp92qfePfg1AlG3ewEtUasdTMoCnWafVMOIcjyRQ== 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 SJ0PR11MB4861.namprd11.prod.outlook.com (2603:10b6:a03:2ac::9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8005.26; Mon, 30 Sep 2024 11:33:01 +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.8005.024; Mon, 30 Sep 2024 11:33:00 +0000 From: "Ji, Kai" To: jhascoet , "dev@dpdk.org" CC: jhascoet , "stable@dpdk.org" , "O'Sullivan, Kevin" , "Coyle, David" , Ciara Power , Anoob Joseph Subject: Re: [PATCH] driver: crypto: scheduler: fix session size computation Thread-Topic: [PATCH] driver: crypto: scheduler: fix session size computation Thread-Index: AQHazrZTvHtbjy5diEelSWOHvj7FvrJwu3Z4 Date: Mon, 30 Sep 2024 11:33:00 +0000 Message-ID: References: <20240705083503.218315-1-jhascoet@kalrayinc.com> In-Reply-To: <20240705083503.218315-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_|SJ0PR11MB4861:EE_ x-ms-office365-filtering-correlation-id: 4f79ef46-1b81-4a15-e8b5-08dce143a392 x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; ARA:13230040|366016|376014|1800799024|38070700018; x-microsoft-antispam-message-info: =?us-ascii?Q?Mbf6MobQtCWQZk60Bczj6qqUVxBdONraJNzYJlrYuh7re7Z6MlVZgt9i81q9?= =?us-ascii?Q?tX1arTPJMh9JS40+VP6EQD9Tu9ks+8qghzPIx3aHuUXqyiyCUGMz+7p8MeNg?= =?us-asc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WIlL+esCOAO9wB0zllPt?= =?us-ascii?Q?I3XjEUPXPiUF4m3JGrC9JhRDN1lchZsBo7kygJM2w36pDW7dA6Jub0t9gz5+?= =?us-ascii?Q?AyME7tjvA6M7D8tK2XSYkf4vi9yKyjZSbkc1ACG5E6r7YlP8Gi/Srhmd6EEJ?= =?us-ascii?Q?dprAggnHVWzVTmQ28QjlKCE1upEZjHTFYxOMKQhXnSb0tr3PgCK7ycL1sKOU?= =?us-ascii?Q?ZDy5x1XmUKakwg0n6SX+Bk5mX7dsRyLL6tdEw/DBknrFEOs37EeGF9xiFRb+?= =?us-ascii?Q?QyR0wF+ncHYbhgVFwXQ6WY7/p7zr+myahSxd2F1yw8CLB4+gIqx3n9yHScHG?= =?us-ascii?Q?5pFevDV+vFZ59vTaYs3ODOqAZFnuPqoONbE9QGK+KF0yUKJScGTuHZXACSC0?= =?us-ascii?Q?SgxHsGe+44gWkf/PG4OXPmGHWRxZ981cTkorGv43xwtJJVeCRg=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)(366016)(376014)(1800799024)(38070700018); DIR:OUT; SFP:1101; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?w5+FcZxXZPtV/ufpbFXtD6voyVzlGAW6xTvUF4DgxixvO+737mIFX1oAKjOg?= =?us-ascii?Q?f0mUBeQUcGWxMIYPwSavq/evWsfPFM4R0iQyP2a9unDIdMxmMNn3A4FY6sC1?= =?us-ascii?Q?xP+UFn3oD/Z0C5afujF03MUEw9mcN6fvARlYbmNeAiRuaNbdK1qymhdMUyn7?= =?us-ascii?Q?uQmw4yPIJxisKIEJYuo+vH1s/hHailzRy8aJJj2w+xN1h+CCViW+JWsVuITK?= =?us-ascii?Q?lH2lQNgRyg0RHkDs7wagkM2iprOAVX7E68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VQuDzQgKGCq9ImoHkJcZKM63p6kZ6jLPTSlPaOCpJJAKYV/bhz9286/?= =?us-ascii?Q?f19CnBYN2DqJgjusz1emh3CiELQ5K0b5dObplIuGficSSDGJqDEQ8+C9O2Z6?= =?us-ascii?Q?gb3zfuC7dZJJUkDeShcJDInMl0FTpPpHF3uLg12z1jh0ZaO0xdb7lF9ZPRri?= =?us-ascii?Q?w+ODFIykTJFqlBbZQMi1f8Z6ptCtUgSyaPQNpyhYWiWie/6ZyL880ucIevNB?= =?us-ascii?Q?ijXU8hkkw0UH6toVfrpseQVYx33YEZNb690sx5WfdFCkSmnMz1qpXiW2Os9w?= =?us-ascii?Q?1BZ5BrYNGweSV+J6ufQKlcaJyK8XfeJa0HLbSP0CC9yR9dgqy56jFwR3imJc?= =?us-ascii?Q?osqtAdbrD96e6N3V/Vax3USYzU9G7abG/UMKk9TcZKN36BM5Yvv/jF9dZt95?= =?us-ascii?Q?PURWzncJgwewmKabFQE=3D?= Content-Type: multipart/alternative; boundary="_000_DS0PR11MB7458A0FDB42386627AA4AA7A81762DS0PR11MB7458namp_" 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: 4f79ef46-1b81-4a15-e8b5-08dce143a392 X-MS-Exchange-CrossTenant-originalarrivaltime: 30 Sep 2024 11:33:00.2745 (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: XlnJXnkjOUtqWyD4KUb/LUK4LYhFH289KERS66kWIYQ1OdByqG+qjhPWi8OLLZAUYtG7ZiltVjaJ7WQIIdCjcg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: SJ0PR11MB4861 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_DS0PR11MB7458A0FDB42386627AA4AA7A81762DS0PR11MB7458namp_ Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Acked-by: Kai Ji ________________________________ From: jhascoet Sent: 05 July 2024 09:35 To: dev@dpdk.org Cc: jhascoet ; stable@dpdk.org ; Ji, K= ai ; O'Sullivan, Kevin ; Coyle= , David ; Ciara Power ; Anoob= Joseph Subject: [PATCH] driver: crypto: scheduler: fix session size computation From: jhascoet 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_DS0PR11MB7458A0FDB42386627AA4AA7A81762DS0PR11MB7458namp_ 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 09:35
To: dev@dpdk.org <dev@dpdk.org>
Cc: jhascoet <jhascoet@gmail.com>; stable@dpdk.org <stable@= dpdk.org>; Ji, Kai <kai.ji@intel.com>; O'Sullivan, Kevin <kevin= .osullivan@intel.com>; Coyle, David <david.coyle@intel.com>; Ciara= Power <ciara.power@intel.com>; Anoob Joseph <anoobj@marvell.com&g= t;
Subject: [PATCH] driver: crypto: scheduler: fix session size computa= tion
 
From: jhascoet <jhascoet@gmail.com>

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_DS0PR11MB7458A0FDB42386627AA4AA7A81762DS0PR11MB7458namp_--