From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id 0FA54A052A; Mon, 3 Aug 2020 16:25:07 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 58C6B2952; Mon, 3 Aug 2020 16:25:06 +0200 (CEST) Received: from mail-ot1-f68.google.com (mail-ot1-f68.google.com [209.85.210.68]) by dpdk.org (Postfix) with ESMTP id 6CB6DF64 for ; Mon, 3 Aug 2020 16:25:04 +0200 (CEST) Received: by mail-ot1-f68.google.com with SMTP id e11so3815148otk.4 for ; Mon, 03 Aug 2020 07:25:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=broadcom.com; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=EvsYKQLs+v6gXNk1pUJVO2pMN4aACDXucvlnMkMnR4k=; b=YTgJUyLkPtm678V2kRXmItQ8gb9ECEiUGrYuG8CNAFkViMctjheWZ8QvT3G78D/pIG ZyIUp1OPIOZFlJ0/8Y9SxEhSYytFCvgEESIrpWCMIdBswTTXX2Xomc2qp7VUUC5cbe43 apreqrOv3sVDjTEeK8tehVHFy/xziQqkerxsQ= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=EvsYKQLs+v6gXNk1pUJVO2pMN4aACDXucvlnMkMnR4k=; b=egPKexMk/wSlLHH5laa4GEwGLtU1G+Kl8Zn7qi9BuzgSfzXF33EQWzY8j8usSneL9v WFOB1f0QMohg+8kWsRtLS+uDTWJsoVg8jVg+49QtXiYcaYUVywjeiXYa3FVI83luNQTL e0YUUIth0UKKqboVlzoIcy6JIISPMH2YENRIHBhBvDuKAXldfPk1/Z1rO/KuBaB7Go/K LERdfjgWEscRXOrsrZgEq7CDatpEphj0HfZnx3FMzF4RIvIgCSAahzx4e8gSXVnge/Qq TWIHG2tJUMZwtZCaj/bDR+UmUAHSLANoMAgHOFMe12pungS9RFW+Hynv2Rk0LJhF3zfi grUA== X-Gm-Message-State: AOAM530jIcQTPteaMMhGseQ0fxikMQ1RQWr4+Bg94qsgwxHWU7aEYxmR 9vTzc0m41oQazFAMh/YImclYa/+M5hF1JiYr4pumVg== X-Google-Smtp-Source: ABdhPJxDTLDnSx21XOpqACM81n7/3xYY+G31S8j54Pswoe6PcUF7XFkRZI2n+iXZjd3GEntVJDIchGkAm4UwcRsCkOw= X-Received: by 2002:a9d:3b1:: with SMTP id f46mr14861838otf.154.1596464703361; Mon, 03 Aug 2020 07:25:03 -0700 (PDT) MIME-Version: 1.0 References: <20200803064559.1273-1-somnath.kotur@broadcom.com> In-Reply-To: <20200803064559.1273-1-somnath.kotur@broadcom.com> From: Ajit Khaparde Date: Mon, 3 Aug 2020 07:24:47 -0700 Message-ID: To: Somnath Kotur Cc: dpdk-dev , Ferruh Yigit , Thomas Monjalon Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.15 Subject: Re: [dpdk-dev] [PATCH] net/bnxt: update resource allocation settings X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" On Sun, Aug 2, 2020 at 11:51 PM Somnath Kotur wrote: > From: Shahaji Bhosle > > Adjusted resource allocations for the hardware resources > like TCAM entries, action records, stat counters, exact match records to > scale up offload flows. > Also increased ipv4 nat entries to 1023. > This patch is a critical fix to enable driver load on current and all > FW versions going forward. > > Fixes: cef3749d501e2 ("net/bnxt: update TruFlow resource allocation > numbers") > > Signed-off-by: Shahaji Bhosle > Signed-off-by: Kishore Padmanabha > Reviewed-by: Ajit Kumar Khaparde > Reviewed-by: Michael Baucom > Signed-off-by: Venkat Duvvuru > Applied to dpdk-next-net-brcm. Ferruh, Thomas, I applied this patch since it is a critical fix needed to work with different versions of FW. Thanks Ajit > --- > drivers/net/bnxt/tf_ulp/bnxt_ulp.c | 42 > +++++++++++++++++++------------------- > 1 file changed, 21 insertions(+), 21 deletions(-) > > diff --git a/drivers/net/bnxt/tf_ulp/bnxt_ulp.c > b/drivers/net/bnxt/tf_ulp/bnxt_ulp.c > index c19cd1d..0d4a455 100644 > --- a/drivers/net/bnxt/tf_ulp/bnxt_ulp.c > +++ b/drivers/net/bnxt/tf_ulp/bnxt_ulp.c > @@ -86,68 +86,68 @@ ulp_ctx_session_open(struct bnxt *bp, > resources = ¶ms.resources; > /** RX **/ > /* Identifiers */ > - resources->ident_cnt[TF_DIR_RX].cnt[TF_IDENT_TYPE_L2_CTXT_HIGH] = > 200; > - resources->ident_cnt[TF_DIR_RX].cnt[TF_IDENT_TYPE_L2_CTXT_LOW] = > 20; > + resources->ident_cnt[TF_DIR_RX].cnt[TF_IDENT_TYPE_L2_CTXT_HIGH] = > 422; > + resources->ident_cnt[TF_DIR_RX].cnt[TF_IDENT_TYPE_L2_CTXT_LOW] = 6; > resources->ident_cnt[TF_DIR_RX].cnt[TF_IDENT_TYPE_WC_PROF] = 8; > resources->ident_cnt[TF_DIR_RX].cnt[TF_IDENT_TYPE_PROF_FUNC] = 8; > resources->ident_cnt[TF_DIR_RX].cnt[TF_IDENT_TYPE_EM_PROF] = 8; > > /* Table Types */ > - resources->tbl_cnt[TF_DIR_RX].cnt[TF_TBL_TYPE_FULL_ACT_RECORD] = > 720; > - resources->tbl_cnt[TF_DIR_RX].cnt[TF_TBL_TYPE_ACT_STATS_64] = 720; > - resources->tbl_cnt[TF_DIR_RX].cnt[TF_TBL_TYPE_ACT_MODIFY_IPV4] = 8; > + resources->tbl_cnt[TF_DIR_RX].cnt[TF_TBL_TYPE_FULL_ACT_RECORD] = > 8192; > + resources->tbl_cnt[TF_DIR_RX].cnt[TF_TBL_TYPE_ACT_STATS_64] = 8192; > + resources->tbl_cnt[TF_DIR_RX].cnt[TF_TBL_TYPE_ACT_MODIFY_IPV4] = > 1023; > > /* ENCAP */ > resources->tbl_cnt[TF_DIR_RX].cnt[TF_TBL_TYPE_ACT_ENCAP_8B] = 16; > - resources->tbl_cnt[TF_DIR_RX].cnt[TF_TBL_TYPE_ACT_ENCAP_16B] = 16; > + resources->tbl_cnt[TF_DIR_RX].cnt[TF_TBL_TYPE_ACT_ENCAP_16B] = 63; > > /* TCAMs */ > > resources->tcam_cnt[TF_DIR_RX].cnt[TF_TCAM_TBL_TYPE_L2_CTXT_TCAM_HIGH] = > - 200; > + 422; > > resources->tcam_cnt[TF_DIR_RX].cnt[TF_TCAM_TBL_TYPE_L2_CTXT_TCAM_LOW] = > - 20; > + 6; > resources->tcam_cnt[TF_DIR_RX].cnt[TF_TCAM_TBL_TYPE_PROF_TCAM] = 8; > - resources->tcam_cnt[TF_DIR_RX].cnt[TF_TCAM_TBL_TYPE_WC_TCAM] = 416; > + resources->tcam_cnt[TF_DIR_RX].cnt[TF_TCAM_TBL_TYPE_WC_TCAM] = 88; > > /* EM */ > - resources->em_cnt[TF_DIR_RX].cnt[TF_EM_TBL_TYPE_EM_RECORD] = 2048; > + resources->em_cnt[TF_DIR_RX].cnt[TF_EM_TBL_TYPE_EM_RECORD] = 13176; > > /* EEM */ > resources->em_cnt[TF_DIR_RX].cnt[TF_EM_TBL_TYPE_TBL_SCOPE] = 1; > > /** TX **/ > /* Identifiers */ > - resources->ident_cnt[TF_DIR_TX].cnt[TF_IDENT_TYPE_L2_CTXT_HIGH] = > 200; > - resources->ident_cnt[TF_DIR_TX].cnt[TF_IDENT_TYPE_L2_CTXT_LOW] = > 20; > + resources->ident_cnt[TF_DIR_TX].cnt[TF_IDENT_TYPE_L2_CTXT_HIGH] = > 292; > + resources->ident_cnt[TF_DIR_TX].cnt[TF_IDENT_TYPE_L2_CTXT_LOW] = > 144; > resources->ident_cnt[TF_DIR_TX].cnt[TF_IDENT_TYPE_WC_PROF] = 8; > resources->ident_cnt[TF_DIR_TX].cnt[TF_IDENT_TYPE_PROF_FUNC] = 8; > resources->ident_cnt[TF_DIR_TX].cnt[TF_IDENT_TYPE_EM_PROF] = 8; > > /* Table Types */ > - resources->tbl_cnt[TF_DIR_TX].cnt[TF_TBL_TYPE_FULL_ACT_RECORD] = > 16; > - resources->tbl_cnt[TF_DIR_TX].cnt[TF_TBL_TYPE_ACT_STATS_64] = 16; > - resources->tbl_cnt[TF_DIR_TX].cnt[TF_TBL_TYPE_ACT_MODIFY_IPV4] = 8; > + resources->tbl_cnt[TF_DIR_TX].cnt[TF_TBL_TYPE_FULL_ACT_RECORD] = > 8192; > + resources->tbl_cnt[TF_DIR_TX].cnt[TF_TBL_TYPE_ACT_STATS_64] = 8192; > + resources->tbl_cnt[TF_DIR_TX].cnt[TF_TBL_TYPE_ACT_MODIFY_IPV4] = > 1023; > > /* ENCAP */ > - resources->tbl_cnt[TF_DIR_TX].cnt[TF_TBL_TYPE_ACT_ENCAP_64B] = 16; > - resources->tbl_cnt[TF_DIR_TX].cnt[TF_TBL_TYPE_ACT_ENCAP_16B] = 16; > + resources->tbl_cnt[TF_DIR_TX].cnt[TF_TBL_TYPE_ACT_ENCAP_64B] = 511; > + resources->tbl_cnt[TF_DIR_TX].cnt[TF_TBL_TYPE_ACT_ENCAP_16B] = 200; > > /* TCAMs */ > > resources->tcam_cnt[TF_DIR_TX].cnt[TF_TCAM_TBL_TYPE_L2_CTXT_TCAM_HIGH] = > - 200; > + 292; > > resources->tcam_cnt[TF_DIR_TX].cnt[TF_TCAM_TBL_TYPE_L2_CTXT_TCAM_LOW] = > - 20; > + 144; > resources->tcam_cnt[TF_DIR_TX].cnt[TF_TCAM_TBL_TYPE_PROF_TCAM] = 8; > resources->tcam_cnt[TF_DIR_TX].cnt[TF_TCAM_TBL_TYPE_WC_TCAM] = 8; > > /* EM */ > - resources->em_cnt[TF_DIR_TX].cnt[TF_EM_TBL_TYPE_EM_RECORD] = 2048; > + resources->em_cnt[TF_DIR_TX].cnt[TF_EM_TBL_TYPE_EM_RECORD] = 15232; > > /* EEM */ > resources->em_cnt[TF_DIR_TX].cnt[TF_EM_TBL_TYPE_TBL_SCOPE] = 1; > > /* SP */ > - resources->tbl_cnt[TF_DIR_TX].cnt[TF_TBL_TYPE_ACT_SP_SMAC_IPV4] = > 128; > + resources->tbl_cnt[TF_DIR_TX].cnt[TF_TBL_TYPE_ACT_SP_SMAC_IPV4] = > 488; > > rc = tf_open_session(&bp->tfp, ¶ms); > if (rc) { > -- > 2.7.4 > >