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 6FAF345D5D for ; Thu, 21 Nov 2024 00:42:22 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 64EAF40296; Thu, 21 Nov 2024 00:42:22 +0100 (CET) Received: from mail-wm1-f50.google.com (mail-wm1-f50.google.com [209.85.128.50]) by mails.dpdk.org (Postfix) with ESMTP id 2A06A40296 for ; Thu, 21 Nov 2024 00:42:21 +0100 (CET) Received: by mail-wm1-f50.google.com with SMTP id 5b1f17b1804b1-43158625112so2102675e9.3 for ; Wed, 20 Nov 2024 15:42:21 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1732146141; x=1732750941; darn=dpdk.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=541NHywd56yWzU0W4QJeMC2sWfZ1VnpX0t0os8lo8Ds=; b=Fdtt0Q1U+/QDaWwf6exJZQi7KBV1LNAopUiNfCrS1AAM1BAQENaOXmS+GEZY9JxvKv 4nQ35jGkd9RsEOyXE9ynSXzOCUo8yjiRI2wtqQjHcM0We/Qk+AE3DVHztY21Ow750u3P q04OeindNq+NS0PhC9penCuvWjSM8kMXoXG1cOXMb3a/LWQf/KtoCiBNuIMdCEFvf1S+ HkBj+16bLIt22o+Q5r4k9tLVMWDuilTYybOcK9u6obgq7Wln286EIOjU7B8kOqIu3QIp PKmEzOuXoR84JUlJbIKn8pUt26hJ2vCJ1hGQeL3tQpN7nn2l/Uq+FxPqNmfe9aR9YZfd AzjA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1732146141; x=1732750941; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=541NHywd56yWzU0W4QJeMC2sWfZ1VnpX0t0os8lo8Ds=; b=dIaMZFajhdQt3ST62C59H+j5kzRHcSVF1rwgN4k1wtFRJ1HiFwSPtbRhQDBgEz13tt qmU4Cv4811c/qcm/fCd6fkUVWK33ZJIM8zjjGdUadmmVn8el0t7ZXy6h7hV6H8VfhpbD 8IpavP3y0tcTLBKM81N2qffAPkk+A1iYJ0qOBv9asq/kIqLjTIG28x2ghC5cmVbwoWTR HgeyqxIxlz0CMar83DyMFxl/V8l2UaMlLnjnQDCkmh5coYdAea1W+s+irZ2c2KemwiG8 nc4ffh39XfgGHCWj/uqavSwKVFU1EOLVUgghAoOgpgUZkpqCaz+N1LPC5zuyS1EXRpAf CqcA== X-Forwarded-Encrypted: i=1; AJvYcCVyU1BT9ztRMumZy35U5EeFCZel31THDOXjwIoMoMy7djlgS6uqzvPugrTS5igQHFGJT0JLbqQ=@dpdk.org X-Gm-Message-State: AOJu0Ywcr7kQaBXqMIA4eiQuJXK3K5os0Wd2yXxYu9pD8vkgLjvusK+Q MsgZek6DlUOX+56uB1xYRLua6kQnd7GCLIjBg8ElIQ4aTySSrmbp X-Gm-Gg: ASbGncvW/UkY3vmMOisZRzZL69c3FyRdMv7Z2fhkgkHQ0WpefS6rthayeXKbeOOZ4lP jS238xzleIJiDtMBm7lX/iv1rrEqCjJqwxEYMVJqvg8nnw4lu09hEpEMIrUwaDm3RWqEV2GXGwK j1qq3oMB+2X1MkAMYWzaUc6sY/H2Zh++ITewIa/rWMBj7dgm6ApcMQAlb+vhlyZAIJXmhNnksWE DyxEKvI/1pdGXmtLPyQc35/lHrWKlSJKAEIWDmZ8STiadE2UbuOyq8X X-Google-Smtp-Source: AGHT+IH5Mq/RzVW5zg3qDB8oMf77k81ayyDeHvSll0n9fOYcQS9JaEkp2YrxHAJUqoQxIa6CB2l4KA== X-Received: by 2002:a05:600c:a03:b0:426:616e:db8d with SMTP id 5b1f17b1804b1-433489ca577mr44322375e9.15.1732146140594; Wed, 20 Nov 2024 15:42:20 -0800 (PST) Received: from localhost ([2a01:4b00:d036:ae00:21cd:def0:a01d:d2aa]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-38254933c78sm3371177f8f.78.2024.11.20.15.42.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 20 Nov 2024 15:42:19 -0800 (PST) From: luca.boccassi@gmail.com To: Farah Smith Cc: Sriharsha Basavapatna , Kishore Padmanabha , Shahaji Bhosle , Ajit Khaparde , dpdk stable Subject: patch 'net/bnxt/tf_core: fix Thor TF EM key size check' has been queued to stable release 22.11.7 Date: Wed, 20 Nov 2024 23:41:26 +0000 Message-ID: <20241120234215.233355-1-luca.boccassi@gmail.com> X-Mailer: git-send-email 2.45.2 In-Reply-To: <20241112220754.666489-40-luca.boccassi@gmail.com> References: <20241112220754.666489-40-luca.boccassi@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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 Hi, FYI, your patch has been queued to stable release 22.11.7 Note it hasn't been pushed to http://dpdk.org/browse/dpdk-stable yet. It will be pushed if I get no objections before 11/22/24. So please shout if anyone has objections. Also note that after the patch there's a diff of the upstream commit vs the patch applied to the branch. This will indicate if there was any rebasing needed to apply to the stable branch. If there were code changes for rebasing (ie: not only metadata diffs), please double check that the rebase was correctly done. Queued patches are on a temporary branch at: https://github.com/bluca/dpdk-stable This queued commit can be viewed at: https://github.com/bluca/dpdk-stable/commit/0c320c96679d370220183d7d7329f595aed7854a Thanks. Luca Boccassi --- >From 0c320c96679d370220183d7d7329f595aed7854a Mon Sep 17 00:00:00 2001 From: Farah Smith Date: Thu, 7 Nov 2024 19:22:11 +0530 Subject: [PATCH] net/bnxt/tf_core: fix Thor TF EM key size check [ upstream commit 912abed4250c792214886880fa0b93b7712fba21 ] The maximum EM key size is 640 bits for Thor. But the lookup record + the key size is 679 bits. This value must be rounded up to a 128 bit aligned number. So the size check should be 96 bytes rather than 80. This fix allows keys > 601 bits to be successfully inserted. Fixes: 539931eab3a5 ("net/bnxt: support EM with FKB") Signed-off-by: Farah Smith Signed-off-by: Sriharsha Basavapatna Reviewed-by: Farah Smith Reviewed-by: Kishore Padmanabha Reviewed-by: Shahaji Bhosle Reviewed-by: Ajit Khaparde --- drivers/net/bnxt/tf_core/tf_msg.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/bnxt/tf_core/tf_msg.c b/drivers/net/bnxt/tf_core/tf_msg.c index fbc96d374c..f468de564d 100644 --- a/drivers/net/bnxt/tf_core/tf_msg.c +++ b/drivers/net/bnxt/tf_core/tf_msg.c @@ -25,7 +25,7 @@ */ #define TF_MSG_SET_GLOBAL_CFG_DATA_SIZE 16 #define TF_MSG_EM_INSERT_KEY_SIZE 64 -#define TF_MSG_EM_INSERT_RECORD_SIZE 80 +#define TF_MSG_EM_INSERT_RECORD_SIZE 96 #define TF_MSG_TBL_TYPE_SET_DATA_SIZE 88 /* Compile check - Catch any msg changes that we depend on, like the -- 2.45.2 --- Diff of the applied patch vs upstream commit (please double-check if non-empty: --- --- - 2024-11-20 23:41:22.800355868 +0000 +++ 0001-net-bnxt-tf_core-fix-Thor-TF-EM-key-size-check.patch 2024-11-20 23:41:22.680195466 +0000 @@ -1 +1 @@ -From 912abed4250c792214886880fa0b93b7712fba21 Mon Sep 17 00:00:00 2001 +From 0c320c96679d370220183d7d7329f595aed7854a Mon Sep 17 00:00:00 2001 @@ -5,0 +6,2 @@ +[ upstream commit 912abed4250c792214886880fa0b93b7712fba21 ] + @@ -12 +13,0 @@ -Cc: stable@dpdk.org @@ -25 +26 @@ -index 08e9783d52..dd5ea1c80e 100644 +index fbc96d374c..f468de564d 100644