Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/72760/?format=api
http://patches.dpdk.org/api/patches/72760/?format=api", "web_url": "http://patches.dpdk.org/project/dpdk/patch/20200702041134.43198-39-ajit.khaparde@broadcom.com/", "project": { "id": 1, "url": "http://patches.dpdk.org/api/projects/1/?format=api", "name": "DPDK", "link_name": "dpdk", "list_id": "dev.dpdk.org", "list_email": "dev@dpdk.org", "web_url": "http://core.dpdk.org", "scm_url": "git://dpdk.org/dpdk", "webscm_url": "http://git.dpdk.org/dpdk", "list_archive_url": "https://inbox.dpdk.org/dev", "list_archive_url_format": "https://inbox.dpdk.org/dev/{}", "commit_url_format": "" }, "msgid": "<20200702041134.43198-39-ajit.khaparde@broadcom.com>", "list_archive_url": "https://inbox.dpdk.org/dev/20200702041134.43198-39-ajit.khaparde@broadcom.com", "date": "2020-07-02T04:11:21", "name": "[v3,38/51] net/bnxt: add support for internal exact match entries", "commit_ref": null, "pull_url": null, "state": "superseded", "archived": true, "hash": "63c9648caa39c0e0df7cd33a32e0a3cc8364abf1", "submitter": { "id": 501, "url": "http://patches.dpdk.org/api/people/501/?format=api", "name": "Ajit Khaparde", "email": "ajit.khaparde@broadcom.com" }, "delegate": { "id": 1766, "url": "http://patches.dpdk.org/api/users/1766/?format=api", "username": "ajitkhaparde", "first_name": "Ajit", "last_name": "Khaparde", "email": "ajit.khaparde@broadcom.com" }, "mbox": "http://patches.dpdk.org/project/dpdk/patch/20200702041134.43198-39-ajit.khaparde@broadcom.com/mbox/", "series": [ { "id": 10724, "url": "http://patches.dpdk.org/api/series/10724/?format=api", "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=10724", "date": "2020-07-02T04:10:43", "name": "add features for host-based flow management", "version": 3, "mbox": "http://patches.dpdk.org/series/10724/mbox/" } ], "comments": "http://patches.dpdk.org/api/patches/72760/comments/", "check": "success", "checks": "http://patches.dpdk.org/api/patches/72760/checks/", "tags": {}, "related": [], "headers": { "Return-Path": "<dev-bounces@dpdk.org>", "X-Original-To": "patchwork@inbox.dpdk.org", "Delivered-To": "patchwork@inbox.dpdk.org", "Received": [ "from dpdk.org (dpdk.org [92.243.14.124])\n\tby inbox.dpdk.org (Postfix) with ESMTP id 37895A0523;\n\tThu, 2 Jul 2020 06:20:10 +0200 (CEST)", "from [92.243.14.124] (localhost [127.0.0.1])\n\tby dpdk.org (Postfix) with ESMTP id 901981D71D;\n\tThu, 2 Jul 2020 06:12:47 +0200 (CEST)", "from rnd-relay.smtp.broadcom.com (rnd-relay.smtp.broadcom.com\n [192.19.229.170]) by dpdk.org (Postfix) with ESMTP id AC5A81D174\n for <dev@dpdk.org>; Thu, 2 Jul 2020 06:11:50 +0200 (CEST)", "from mail-irv-17.broadcom.com (mail-irv-17.lvn.broadcom.net\n [10.75.242.48])\n by rnd-relay.smtp.broadcom.com (Postfix) with ESMTP id F269130C0F9;\n Wed, 1 Jul 2020 21:11:49 -0700 (PDT)", "from localhost.localdomain (unknown [10.230.185.215])\n by mail-irv-17.broadcom.com (Postfix) with ESMTP id 64E8214008C;\n Wed, 1 Jul 2020 21:11:49 -0700 (PDT)" ], "DKIM-Filter": "OpenDKIM Filter v2.10.3 rnd-relay.smtp.broadcom.com F269130C0F9", "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/simple; d=broadcom.com;\n s=dkimrelay; t=1593663110;\n bh=auZ9xWk3uZRlzhBwfdVDwDXMK4f6+d0O9b2SNpy7Dw4=;\n h=From:To:Cc:Subject:Date:In-Reply-To:References:From;\n b=mw2SyVRVvU2pdG0ZjL2J6HRvFKaZByLZMtNTPZme51TxDv5DfNRBOfbq4Vue5Soz/\n 0fUr0+mJiz1JVuNp6PQhgc/ak34IabDtzh5YOTy8jYUMD96IV/ez9nELqKFNUMLmF9\n 7rYNGGAlgmmHX0JlOXCEQvRX/XYmNeMboMtowmHU=", "From": "Ajit Khaparde <ajit.khaparde@broadcom.com>", "To": "dev@dpdk.org", "Cc": "Kishore Padmanabha <kishore.padmanabha@broadcom.com>,\n Venkat Duvvuru <venkatkumar.duvvuru@broadcom.com>,\n Somnath Kotur <somnath.kotur@broadcom.com>", "Date": "Wed, 1 Jul 2020 21:11:21 -0700", "Message-Id": "<20200702041134.43198-39-ajit.khaparde@broadcom.com>", "X-Mailer": "git-send-email 2.21.1 (Apple Git-122.3)", "In-Reply-To": "<20200702041134.43198-1-ajit.khaparde@broadcom.com>", "References": "<1f5421dc-0453-6dc8-09c2-ddfff6eb4888@intel.com>\n <20200702041134.43198-1-ajit.khaparde@broadcom.com>", "MIME-Version": "1.0", "Content-Transfer-Encoding": "8bit", "Subject": "[dpdk-dev] [PATCH v3 38/51] net/bnxt: add support for internal\n\texact match entries", "X-BeenThere": "dev@dpdk.org", "X-Mailman-Version": "2.1.15", "Precedence": "list", "List-Id": "DPDK patches and discussions <dev.dpdk.org>", "List-Unsubscribe": "<https://mails.dpdk.org/options/dev>,\n <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>,\n <mailto:dev-request@dpdk.org?subject=subscribe>", "Errors-To": "dev-bounces@dpdk.org", "Sender": "\"dev\" <dev-bounces@dpdk.org>" }, "content": "From: Kishore Padmanabha <kishore.padmanabha@broadcom.com>\n\nAdded support for the internal exact match entries.\n\nSigned-off-by: Kishore Padmanabha <kishore.padmanabha@broadcom.com>\nSigned-off-by: Venkat Duvvuru <venkatkumar.duvvuru@broadcom.com>\nReviewed-by: Somnath Kotur <somnath.kotur@broadcom.com>\nReviewed-by: Ajit Khaparde <ajit.khaparde@broadcom.com>\n---\n drivers/net/bnxt/tf_ulp/bnxt_ulp.c | 38 +++++++++++++++++++\n drivers/net/bnxt/tf_ulp/ulp_flow_db.c | 13 +++++--\n drivers/net/bnxt/tf_ulp/ulp_mapper.c | 21 ++++++----\n drivers/net/bnxt/tf_ulp/ulp_mark_mgr.c | 4 ++\n .../net/bnxt/tf_ulp/ulp_template_db_class.c | 6 +--\n .../net/bnxt/tf_ulp/ulp_template_db_enum.h | 13 ++++---\n drivers/net/bnxt/tf_ulp/ulp_template_db_tbl.c | 7 +++-\n drivers/net/bnxt/tf_ulp/ulp_template_struct.h | 5 +++\n 8 files changed, 85 insertions(+), 22 deletions(-)", "diff": "diff --git a/drivers/net/bnxt/tf_ulp/bnxt_ulp.c b/drivers/net/bnxt/tf_ulp/bnxt_ulp.c\nindex 4835b951e..1b52861d4 100644\n--- a/drivers/net/bnxt/tf_ulp/bnxt_ulp.c\n+++ b/drivers/net/bnxt/tf_ulp/bnxt_ulp.c\n@@ -213,8 +213,27 @@ static int32_t\n ulp_eem_tbl_scope_init(struct bnxt *bp)\n {\n \tstruct tf_alloc_tbl_scope_parms params = {0};\n+\tuint32_t dev_id;\n+\tstruct bnxt_ulp_device_params *dparms;\n \tint rc;\n \n+\t/* Get the dev specific number of flows that needed to be supported. */\n+\tif (bnxt_ulp_cntxt_dev_id_get(bp->ulp_ctx, &dev_id)) {\n+\t\tBNXT_TF_DBG(ERR, \"Invalid device id\\n\");\n+\t\treturn -EINVAL;\n+\t}\n+\n+\tdparms = bnxt_ulp_device_params_get(dev_id);\n+\tif (!dparms) {\n+\t\tBNXT_TF_DBG(ERR, \"could not fetch the device params\\n\");\n+\t\treturn -ENODEV;\n+\t}\n+\n+\tif (dparms->flow_mem_type != BNXT_ULP_FLOW_MEM_TYPE_EXT) {\n+\t\tBNXT_TF_DBG(INFO, \"Table Scope alloc is not required\\n\");\n+\t\treturn 0;\n+\t}\n+\n \tbnxt_init_tbl_scope_parms(bp, ¶ms);\n \n \trc = tf_alloc_tbl_scope(&bp->tfp, ¶ms);\n@@ -240,6 +259,8 @@ ulp_eem_tbl_scope_deinit(struct bnxt *bp, struct bnxt_ulp_context *ulp_ctx)\n \tstruct tf_free_tbl_scope_parms\tparams = {0};\n \tstruct tf\t\t\t*tfp;\n \tint32_t\t\t\t\trc = 0;\n+\tstruct bnxt_ulp_device_params *dparms;\n+\tuint32_t dev_id;\n \n \tif (!ulp_ctx || !ulp_ctx->cfg_data)\n \t\treturn -EINVAL;\n@@ -254,6 +275,23 @@ ulp_eem_tbl_scope_deinit(struct bnxt *bp, struct bnxt_ulp_context *ulp_ctx)\n \t\treturn -EINVAL;\n \t}\n \n+\t/* Get the dev specific number of flows that needed to be supported. */\n+\tif (bnxt_ulp_cntxt_dev_id_get(bp->ulp_ctx, &dev_id)) {\n+\t\tBNXT_TF_DBG(ERR, \"Invalid device id\\n\");\n+\t\treturn -EINVAL;\n+\t}\n+\n+\tdparms = bnxt_ulp_device_params_get(dev_id);\n+\tif (!dparms) {\n+\t\tBNXT_TF_DBG(ERR, \"could not fetch the device params\\n\");\n+\t\treturn -ENODEV;\n+\t}\n+\n+\tif (dparms->flow_mem_type != BNXT_ULP_FLOW_MEM_TYPE_EXT) {\n+\t\tBNXT_TF_DBG(INFO, \"Table Scope free is not required\\n\");\n+\t\treturn 0;\n+\t}\n+\n \trc = bnxt_ulp_cntxt_tbl_scope_id_get(ulp_ctx, ¶ms.tbl_scope_id);\n \tif (rc) {\n \t\tBNXT_TF_DBG(ERR, \"Failed to get the table scope id\\n\");\ndiff --git a/drivers/net/bnxt/tf_ulp/ulp_flow_db.c b/drivers/net/bnxt/tf_ulp/ulp_flow_db.c\nindex 384dc5b2c..7696de2a5 100644\n--- a/drivers/net/bnxt/tf_ulp/ulp_flow_db.c\n+++ b/drivers/net/bnxt/tf_ulp/ulp_flow_db.c\n@@ -114,7 +114,8 @@ ulp_flow_db_res_params_to_info(struct ulp_fdb_resource_info *resource_info,\n \t}\n \n \t/* Store the handle as 64bit only for EM table entries */\n-\tif (params->resource_func != BNXT_ULP_RESOURCE_FUNC_EM_TABLE) {\n+\tif (params->resource_func != BNXT_ULP_RESOURCE_FUNC_EXT_EM_TABLE &&\n+\t params->resource_func != BNXT_ULP_RESOURCE_FUNC_INT_EM_TABLE) {\n \t\tresource_info->resource_hndl = (uint32_t)params->resource_hndl;\n \t\tresource_info->resource_type = params->resource_type;\n \t\tresource_info->resource_sub_type = params->resource_sub_type;\n@@ -145,7 +146,8 @@ ulp_flow_db_res_info_to_params(struct ulp_fdb_resource_info *resource_info,\n \t/* use the helper function to get the resource func */\n \tparams->resource_func = ulp_flow_db_resource_func_get(resource_info);\n \n-\tif (params->resource_func == BNXT_ULP_RESOURCE_FUNC_EM_TABLE) {\n+\tif (params->resource_func == BNXT_ULP_RESOURCE_FUNC_EXT_EM_TABLE ||\n+\t params->resource_func == BNXT_ULP_RESOURCE_FUNC_INT_EM_TABLE) {\n \t\tparams->resource_hndl = resource_info->resource_em_handle;\n \t} else if (params->resource_func & ULP_FLOW_DB_RES_FUNC_NEED_LOWER) {\n \t\tparams->resource_hndl = resource_info->resource_hndl;\n@@ -908,7 +910,9 @@ ulp_flow_db_resource_hndl_get(struct bnxt_ulp_context *ulp_ctx,\n \t\t\t\t}\n \n \t\t\t} else if (resource_func ==\n-\t\t\t\t BNXT_ULP_RESOURCE_FUNC_EM_TABLE){\n+\t\t\t\t BNXT_ULP_RESOURCE_FUNC_EXT_EM_TABLE ||\n+\t\t\t\t resource_func ==\n+\t\t\t\t BNXT_ULP_RESOURCE_FUNC_INT_EM_TABLE) {\n \t\t\t\t*res_hndl = fid_res->resource_em_handle;\n \t\t\t\treturn 0;\n \t\t\t}\n@@ -966,7 +970,8 @@ static void ulp_flow_db_res_dump(struct ulp_fdb_resource_info\t*r,\n \n \tBNXT_TF_DBG(DEBUG, \"Resource func = %x, nxt_resource_idx = %x\\n\",\n \t\t res_func, (ULP_FLOW_DB_RES_NXT_MASK & r->nxt_resource_idx));\n-\tif (res_func == BNXT_ULP_RESOURCE_FUNC_EM_TABLE)\n+\tif (res_func == BNXT_ULP_RESOURCE_FUNC_EXT_EM_TABLE ||\n+\t res_func == BNXT_ULP_RESOURCE_FUNC_INT_EM_TABLE)\n \t\tBNXT_TF_DBG(DEBUG, \"EM Handle = 0x%016\" PRIX64 \"\\n\",\n \t\t\t r->resource_em_handle);\n \telse\ndiff --git a/drivers/net/bnxt/tf_ulp/ulp_mapper.c b/drivers/net/bnxt/tf_ulp/ulp_mapper.c\nindex 6fd55b2a2..e2b771c9f 100644\n--- a/drivers/net/bnxt/tf_ulp/ulp_mapper.c\n+++ b/drivers/net/bnxt/tf_ulp/ulp_mapper.c\n@@ -556,15 +556,18 @@ ulp_mapper_index_entry_free(struct bnxt_ulp_context *ulp,\n }\n \n static inline int32_t\n-ulp_mapper_eem_entry_free(struct bnxt_ulp_context *ulp,\n-\t\t\t struct tf *tfp,\n-\t\t\t struct ulp_flow_db_res_params *res)\n+ulp_mapper_em_entry_free(struct bnxt_ulp_context *ulp,\n+\t\t\t struct tf *tfp,\n+\t\t\t struct ulp_flow_db_res_params *res)\n {\n \tstruct tf_delete_em_entry_parms fparms = { 0 };\n \tint32_t rc;\n \n \tfparms.dir\t\t= res->direction;\n-\tfparms.mem\t\t= TF_MEM_EXTERNAL;\n+\tif (res->resource_func == BNXT_ULP_RESOURCE_FUNC_EXT_EM_TABLE)\n+\t\tfparms.mem = TF_MEM_EXTERNAL;\n+\telse\n+\t\tfparms.mem = TF_MEM_INTERNAL;\n \tfparms.flow_handle\t= res->resource_hndl;\n \n \trc = bnxt_ulp_cntxt_tbl_scope_id_get(ulp, &fparms.tbl_scope_id);\n@@ -1443,7 +1446,7 @@ ulp_mapper_em_tbl_process(struct bnxt_ulp_mapper_parms *parms,\n #endif\n \n \t/* do the transpose for the internal EM keys */\n-\tif (tbl->resource_type == TF_MEM_INTERNAL)\n+\tif (tbl->resource_func == BNXT_ULP_RESOURCE_FUNC_INT_EM_TABLE)\n \t\tulp_blob_perform_byte_reverse(&key);\n \n \trc = bnxt_ulp_cntxt_tbl_scope_id_get(parms->ulp_ctx,\n@@ -2066,7 +2069,8 @@ ulp_mapper_class_tbls_process(struct bnxt_ulp_mapper_parms *parms)\n \t\tcase BNXT_ULP_RESOURCE_FUNC_TCAM_TABLE:\n \t\t\trc = ulp_mapper_tcam_tbl_process(parms, tbl);\n \t\t\tbreak;\n-\t\tcase BNXT_ULP_RESOURCE_FUNC_EM_TABLE:\n+\t\tcase BNXT_ULP_RESOURCE_FUNC_EXT_EM_TABLE:\n+\t\tcase BNXT_ULP_RESOURCE_FUNC_INT_EM_TABLE:\n \t\t\trc = ulp_mapper_em_tbl_process(parms, tbl);\n \t\t\tbreak;\n \t\tcase BNXT_ULP_RESOURCE_FUNC_INDEX_TABLE:\n@@ -2119,8 +2123,9 @@ ulp_mapper_resource_free(struct bnxt_ulp_context *ulp,\n \tcase BNXT_ULP_RESOURCE_FUNC_TCAM_TABLE:\n \t\trc = ulp_mapper_tcam_entry_free(ulp, tfp, res);\n \t\tbreak;\n-\tcase BNXT_ULP_RESOURCE_FUNC_EM_TABLE:\n-\t\trc = ulp_mapper_eem_entry_free(ulp, tfp, res);\n+\tcase BNXT_ULP_RESOURCE_FUNC_EXT_EM_TABLE:\n+\tcase BNXT_ULP_RESOURCE_FUNC_INT_EM_TABLE:\n+\t\trc = ulp_mapper_em_entry_free(ulp, tfp, res);\n \t\tbreak;\n \tcase BNXT_ULP_RESOURCE_FUNC_INDEX_TABLE:\n \t\trc = ulp_mapper_index_entry_free(ulp, tfp, res);\ndiff --git a/drivers/net/bnxt/tf_ulp/ulp_mark_mgr.c b/drivers/net/bnxt/tf_ulp/ulp_mark_mgr.c\nindex 517422338..b3527eccb 100644\n--- a/drivers/net/bnxt/tf_ulp/ulp_mark_mgr.c\n+++ b/drivers/net/bnxt/tf_ulp/ulp_mark_mgr.c\n@@ -87,6 +87,9 @@ ulp_mark_db_init(struct bnxt_ulp_context *ctxt)\n \n \t/* Need to allocate 2 * Num flows to account for hash type bit */\n \tmark_tbl->gfid_num_entries = dparms->mark_db_gfid_entries;\n+\tif (!mark_tbl->gfid_num_entries)\n+\t\tgoto gfid_not_required;\n+\n \tmark_tbl->gfid_tbl = rte_zmalloc(\"ulp_rx_eem_flow_mark_table\",\n \t\t\t\t\t mark_tbl->gfid_num_entries *\n \t\t\t\t\t sizeof(struct bnxt_gfid_mark_info),\n@@ -109,6 +112,7 @@ ulp_mark_db_init(struct bnxt_ulp_context *ctxt)\n \t\t mark_tbl->gfid_num_entries - 1,\n \t\t mark_tbl->gfid_mask);\n \n+gfid_not_required:\n \t/* Add the mark tbl to the ulp context. */\n \tbnxt_ulp_cntxt_ptr2_mark_db_set(ctxt, mark_tbl);\n \treturn 0;\ndiff --git a/drivers/net/bnxt/tf_ulp/ulp_template_db_class.c b/drivers/net/bnxt/tf_ulp/ulp_template_db_class.c\nindex d4c7bfa4d..8eb559050 100644\n--- a/drivers/net/bnxt/tf_ulp/ulp_template_db_class.c\n+++ b/drivers/net/bnxt/tf_ulp/ulp_template_db_class.c\n@@ -179,7 +179,7 @@ struct bnxt_ulp_mapper_tbl_info ulp_class_tbl_list[] = {\n \t.critical_resource = BNXT_ULP_CRITICAL_RESOURCE_NO\n \t},\n \t{\n-\t.resource_func = BNXT_ULP_RESOURCE_FUNC_EM_TABLE,\n+\t.resource_func = BNXT_ULP_RESOURCE_FUNC_EXT_EM_TABLE,\n \t.resource_type = TF_MEM_EXTERNAL,\n \t.resource_sub_type =\n \t\tBNXT_ULP_RESOURCE_SUB_TYPE_NOT_USED,\n@@ -284,7 +284,7 @@ struct bnxt_ulp_mapper_tbl_info ulp_class_tbl_list[] = {\n \t.critical_resource = BNXT_ULP_CRITICAL_RESOURCE_NO\n \t},\n \t{\n-\t.resource_func = BNXT_ULP_RESOURCE_FUNC_EM_TABLE,\n+\t.resource_func = BNXT_ULP_RESOURCE_FUNC_EXT_EM_TABLE,\n \t.resource_type = TF_MEM_EXTERNAL,\n \t.resource_sub_type =\n \t\tBNXT_ULP_RESOURCE_SUB_TYPE_NOT_USED,\n@@ -389,7 +389,7 @@ struct bnxt_ulp_mapper_tbl_info ulp_class_tbl_list[] = {\n \t.critical_resource = BNXT_ULP_CRITICAL_RESOURCE_NO\n \t},\n \t{\n-\t.resource_func = BNXT_ULP_RESOURCE_FUNC_EM_TABLE,\n+\t.resource_func = BNXT_ULP_RESOURCE_FUNC_EXT_EM_TABLE,\n \t.resource_type = TF_MEM_EXTERNAL,\n \t.resource_sub_type =\n \t\tBNXT_ULP_RESOURCE_SUB_TYPE_NOT_USED,\ndiff --git a/drivers/net/bnxt/tf_ulp/ulp_template_db_enum.h b/drivers/net/bnxt/tf_ulp/ulp_template_db_enum.h\nindex 7c0dc5ee4..3168d29a9 100644\n--- a/drivers/net/bnxt/tf_ulp/ulp_template_db_enum.h\n+++ b/drivers/net/bnxt/tf_ulp/ulp_template_db_enum.h\n@@ -149,10 +149,11 @@ enum bnxt_ulp_flow_mem_type {\n };\n \n enum bnxt_ulp_glb_regfile_index {\n-\tBNXT_ULP_GLB_REGFILE_INDEX_GLB_PROF_FUNC_ID = 0,\n-\tBNXT_ULP_GLB_REGFILE_INDEX_GLB_L2_CNTXT_ID = 1,\n-\tBNXT_ULP_GLB_REGFILE_INDEX_GLB_LOOPBACK_AREC_INDEX = 2,\n-\tBNXT_ULP_GLB_REGFILE_INDEX_LAST = 3\n+\tBNXT_ULP_GLB_REGFILE_INDEX_NOT_USED = 0,\n+\tBNXT_ULP_GLB_REGFILE_INDEX_GLB_PROF_FUNC_ID = 1,\n+\tBNXT_ULP_GLB_REGFILE_INDEX_GLB_L2_CNTXT_ID = 2,\n+\tBNXT_ULP_GLB_REGFILE_INDEX_GLB_LB_AREC_PTR = 3,\n+\tBNXT_ULP_GLB_REGFILE_INDEX_LAST = 4\n };\n \n enum bnxt_ulp_hdr_type {\n@@ -257,8 +258,8 @@ enum bnxt_ulp_match_type_bitmask {\n \n enum bnxt_ulp_resource_func {\n \tBNXT_ULP_RESOURCE_FUNC_INVALID = 0x00,\n-\tBNXT_ULP_RESOURCE_FUNC_EM_TABLE = 0x20,\n-\tBNXT_ULP_RESOURCE_FUNC_RSVD1 = 0x40,\n+\tBNXT_ULP_RESOURCE_FUNC_EXT_EM_TABLE = 0x20,\n+\tBNXT_ULP_RESOURCE_FUNC_INT_EM_TABLE = 0x40,\n \tBNXT_ULP_RESOURCE_FUNC_RSVD2 = 0x60,\n \tBNXT_ULP_RESOURCE_FUNC_TCAM_TABLE = 0x80,\n \tBNXT_ULP_RESOURCE_FUNC_INDEX_TABLE = 0x81,\ndiff --git a/drivers/net/bnxt/tf_ulp/ulp_template_db_tbl.c b/drivers/net/bnxt/tf_ulp/ulp_template_db_tbl.c\nindex beca3baa7..7c440e3a4 100644\n--- a/drivers/net/bnxt/tf_ulp/ulp_template_db_tbl.c\n+++ b/drivers/net/bnxt/tf_ulp/ulp_template_db_tbl.c\n@@ -321,7 +321,12 @@ struct bnxt_ulp_device_params ulp_device_params[BNXT_ULP_DEVICE_ID_LAST] = {\n \t.mark_db_gfid_entries = 65536,\n \t.flow_count_db_entries = 16384,\n \t.num_resources_per_flow = 8,\n-\t.num_phy_ports = 2\n+\t.num_phy_ports = 2,\n+\t.ext_cntr_table_type = 0,\n+\t.byte_count_mask = 0x00000003ffffffff,\n+\t.packet_count_mask = 0xfffffffc00000000,\n+\t.byte_count_shift = 0,\n+\t.packet_count_shift = 36\n \t}\n };\n \ndiff --git a/drivers/net/bnxt/tf_ulp/ulp_template_struct.h b/drivers/net/bnxt/tf_ulp/ulp_template_struct.h\nindex 4bcd02ba2..5a7a7b910 100644\n--- a/drivers/net/bnxt/tf_ulp/ulp_template_struct.h\n+++ b/drivers/net/bnxt/tf_ulp/ulp_template_struct.h\n@@ -146,6 +146,11 @@ struct bnxt_ulp_device_params {\n \tuint64_t\t\t\tflow_db_num_entries;\n \tuint32_t\t\t\tflow_count_db_entries;\n \tuint32_t\t\t\tnum_resources_per_flow;\n+\tuint32_t\t\t\text_cntr_table_type;\n+\tuint64_t\t\t\tbyte_count_mask;\n+\tuint64_t\t\t\tpacket_count_mask;\n+\tuint32_t\t\t\tbyte_count_shift;\n+\tuint32_t\t\t\tpacket_count_shift;\n };\n \n /* Flow Mapper */\n", "prefixes": [ "v3", "38/51" ] }{ "id": 72760, "url": "