Message ID | 20241107135254.1611676-5-sriharsha.basavapatna@broadcom.com (mailing list archive) |
---|---|
State | Accepted, archived |
Delegated to: | Ajit Khaparde |
Headers |
Return-Path: <dev-bounces@dpdk.org> X-Original-To: patchwork@inbox.dpdk.org Delivered-To: patchwork@inbox.dpdk.org Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id A5E8045C9A; Thu, 7 Nov 2024 14:43:08 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 965A642F51; Thu, 7 Nov 2024 14:42:43 +0100 (CET) Received: from mail-pf1-f181.google.com (mail-pf1-f181.google.com [209.85.210.181]) by mails.dpdk.org (Postfix) with ESMTP id A531B42F35 for <dev@dpdk.org>; Thu, 7 Nov 2024 14:42:42 +0100 (CET) Received: by mail-pf1-f181.google.com with SMTP id d2e1a72fcca58-71e5a62031aso773417b3a.1 for <dev@dpdk.org>; Thu, 07 Nov 2024 05:42:42 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=broadcom.com; s=google; t=1730986961; x=1731591761; 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=sKvQEMiAwAWTrvfbPbgboY9lFIH8adOgPShL87/Bo/Q=; b=Kz65wm4zPeMS++ng9qFAc9SrvoTgClCxAjMJrod2H+1n1qzpVpe+NHRXekFILsrEnW 8L0cB7bgVQB7WitgVjrKY2SH2lBWGHpEpjPu9Rm0vKYLdYcsO9n1J1UenzNOAJGDbhw8 7+yjOu3+HX+Kc+WEkmRx6H/DHVt+cc3hzuAkI= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1730986961; x=1731591761; 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=sKvQEMiAwAWTrvfbPbgboY9lFIH8adOgPShL87/Bo/Q=; b=jWVgf81Ff8psKdOk7nfYf0xhyOK8wL8f3CfckvM3qbhlwq2PfluMuQIM00QCg3Bsn9 z31abrEzzoXV+KGYNm92UZITf67JYbtdXZ3yc58Zl2DFb+iiKOjJcruL8xFnDNi8yHfa nbrsOl0fJj+5mArlLHAPZhyUrG/tqfXlDzo5V/prWsdLNtKCOKVSsij8huJdioUrkBze eJ731wbtQTBXJMWogvCaV0MWUTgnkAad2j6g7pugtcLI+MzfFDnSkMW++ZxctkzMFoPU e4VYgkzOBBBbLIItRWYYY7UEE+2v0aTHnuie5wZ/ppYIWlvdKQfETBbdGc2ZGmlMrvj2 8fKQ== X-Gm-Message-State: AOJu0YzEJ7f8/9+se06uGu4/8nh8vFI7ne+RrRIfWUczx+eyQb0zkRO9 8ywtjTtiCeHLNTSwzvraihrdvdBFdZ3Dpsn9FBDb0Lt3KhRHhHm692y/UrhocgO+ryxX7Ga0/E/ me1zn1lqB+4APIsmvwAFBhEY/1bIGcxYC3KXx/dwrkJ/1CA7D/UOwzXT4FNfPpM2Og3540IuoaW 3px9PV6wdAqDTR5FNNbSznoiNVzxVauVqvfXmSrZb+Sg== X-Google-Smtp-Source: AGHT+IFfv/tPBOL4H87fjIC75zON7AwS4d/huFWW8UU0KeWxfLQqQ3CMRu2SBG7FBbFnZt4p37U2rQ== X-Received: by 2002:a05:6a20:244e:b0:1db:e4c8:3437 with SMTP id adf61e73a8af0-1dbe4c86583mr18100375637.20.1730986961100; Thu, 07 Nov 2024 05:42:41 -0800 (PST) Received: from dhcp-10-123-154-23.dhcp.broadcom.net ([192.19.234.250]) by smtp.gmail.com with ESMTPSA id 98e67ed59e1d1-2e9a5f52969sm1409878a91.2.2024.11.07.05.42.37 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 07 Nov 2024 05:42:39 -0800 (PST) From: Sriharsha Basavapatna <sriharsha.basavapatna@broadcom.com> To: dev@dpdk.org Cc: Farah Smith <farah.smith@broadcom.com>, stable@dpdk.org, Sriharsha Basavapatna <sriharsha.basavapatna@broadcom.com>, Kishore Padmanabha <kishore.padmanabha@broadcom.com>, Shahaji Bhosle <sbhosle@broadcom.com>, Ajit Khaparde <ajit.khaparde@broadcom.com> Subject: [PATCH v8 04/47] net/bnxt: tf_core: Thor TF EM key size check Date: Thu, 7 Nov 2024 19:22:11 +0530 Message-Id: <20241107135254.1611676-5-sriharsha.basavapatna@broadcom.com> X-Mailer: git-send-email 2.39.0.189.g4dbebc36b0 In-Reply-To: <20241107135254.1611676-1-sriharsha.basavapatna@broadcom.com> References: <20241107135254.1611676-1-sriharsha.basavapatna@broadcom.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions <dev.dpdk.org> List-Unsubscribe: <https://mails.dpdk.org/options/dev>, <mailto:dev-request@dpdk.org?subject=unsubscribe> List-Archive: <http://mails.dpdk.org/archives/dev/> List-Post: <mailto:dev@dpdk.org> List-Help: <mailto:dev-request@dpdk.org?subject=help> List-Subscribe: <https://mails.dpdk.org/listinfo/dev>, <mailto:dev-request@dpdk.org?subject=subscribe> Errors-To: dev-bounces@dpdk.org |
Series |
TruFlow update for Thor2
|
|
Checks
Context | Check | Description |
---|---|---|
ci/checkpatch | success | coding style OK |
Commit Message
Sriharsha Basavapatna
Nov. 7, 2024, 1:52 p.m. UTC
From: Farah Smith <farah.smith@broadcom.com> 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") Cc: stable@dpdk.org Signed-off-by: Farah Smith <farah.smith@broadcom.com> Signed-off-by: Sriharsha Basavapatna <sriharsha.basavapatna@broadcom.com> Reviewed-by: Farah Smith <farah.smith@broadcom.com> Reviewed-by: Kishore Padmanabha <kishore.padmanabha@broadcom.com> Reviewed-by: Shahaji Bhosle <sbhosle@broadcom.com> Reviewed-by: Ajit Khaparde <ajit.khaparde@broadcom.com> --- 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 08e9783d52..dd5ea1c80e 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