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 A5D2F4555E; Mon, 8 Jul 2024 15:12:32 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 36CBC40E42; Mon, 8 Jul 2024 15:12:32 +0200 (CEST) Received: from mail-lj1-f175.google.com (mail-lj1-f175.google.com [209.85.208.175]) by mails.dpdk.org (Postfix) with ESMTP id BCFFE40FDE; Fri, 5 Jul 2024 14:58:01 +0200 (CEST) Received: by mail-lj1-f175.google.com with SMTP id 38308e7fff4ca-2ee98947f70so2798641fa.1; Fri, 05 Jul 2024 05:58:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1720184281; x=1720789081; 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=OX5Ru0MVvuGOXwbRMCCbpD8KOdjugb9/0R61OMPUZH0=; b=ikkpiNpf2AZ0O1VzRxZ31Xh94X1ZQ/awPx34QY6tKGIHsJej6OLk6AgFrTRofZCmGS lDUliSLtGv69B3km+BvafzpbNGeF06WVq8wMluMax8p6TdYzIYnuFyWTQEiOCe36svfl BJ7K/vcLEvF75OoabNLU4Bw0jwgA3K6jTf65HD9BWsW5sBuO/Fc7UTC4dpbiQ7pk7tp3 BnqYCxyWcEdthskXw8EUOXad5cQVoIwBrWnmHEqGuhDVS8h/ZYfIlyhWKjQmXW8n6jfO VRl5ktYYLXboWAx3whOoldGUJH1uHeIggfIjTQFKz5wmp1ObMFQyxfk4ByjrBvdz5LyP v9iw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1720184281; x=1720789081; 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=OX5Ru0MVvuGOXwbRMCCbpD8KOdjugb9/0R61OMPUZH0=; b=sy5CnyyjSUoNVxYauEPK/lLlKR6ByxVwBvQR/r8mYMk447SmLxzzvIOnJ5zKcTqNwe /NUSyAxCfd5rMa0TRuXTMfVGZZdcKLrdujYwKn/DP80njjYaStvNbRXdrjZZA6uJJn3O 4jixhNZANo3U8/cwCebARzKHEw7kSxn09Lv+rpC5nthB/FB0q9Mflfj12EuroijBBJhM hWZZTCgr6Tplbxo5iEqE0tH9cZFLdpq0ZSg1laYVZdfihqFwSv39/nrouSFxtRUuJ7US +6ssq3tR04NqzSrAWRYDExoS9VKjlIxSRLLBh345/dfnM578CqsSgwWNufNg9ki+J7Qo B6Pw== X-Forwarded-Encrypted: i=1; AJvYcCWg1oazadn16lvaAu+tWz2utbYkqZQpKkxR2iDIgTvKb0Bohix6nmuFCrb9ZoAy5Y8cpQLmTvaxBRFF9+2b6NA= X-Gm-Message-State: AOJu0YxrLjv0KbmTzFngF/ixJsCtOp8SMUMbZoaBD08Hn3NcofyBXCf1 pCuDQPMMRlKaTkUU/FeI76zv5Xhex/ruUef0/9LPpSOAchHZGLEb9syIoGy8 X-Google-Smtp-Source: AGHT+IFj+epRW4KIdDn+o5Tkp+VKB/V1LDqvkSp/g+zEHN5/hGTKUptLi0UvBWtMNTIbxCIgSjFgKw== X-Received: by 2002:a2e:91d1:0:b0:2eb:68d0:88be with SMTP id 38308e7fff4ca-2ee8ed909b3mr30425601fa.12.1720184280748; Fri, 05 Jul 2024 05:58:00 -0700 (PDT) Received: from ws2411.lan.kalrayinc.com ([217.181.231.53]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-4264a1dda61sm61917565e9.19.2024.07.05.05.57.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 05 Jul 2024 05:58:00 -0700 (PDT) From: jhascoet X-Google-Original-From: jhascoet To: dev@dpdk.org Cc: Julien Hascoet , stable@dpdk.org, Kai Ji , "Kevin O'Sullivan" , Ciara Power , David Coyle , Anoob Joseph Subject: [PATCH] driver: crypto: scheduler: fix session size computation Date: Fri, 5 Jul 2024 14:57:56 +0200 Message-Id: <20240705125756.227677-1-jhascoet@kalrayinc.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Mailman-Approved-At: Mon, 08 Jul 2024 15:12:30 +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: Julien Hascoet 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