Message ID | 20240830140049.1715230-3-sriharsha.basavapatna@broadcom.com (mailing list archive) |
---|---|
State | Superseded |
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 23738458A8; Fri, 30 Aug 2024 15:51:17 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 2D63D42E9D; Fri, 30 Aug 2024 15:51:07 +0200 (CEST) Received: from mail-pl1-f177.google.com (mail-pl1-f177.google.com [209.85.214.177]) by mails.dpdk.org (Postfix) with ESMTP id 88AD642E9B for <dev@dpdk.org>; Fri, 30 Aug 2024 15:51:05 +0200 (CEST) Received: by mail-pl1-f177.google.com with SMTP id d9443c01a7336-2020b730049so16768505ad.3 for <dev@dpdk.org>; Fri, 30 Aug 2024 06:51:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=broadcom.com; s=google; t=1725025864; x=1725630664; 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=yDoyMat/PNz+XyP8StqQe8jk8VIXQr8HGm4w3rSsbm4=; b=TbLz8XDj6qthDqW/ZufJn+RdyrsHN49VZXa5TmEw0juWfNMH0CAbJ0N/2/mujSHbst fwZKevspHEKRcGgwj9EwE2ewbJDqmzFIuE+Bg4j1KSELeSKczUfrCoQsDsJ9bZcWvLAE yhgUMEgd38182QChiuvtwuL5MV39TnUnKpMzs= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1725025864; x=1725630664; 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=yDoyMat/PNz+XyP8StqQe8jk8VIXQr8HGm4w3rSsbm4=; b=iSVQW3ykTKq75yQ4T1LocKWCj6Gun7IM0WfzXzS//54V9hVtTFRB35T5hz2oUuOJQj 8hb/EWGK2zcPb9s9Mq+PPs3X2Z3u5zO0/1bFanRCkIoXzh0HUJjFmuZOrf+ddffCkKfF 6tQxdy/0CyRtcG1ZMox+4qM+wAxeP47+nmgSe6gdoO79tEjHeQTrUzfb+Rp8GEo0B8xP /w1DfnUnF/gRswotLyB0g/XNoUQA2zKZFdoJWaV+zmVLRcKWodEa6VaUQ7KMIB1l8ZC7 oYj+KSHIRm2BcPiS/hZxf71MbweaQ7nzKm+JOUMpMYCYOVtTCHXMl+cE7RPibxAJ1jOY 1iuw== X-Gm-Message-State: AOJu0YxtWASzjLQ0MsBKws8ixAZQMaVAjkzYuyaGhWxMWr1QvYGQ+Qw/ 2tXlyhXkd2iG3lLlOZg6brNbDnZvsGlIGdCGz6waVrbeu1HppTrJN1fSHG/3XrFcKPB44GbEI9Q 61z2n0P9IChEJSvBmjDwP01EIqK0LcuPsHTh9DPUm7ZyMGp9IqHy/nUuZ+ZY6Z1oCyGf3d4ujCS FxxUzyvMq9aztpybb0vFZ715MTFiBYeJkEHw6uoB7ViF4Q X-Google-Smtp-Source: AGHT+IHI6BfuahP3YeJXepek3jlkCwsbn4SnQO1V/dIxxCGo9XEdj6cuuyQW+hEZ1JbGFC7qnStd9A== X-Received: by 2002:a17:902:e804:b0:202:3107:e769 with SMTP id d9443c01a7336-2050c237fdfmr71175895ad.22.1725025864013; Fri, 30 Aug 2024 06:51:04 -0700 (PDT) Received: from dhcp-10-123-154-23.dhcp.broadcom.net ([192.19.234.250]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-205155658dfsm27067145ad.297.2024.08.30.06.51.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 30 Aug 2024 06:51:03 -0700 (PDT) From: Sriharsha Basavapatna <sriharsha.basavapatna@broadcom.com> To: dev@dpdk.org Cc: Shahaji Bhosle <sbhosle@broadcom.com>, Farah Smith <farah.smith@broadcom.com>, Kishore Padmanabha <kishore.padmanabha@broadcom.com>, Shuanglin Wang <shuanglin.wang@broadcom.com>, Sriharsha Basavapatna <sriharsha.basavapatna@broadcom.com> Subject: [PATCH 02/47] net/bnxt: tf_core: tcam manager data corruption Date: Fri, 30 Aug 2024 19:30:04 +0530 Message-Id: <20240830140049.1715230-3-sriharsha.basavapatna@broadcom.com> X-Mailer: git-send-email 2.39.0.189.g4dbebc36b0 In-Reply-To: <20240830140049.1715230-1-sriharsha.basavapatna@broadcom.com> References: <20240830140049.1715230-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
Aug. 30, 2024, 2 p.m. UTC
From: Shahaji Bhosle <sbhosle@broadcom.com> Max entries per session were not getting initialized to 0, when the sessions were closed. Reset max entries counter session when the session is initialized Fixes: 97435d7906d7 ("net/bnxt: update Truflow core") Signed-off-by: Shahaji Bhosle <sbhosle@broadcom.com> Reviewed-by: Farah Smith <farah.smith@broadcom.com> Reviewed-by: Kishore Padmanabha <kishore.padmanabha@broadcom.com> Reviewed-by: Shuanglin Wang <shuanglin.wang@broadcom.com> Signed-off-by: Sriharsha Basavapatna <sriharsha.basavapatna@broadcom.com> --- drivers/net/bnxt/tf_core/cfa_tcam_mgr.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/drivers/net/bnxt/tf_core/cfa_tcam_mgr.c b/drivers/net/bnxt/tf_core/cfa_tcam_mgr.c index f26d93e7a9..9df2d2b937 100644 --- a/drivers/net/bnxt/tf_core/cfa_tcam_mgr.c +++ b/drivers/net/bnxt/tf_core/cfa_tcam_mgr.c @@ -909,6 +909,7 @@ cfa_tcam_mgr_init(int sess_idx, enum cfa_tcam_mgr_device_type type, /* Now calculate the max entries per table and global max entries based * on the updated table limits. */ + cfa_tcam_mgr_max_entries[sess_idx] = 0; for (dir = 0; dir < ARRAY_SIZE(cfa_tcam_mgr_tables[sess_idx]); dir++) for (tbl_type = 0; tbl_type < ARRAY_SIZE(cfa_tcam_mgr_tables[sess_idx][dir]); @@ -958,8 +959,8 @@ cfa_tcam_mgr_init(int sess_idx, enum cfa_tcam_mgr_device_type type, if (parms != NULL) parms->max_entries = cfa_tcam_mgr_max_entries[sess_idx]; - CFA_TCAM_MGR_LOG(INFO, "Global TCAM table initialized for sess_idx %d.\n", - sess_idx); + CFA_TCAM_MGR_LOG(DEBUG, "Global TCAM table initialized for sess_idx %d max entries %d.\n", + sess_idx, cfa_tcam_mgr_max_entries[sess_idx]); return 0; }