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 563C545594; Fri, 5 Jul 2024 10:30:14 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 4932F410D0; Fri, 5 Jul 2024 10:30:14 +0200 (CEST) Received: from mail-ej1-f49.google.com (mail-ej1-f49.google.com [209.85.218.49]) by mails.dpdk.org (Postfix) with ESMTP id 66D564029C; Fri, 5 Jul 2024 09:34:40 +0200 (CEST) Received: by mail-ej1-f49.google.com with SMTP id a640c23a62f3a-a77c25beae1so115446766b.2; Fri, 05 Jul 2024 00:34:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1720164880; x=1720769680; 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=VDL9MFmr7423o7lIpdMwvKQNx9ukyTMahD37VxqOzlY=; b=YHM+nlwf7ZcnmBTx44ddDH1OHPUG2yHNemcqY6UbHOudToiwNKFq7WleIQxgILrYH3 pYSW/ZMQK7ZqsCl+TZsKwGydGmjBXmisr08nIwytIvieStfigZ5U0vK+CjCsdTnRn+BC CrSDv8CnmYwNHSc5AqHvm3JCKD2QHXf2ZxGVXpKXYVx2mYFhe7mfQiIBpO/dBkZfPE8n ucuTfBAh10rpji7I3ljhtZENpezQgm9ZSy7XGImTfSHVnWuwryBRrYemRSzFvkRc7t2l N0oY4Fg9fefXwi6mmEM7IlEowb53S+OixdWcMJ9zK06iFLshjyWqW/vZNX9lT1oo4JK4 +1Yw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1720164880; x=1720769680; 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=VDL9MFmr7423o7lIpdMwvKQNx9ukyTMahD37VxqOzlY=; b=pak+3tG6lbzozOJwCZstH+dsVp+zV5JxX6Lh2ut+ktYLK5y1MnFlw8stTKRaPXLWpG oux4hf0v5dvSnYl/IKmTDGUloZpplORMkpqncV2tD7HVnBdW3MzPFrjAM0vQ+6pEzrmf h+7gH2ZYHK4lzCyplzBLVwL1alKUjMzAiKnCReC3mxemyPw+mzc3fsgcotPJBfwbJVOt SSC1TEYRas/HqwmeNykQovaHdPeUhfHddyTpFNgj24yoORd/jrQ8zPoCxWzR5vN02aT9 AJbwK7Z0SNw3ixy9nCNLyQdkUmIoAOZ25tmr3cRify3uc4Px7dkoVj4gQPvBNehhlfE0 m72Q== X-Forwarded-Encrypted: i=1; AJvYcCVGTS/Lyjn8fI1LxKYWga4Dl6oH1duXKE5iMq/0yRF6CW2K6eurOikfkk7eU9QDzLbFd6glyZEqLYm7WIuYSgA= X-Gm-Message-State: AOJu0Yx2BMbBON7Wm3gbFXsyk7GRkwncMvxzGsM1D0v9sAE89ff2kGr5 bnAinWVVzv6ss5B2mXiai2hwjlSEihoz7vgWMNN9fIwdEgRzsm0HewA5iomJ X-Google-Smtp-Source: AGHT+IGh9tTy7bPEoxLAJbybkyhBPDiaPa6uJ2QyvIpaj56YSOQMxJqVQjD12fVyot4n19YeIbNcWA== X-Received: by 2002:a17:906:179b:b0:a77:d7f1:42ea with SMTP id a640c23a62f3a-a77d7f14765mr27494866b.45.1720164879693; Fri, 05 Jul 2024 00:34:39 -0700 (PDT) Received: from ws2411.lan.kalrayinc.com ([217.181.231.53]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-a72aaf638fesm655836866b.68.2024.07.05.00.34.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 05 Jul 2024 00:34:39 -0700 (PDT) From: jhascoet X-Google-Original-From: jhascoet To: dev@dpdk.org Cc: jhascoet , stable@dpdk.org, Julien Hascoet , Kai Ji , Anoob Joseph , "Kevin O'Sullivan" , Ciara Power , David Coyle Subject: [PATCH] driver: crypto: scheduler: fix session size computation Date: Fri, 5 Jul 2024 09:34:07 +0200 Message-Id: <20240705073407.215867-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 10:30:14 +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 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