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 5882845599; Fri, 5 Jul 2024 14:52:41 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 25AEC410ED; Fri, 5 Jul 2024 14:52:41 +0200 (CEST) Received: from mail-wm1-f52.google.com (mail-wm1-f52.google.com [209.85.128.52]) by mails.dpdk.org (Postfix) with ESMTP id DD36140FDE; Fri, 5 Jul 2024 10:35:07 +0200 (CEST) Received: by mail-wm1-f52.google.com with SMTP id 5b1f17b1804b1-424aa70fbc4so9453315e9.1; Fri, 05 Jul 2024 01:35:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1720168507; x=1720773307; darn=dpdk.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=UpBJGfl0Rz6ggCWEuCG4uEte3BEjbDsO3APo5lQ2Eug=; b=cokuZ9uwe7771m3Bv7Uw8Ad/LEmu2AAGWUJstSt1bE2wNKUOzKn+qKi68yq58zAtyd BesPqojl0NujGuN7r/4TpkSCWNFoVboFCJG5WQyTcfAtlx/nECH4JD5JvIIIXjcikheK Ab2GZclwUXrulKD4FjcFrjM3GXJLayHSXuLHE5k4Z9yXDWor4s5odp3faM6ygoZqcMIi e/TQi7jtyj4dzqIsYye49StFtYEFsmpQkyfAAKfdIT1fRmRVTlNPMKt6kDVLAsZz0fWc oDD1OLnZuD3SuDCQwrW+CTZiUHNvs/W4bUQULhJ7UNs7oV9tYZwmEDrlp665Wp0CWdGu PX1w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1720168507; x=1720773307; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=UpBJGfl0Rz6ggCWEuCG4uEte3BEjbDsO3APo5lQ2Eug=; b=FVD3MPECzId2PDaMJtaqSQUl3CahWC9Z21VTPjddn6SKjxKlyEnfzAHpD0apCvehFf NEj6+gfZ5NE7tZ94JpmhBWKaKXUnZUu+gTmAKFuch27cWBVDcFXZxtbMhsYB9gfT136f FtMRzbqhCgB6bzd42O3MXzcM8VXzhcpCbDb6bzgyzdEB+O3rnxp8/404qOIoj36vE99f b9XmCSRM1ufZAH9P9LgXr4QaAl7K46I98C8Tr96HBHRXI2hYUiq3/P54dA/VQpf+NQKb Rrx5EnVHgAkISDf92QeEi2By4rSeLqZT0rZFrThXrpTtmnd7/XA90XuxgK1AMukSnCrO tYxg== X-Forwarded-Encrypted: i=1; AJvYcCXKOLxsxGga0PyoOA5KO4RAQE5Vqw7iWbzHblGerKm87NJ9amZDslq4mKwCEDOQqkU0Zfij87yMH5EyBDfgw6c= X-Gm-Message-State: AOJu0YwK0iqaYuxFMDZFGZlTbYAfE+dc7QOm1XW+S8CghstoIpbHvcwP 5RSKlB8POJeAGkj19X0XGE8nXruevdJt1PisPQUL+Im2IWjpq6rQB1wTteMN X-Google-Smtp-Source: AGHT+IGHDEA2fD3yY01l4poyD/wcS+yzsJ2z0RaL0UZGyQlqbvUJKXvfBJpkNFnr3M1tZ+grOBF7Pg== X-Received: by 2002:a7b:cbcb:0:b0:426:593c:9361 with SMTP id 5b1f17b1804b1-426593c9448mr3563225e9.26.1720168507243; Fri, 05 Jul 2024 01:35:07 -0700 (PDT) Received: from ws2411.lan.kalrayinc.com ([217.181.231.53]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-4264a2fc49fsm52012465e9.39.2024.07.05.01.35.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 05 Jul 2024 01:35:06 -0700 (PDT) From: jhascoet X-Google-Original-From: jhascoet To: dev@dpdk.org Cc: jhascoet , stable@dpdk.org, Kai Ji , "Kevin O'Sullivan" , David Coyle , Ciara Power , Anoob Joseph Subject: [PATCH] driver: crypto: scheduler: fix session size computation Date: Fri, 5 Jul 2024 10:35:03 +0200 Message-Id: <20240705083503.218315-1-jhascoet@kalrayinc.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Mailman-Approved-At: Fri, 05 Jul 2024 14:52:39 +0200 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 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 = 0; - uint32_t max_priv_sess_size = 0; + uint32_t max_priv_sess_size = sizeof(struct scheduler_session_ctx); /* Check what is the maximum private session size for all workers */ for (i = 0; i < sched_ctx->nb_workers; i++) { -- 2.34.1