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 0103A45B90; Mon, 21 Oct 2024 10:15:36 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 114104065B; Mon, 21 Oct 2024 10:15:10 +0200 (CEST) Received: from mail-pf1-f171.google.com (mail-pf1-f171.google.com [209.85.210.171]) by mails.dpdk.org (Postfix) with ESMTP id 28BB940667 for ; Mon, 21 Oct 2024 10:15:07 +0200 (CEST) Received: by mail-pf1-f171.google.com with SMTP id d2e1a72fcca58-71ea2643545so2425836b3a.3 for ; Mon, 21 Oct 2024 01:15:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=broadcom.com; s=google; t=1729498506; x=1730103306; 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=EBTSrRrH/4Eci7vARoOOn8cIJ3QS5BlfUCP75uPij90=; b=iGSDLcrvCy0GFBxcnraENVoFOMiQU/XpHOZixdE4+6XMvCoZUpD7S4ApK9dCIPFgGN DLBCqggY9QIpZCUhoncV+msAs+MIkDKVB47FIRruvBl99sweAVWWiGwKCTovK9T+eL9M a/RqUx0izKINOcHzH0GlKfnGW0oNTGh1ZCnq4= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1729498506; x=1730103306; 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=EBTSrRrH/4Eci7vARoOOn8cIJ3QS5BlfUCP75uPij90=; b=M+kllpSw+nfWJ53asH1IvPebxHZAwmFZ/DW/y6bXSEcUEDNF1KE/4kPhkaIIg430VG CR1Ktn7yOw6SKMZ9y3EkVkZ4sLAbXw5UIIN1X4EY1pKaS+axIGzz36TTuLrcYqn8a2kk 8c4cc8ootB9tR6YE3KJJMiJofoxlbeMnLlFjp0lEeSa7Uq/jbdevhg1QWiZf8jHYdgoU 3M+mu3T6uVtWcyMc0gsh/LsOiZSjcvm8m+bdQi1b8KTA1TFcqWRqzXH0nnLp5/K1qLzW 2eFoIOOUsjro5EaIwKts0ZkIRuWZh65cME60R7W0gguO+NJJC94Nj7AmDFdXAkU9Q3Xm J7EA== X-Gm-Message-State: AOJu0YzkZu/isQBWdLbaeaK0P9uNZWC+URsSqztigucvL9Xo0jEw54Ra oqaDr+EEpTerXiTFXwHDOIraIj7yXgDDY2Noxw5QvqZ26iA7gm9TErcsnVNltIz36aveERFPFzL R3SiswjyiiGEwierGQMA67MAZ0DaabZz1DlueoiLMmrmnLterSbuJSWWxRyUnO6A/kIXiot1LSh ZZB0E+Y8FkaQ9PLcQUB1hILzAw+VTbGuAOgfomvBEP5Q== X-Google-Smtp-Source: AGHT+IHOMkszUWNPGd0Bqc9uCkS2h00jAMDUDXseDeXe2t0dmNgzj5QJI21mW3spVr7TWsw80aEeWQ== X-Received: by 2002:a05:6a00:1146:b0:71e:6d1c:8ded with SMTP id d2e1a72fcca58-71ea31f75afmr12047049b3a.27.1729498505680; Mon, 21 Oct 2024 01:15:05 -0700 (PDT) Received: from dhcp-10-123-154-23.dhcp.broadcom.net ([192.19.234.250]) by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-71ec1313926sm2291631b3a.4.2024.10.21.01.15.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 21 Oct 2024 01:15:05 -0700 (PDT) From: Sriharsha Basavapatna To: dev@dpdk.org Cc: Kishore Padmanabha , Michael Baucom , Ajit Khaparde , Shahaji Bhosle , Sriharsha Basavapatna Subject: [PATCH v6 05/47] net/bnxt: tf_core: flow scale improvement Date: Mon, 21 Oct 2024 13:55:25 +0530 Message-Id: <20241021082607.232829-6-sriharsha.basavapatna@broadcom.com> X-Mailer: git-send-email 2.39.0.189.g4dbebc36b0 In-Reply-To: <20241021082607.232829-1-sriharsha.basavapatna@broadcom.com> References: <20241021082607.232829-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 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org From: Kishore Padmanabha Added logic to add flows to wildcard tcam if flows fail to be added to exact match table. Signed-off-by: Kishore Padmanabha Reviewed-by: Michael Baucom Reviewed-by: Ajit Khaparde Reviewed-by: Shahaji Bhosle Signed-off-by: Sriharsha Basavapatna --- drivers/net/bnxt/tf_core/tf_em_hash_internal.c | 4 ++-- drivers/net/bnxt/tf_core/tf_msg.c | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/net/bnxt/tf_core/tf_em_hash_internal.c b/drivers/net/bnxt/tf_core/tf_em_hash_internal.c index 9c527e152d..8fa78be226 100644 --- a/drivers/net/bnxt/tf_core/tf_em_hash_internal.c +++ b/drivers/net/bnxt/tf_core/tf_em_hash_internal.c @@ -65,7 +65,7 @@ tf_em_hash_insert_int_entry(struct tf *tfp, PMD_DRV_LOG_LINE(ERR, "%s, EM entry index allocation failed", tf_dir_2_str(parms->dir)); - return -1; + return -ENOMEM; /* no more space to add entries */ } if (dev->ops->tf_dev_cfa_key_hash == NULL) @@ -87,7 +87,7 @@ tf_em_hash_insert_int_entry(struct tf *tfp, if (rc) { /* Free the allocated index before returning */ dpool_free(pool, index); - return -1; + return rc; } TF_SET_GFID(gfid, diff --git a/drivers/net/bnxt/tf_core/tf_msg.c b/drivers/net/bnxt/tf_core/tf_msg.c index dd5ea1c80e..1ef828a1e9 100644 --- a/drivers/net/bnxt/tf_core/tf_msg.c +++ b/drivers/net/bnxt/tf_core/tf_msg.c @@ -925,7 +925,7 @@ tf_msg_hash_insert_em_internal_entry(struct tf *tfp, if (msg_record_size > TF_MSG_EM_INSERT_RECORD_SIZE) { rc = -EINVAL; TFP_DRV_LOG(ERR, - "%s: Record size to large, rc:%s\n", + "%s: Record size too large, rc:%s\n", tf_dir_2_str(em_parms->dir), strerror(-rc)); return rc; -- 2.39.3