DPDK patches and discussions
 help / color / mirror / Atom feed
* [dpdk-dev] [PATCH 0/2] fixes to bnxt PMD
@ 2021-07-30  5:36 Ajit Khaparde
  2021-07-30  5:36 ` [dpdk-dev] [PATCH 1/2] net/bnxt: fix resource qcap list handling Ajit Khaparde
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: Ajit Khaparde @ 2021-07-30  5:36 UTC (permalink / raw)
  To: dev

[-- Attachment #1: Type: text/plain, Size: 419 bytes --]

Fixes to bnxt PMD to address compatibility issues with different FW versions.

Jay Ding (1):
  net/bnxt: fix resource qcap list handling

Kishore Padmanabha (1):
  net/bnxt: fix stats counter resource

 drivers/net/bnxt/tf_core/tf_msg.c                    | 12 ++++++------
 .../tf_ulp/generic_templates/ulp_template_db_tbl.c   |  4 ++--
 2 files changed, 8 insertions(+), 8 deletions(-)

-- 
2.21.1 (Apple Git-122.3)


^ permalink raw reply	[flat|nested] 5+ messages in thread

* [dpdk-dev] [PATCH 1/2] net/bnxt: fix resource qcap list handling
  2021-07-30  5:36 [dpdk-dev] [PATCH 0/2] fixes to bnxt PMD Ajit Khaparde
@ 2021-07-30  5:36 ` Ajit Khaparde
  2021-07-30  5:36 ` [dpdk-dev] [PATCH 2/2] net/bnxt: fix stats counter resource Ajit Khaparde
  2021-07-30 14:14 ` [dpdk-dev] [PATCH 0/2] fixes to bnxt PMD Ajit Khaparde
  2 siblings, 0 replies; 5+ messages in thread
From: Ajit Khaparde @ 2021-07-30  5:36 UTC (permalink / raw)
  To: dev; +Cc: Jay Ding, stable, Randy Schacher

