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 C795145549 for ; Tue, 2 Jul 2024 13:59:47 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id C1AAE42D27; Tue, 2 Jul 2024 13:59:47 +0200 (CEST) Received: from mail-wr1-f42.google.com (mail-wr1-f42.google.com [209.85.221.42]) by mails.dpdk.org (Postfix) with ESMTP id 9AAA1402D2; Tue, 2 Jul 2024 09:51:05 +0200 (CEST) Received: by mail-wr1-f42.google.com with SMTP id ffacd0b85a97d-36733f09305so2104665f8f.3; Tue, 02 Jul 2024 00:51:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1719906665; x=1720511465; 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=SgV/zL8XzHlB3KUXf0uCxzQCxas9TiLb3uPavYO5LuQ=; b=HgYHFPmdF1Y1Q3KxiuZB1s1CgorRFiP0AaQA9h9Iqv41qalYumSJNnOkl4xPtt1E+l TnoN/ADr9OGjLf37rMnchzNs9ZlvxhEQc9RJvmR+5kzcMZo9DEZAYYL1ZiU6JkbSjyfX FM8vxhASUeX4sfURzQ2/5AK5iDhUltYQKGPxfz97NgvuGGL6TtffhNn/V5E2Y0mbUq1k ZBQpvsr2bWrS94JmkPJquu1POPcr0VhIvygZD1KtrJMOlqDQp/On50JkDGcAEm9/+mt0 wOfWMcuwrpuKn5C7zNKcgZ10GuA88gEfbmxwFLTWf9GcqG0tHiB4j/yms4nAxdSq1FBm C00A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1719906665; x=1720511465; 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=SgV/zL8XzHlB3KUXf0uCxzQCxas9TiLb3uPavYO5LuQ=; b=a42YCT3XED6Vu+G0xZP3IfP0MpQRiybbBaSR1bbDddZjA+KWu9X5NeKIvjzgv/Cn3O K965kNLZB9aatnGVSbVynau0g3h/I46UkmUU4SecDY3hvqucr00+5FNUuULoPejLoKoy oOYUjFI+sLQkW5oRlQtmEiy3et0BBDPBCvH8QerVbdjGNtDTGbWpfFoZphQha3Ut+GzR P9h3UXI/+eZSD1BmriZ/TtROL3lE+PYcqdvc2iUmpHhy+RyPyW5YqjE8uBZYnyLKRvTI SkD5aied9v0Ebt88izRUkURO13AEpkxH3KUXbsaAMhfvGQFaW8xnvj9GVeA7CJiN95Yg h0Qw== X-Forwarded-Encrypted: i=1; AJvYcCXlvSLM7VX10geSSzJICOCpkthAZe4V1AqfzqeJGu6xV7FvMHv+r5RE2DXERn6UcdNdRYDbDU7zo7MWEHm/BhU= X-Gm-Message-State: AOJu0YxUIcjwadCq4mVpkj28fRjzAoNJuYai+2vtdkSPDRZmFmnP8PPY ZFGgVjfMdzADG0EFhhYhew5e0Saqqu5Gbnh+AaA80fFiT5JJwMh1MB01tKOe X-Google-Smtp-Source: AGHT+IER0L4/IwU65gn5a9satavS0nl8kSJA0TVGeal0mNbd0Ncc+DJQAH+s5Qjme8QZy2SJKI8t9A== X-Received: by 2002:a5d:6d8c:0:b0:367:1a39:e323 with SMTP id ffacd0b85a97d-367756bb528mr6074580f8f.31.1719906665008; Tue, 02 Jul 2024 00:51:05 -0700 (PDT) Received: from ws2411.lan.kalrayinc.com ([217.181.231.53]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-36789a02631sm712766f8f.1.2024.07.02.00.51.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 02 Jul 2024 00:51:04 -0700 (PDT) From: jhascoet X-Google-Original-From: jhascoet To: dev@dpdk.org Cc: jhascoet , stable@dpdk.org, Kai Ji , Anoob Joseph , David Coyle , "Kevin O'Sullivan" , Ciara Power Subject: [PATCH] driver: crypto: scheduler: fix session size computation Date: Tue, 2 Jul 2024 09:50:52 +0200 Message-Id: <20240702075052.1697714-1-jhascoet@kalrayinc.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Mailman-Approved-At: Tue, 02 Jul 2024 13:59:46 +0200 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 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