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 531F445C9A; Thu, 7 Nov 2024 14:43:15 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id BE3EE42F49; Thu, 7 Nov 2024 14:42:46 +0100 (CET) Received: from mail-pl1-f177.google.com (mail-pl1-f177.google.com [209.85.214.177]) by mails.dpdk.org (Postfix) with ESMTP id 3BB8F42F57 for ; Thu, 7 Nov 2024 14:42:45 +0100 (CET) Received: by mail-pl1-f177.google.com with SMTP id d9443c01a7336-2110a622d76so7968885ad.3 for ; Thu, 07 Nov 2024 05:42:45 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=broadcom.com; s=google; t=1730986964; x=1731591764; 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=PDggpt7v05g7EYEs5ZIdCHhEhRL6/+OFUsMjaezReXo=; b=b2bR5bWcNLuyEgxhjk9evbUio1FhhHIGaAesPh0lgdUWBTCBliYw7U4nWSMWvqQjCn XGwg6ib4l4XOkvJxzfnglfP4Wq8e9um//cApSGdnF9lJlMuX0RleOj/b8XjqN4cDBBFN 0hZhRH/Q2Natup5NQXA/RdcL1E+u/yyXAHA6A= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1730986964; x=1731591764; 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=PDggpt7v05g7EYEs5ZIdCHhEhRL6/+OFUsMjaezReXo=; b=JUyls8OmInEBAgdl1ui2yyn2gdkfjBt6EYaZN8+w/e0MQy9RbEKu2mmAtntEY8JowN BI6oEe2kUJg1bgaYRytrVHrq1K/BrlLaIyECR3LqzgOvPi5svNQRYqkVZ6NhfRiNMJhm ffdoJ8cpqnZ89F6j5rtESxMgmCXz9w7YzmoyXpfwmGJpcie3I0t/LZFC3Ou6WipcUagC oQoMN9mLCJgZIRBzQc2jUPoY1TkHYToUR4vzLYT40nTZ4QWaY4ZIsHOsYtf9BMQEAbG0 hxxUcsKLk6gVChVqWBsQ5iIN30aeYrdQudxiVkzETEHHwp+UfOOIs3JuO748v1druy0q vC2Q== X-Gm-Message-State: AOJu0Yx4wzTSBNvcTr1qX3d4egyrsvG2q+gHOOCD+BvEbSXb6cWsJ7jj zxnXUItYGfTvf16TRs3ka7GYt14EvtykLzmYaYtEiTd0QR9iEQIIDeUFVs5sWJb0RVXwA0JKLkJ SjjKiPM+adCxgsLQCGJNvdqhm1THvXbG4/zUppbDamSeJKa/ByBx+vSQOhTlCZ59g/RFTz18ZGP PGVonojwe24VKxkiUolurXQpdbqx8btdzk3LU+6kZfrA== X-Google-Smtp-Source: AGHT+IF6kk0TrsvbGCMyjXlYOO6fhECLPSopzqQPgHdC/074QfmgC017Uyw+uJ4YayDvRIFMtH9lRQ== X-Received: by 2002:a17:902:d4c3:b0:20b:b0ab:4fc3 with SMTP id d9443c01a7336-210c6c934c1mr628169875ad.49.1730986963742; Thu, 07 Nov 2024 05:42:43 -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.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 07 Nov 2024 05:42:43 -0800 (PST) From: Sriharsha Basavapatna To: dev@dpdk.org Cc: Kishore Padmanabha , Mike Baucom , Ajit Khaparde , Shahaji Bhosle , Sriharsha Basavapatna Subject: [PATCH v8 05/47] net/bnxt: tf_core: flow scale improvement Date: Thu, 7 Nov 2024 19:22:12 +0530 Message-Id: <20241107135254.1611676-6-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 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: Mike 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