[-- Attachment #1: Type: text/plain, Size: 1674 bytes --]

From: Jay Ding <jay.ding@broadcom.com>

The size of resource qcap list could be different when FW
and application are not match. Application should be able
to handle it when the FW is older and the size of qcap is
smaller.

This patch is needed for backward compatibility on older
firmware versions.

Fixes: 873661aa641a1 ("net/bnxt: support shared session")
Cc: stable@dpdk.org
Signed-off-by: Jay Ding <jay.ding@broadcom.com>
Reviewed-by: Randy Schacher <stuart.schacher@broadcom.com>
Acked-by: Ajit Khaparde <ajit.khaparde@broadcom.com>
---
 drivers/net/bnxt/tf_core/tf_msg.c | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/drivers/net/bnxt/tf_core/tf_msg.c b/drivers/net/bnxt/tf_core/tf_msg.c
index 6717710dbd..e07d9168be 100644
--- a/drivers/net/bnxt/tf_core/tf_msg.c
+++ b/drivers/net/bnxt/tf_core/tf_msg.c
@@ -440,18 +440,18 @@ tf_msg_session_resc_qcaps(struct tf *tfp,
 	 * Should always get expected number of entries
 	 */
 	if (tfp_le_to_cpu_32(resp.size) != size) {
-		TFP_DRV_LOG(ERR,
-			    "%s: QCAPS message size error, rc:%s\n",
+		TFP_DRV_LOG(WARNING,
+			    "%s: QCAPS message size error, rc:%s, request %d vs response %d\n",
 			    tf_dir_2_str(dir),
-			    strerror(EINVAL));
-		rc = -EINVAL;
-		goto cleanup;
+			    strerror(EINVAL),
+			    size,
+			    resp.size);
 	}
 
 	/* Post process the response */
 	data = (struct tf_rm_resc_req_entry *)qcaps_buf.va_addr;
 
-	for (i = 0; i < size; i++) {
+	for (i = 0; i < resp.size; i++) {
 		query[i].type = tfp_le_to_cpu_32(data[i].type);
 		query[i].min = tfp_le_to_cpu_16(data[i].min);
 		query[i].max = tfp_le_to_cpu_16(data[i].max);
-- 
2.21.1 (Apple Git-122.3)


^ permalink raw reply	[flat|nested] 5+ messages in thread

* [dpdk-dev] [PATCH 2/2] net/bnxt: fix stats counter resource
  2021-07-30  5:36 [dpdk-dev] [PATCH 0/2] fixes to bnxt PMD Ajit Khaparde
  2021-07-30  5:36 ` [dpdk-dev] [PATCH 1/2] net/bnxt: fix resource qcap list handling Ajit Khaparde
@ 2021-07-30  5:36 ` Ajit Khaparde
  2021-07-30 14:14 ` [dpdk-dev] [PATCH 0/2] fixes to bnxt PMD Ajit Khaparde
  2 siblings, 0 replies; 5+ messages in thread
From: Ajit Khaparde @ 2021-07-30  5:36 UTC (permalink / raw)
  To: dev; +Cc: Kishore Padmanabha, stable, Randy Schacher

[-- Attachment #1: Type: text/plain, Size: 1632 bytes --]

From: Kishore Padmanabha <kishore.padmanabha@broadcom.com>

The flow counters is reduced from 8192 to 6912 for Whitney
for compatibility with different versions of FW.

Fixes: 6fad9115101c ("net/bnxt: reorganize ULP template directory structure")
Cc: stable@dpdk.org
Signed-off-by: Kishore Padmanabha <kishore.padmanabha@broadcom.com>
Reviewed-by: Randy Schacher <stuart.schacher@broadcom.com>
Acked-by: Ajit Khaparde <ajit.khaparde@broadcom.com>
---
 .../net/bnxt/tf_ulp/generic_templates/ulp_template_db_tbl.c   | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/net/bnxt/tf_ulp/generic_templates/ulp_template_db_tbl.c b/drivers/net/bnxt/tf_ulp/generic_templates/ulp_template_db_tbl.c
index 6664353764..7951de8a4e 100644
--- a/drivers/net/bnxt/tf_ulp/generic_templates/ulp_template_db_tbl.c
+++ b/drivers/net/bnxt/tf_ulp/generic_templates/ulp_template_db_tbl.c
@@ -1154,7 +1154,7 @@ struct bnxt_ulp_resource_resv_info ulp_resource_resv_list[] = {
 	.direction               = TF_DIR_RX,
 	.resource_func           = BNXT_ULP_RESOURCE_FUNC_INDEX_TABLE,
 	.resource_type           = TF_TBL_TYPE_ACT_STATS_64,
-	.count                   = 8192
+	.count                   = 6912
 	},
 	{
 	.app_id                  = 0,
@@ -1298,7 +1298,7 @@ struct bnxt_ulp_resource_resv_info ulp_resource_resv_list[] = {
 	.direction               = TF_DIR_TX,
 	.resource_func           = BNXT_ULP_RESOURCE_FUNC_INDEX_TABLE,
 	.resource_type           = TF_TBL_TYPE_ACT_STATS_64,
-	.count                   = 8192
+	.count                   = 6912
 	},
 	{
 	.app_id                  = 0,
-- 
2.21.1 (Apple Git-122.3)


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [dpdk-dev] [PATCH 0/2] fixes to bnxt PMD
  2021-07-30  5:36 [dpdk-dev] [PATCH 0/2] fixes to bnxt PMD Ajit Khaparde
  2021-07-30  5:36 ` [dpdk-dev] [PATCH 1/2] net/bnxt: fix resource qcap list handling Ajit Khaparde
  2021-07-30  5:36 ` [dpdk-dev] [PATCH 2/2] net/bnxt: fix stats counter resource Ajit Khaparde
@ 2021-07-30 14:14 ` Ajit Khaparde
  2 siblings, 0 replies; 5+ messages in thread
From: Ajit Khaparde @ 2021-07-30 14:14 UTC (permalink / raw)
  To: dpdk-dev

[-- Attachment #1: Type: text/plain, Size: 568 bytes --]

On Thu, Jul 29, 2021 at 10:36 PM Ajit Khaparde
<ajit.khaparde@broadcom.com> wrote:
>
> Fixes to bnxt PMD to address compatibility issues with different FW versions.
Patches applied to dpdk-next-net-brcm.

>
> Jay Ding (1):
>   net/bnxt: fix resource qcap list handling
>
> Kishore Padmanabha (1):
>   net/bnxt: fix stats counter resource
>
>  drivers/net/bnxt/tf_core/tf_msg.c                    | 12 ++++++------
>  .../tf_ulp/generic_templates/ulp_template_db_tbl.c   |  4 ++--
>  2 files changed, 8 insertions(+), 8 deletions(-)
>
> --
> 2.21.1 (Apple Git-122.3)
>

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [dpdk-dev] [PATCH 0/2] fixes to bnxt PMD
@ 2017-07-25  3:32 Ajit Khaparde
  0 siblings, 0 replies; 5+ messages in thread
From: Ajit Khaparde @ 2017-07-25  3:32 UTC (permalink / raw)
  To: dev; +Cc: ferruh.yigit

Couple of fixes to the bnxt PMD against the dpdk-next-net tree.
Please apply.

  net/bnxt: check current vlan anti spoof value before setting new value
  net/bnxt: fix arguments to _rte_eth_dev_callback_process

 drivers/net/bnxt/rte_pmd_bnxt.c | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

-- 
2.10.1 (Apple Git-78)

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2021-07-30 14:14 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-07-30  5:36 [dpdk-dev] [PATCH 0/2] fixes to bnxt PMD Ajit Khaparde
2021-07-30  5:36 ` [dpdk-dev] [PATCH 1/2] net/bnxt: fix resource qcap list handling Ajit Khaparde
2021-07-30  5:36 ` [dpdk-dev] [PATCH 2/2] net/bnxt: fix stats counter resource Ajit Khaparde
2021-07-30 14:14 ` [dpdk-dev] [PATCH 0/2] fixes to bnxt PMD Ajit Khaparde
  -- strict thread matches above, loose matches on Subject: below --
2017-07-25  3:32 Ajit Khaparde

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).