get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

GET /api/patches/71428/?format=api
HTTP 200 OK
Allow: GET, PUT, PATCH, HEAD, OPTIONS
Content-Type: application/json
Vary: Accept

{
    "id": 71428,
    "url": "http://patches.dpdk.org/api/patches/71428/?format=api",
    "web_url": "http://patches.dpdk.org/project/dpdk/patch/20200612132934.16488-37-somnath.kotur@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": "<20200612132934.16488-37-somnath.kotur@broadcom.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/20200612132934.16488-37-somnath.kotur@broadcom.com",
    "date": "2020-06-12T13:29:20",
    "name": "[36/50] net/bnxt: add index opcode and index operand mapper table",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": true,
    "hash": "2100dc5f2b05b6d97b2d65b1e50e71aaf5e785a9",
    "submitter": {
        "id": 908,
        "url": "http://patches.dpdk.org/api/people/908/?format=api",
        "name": "Somnath Kotur",
        "email": "somnath.kotur@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/20200612132934.16488-37-somnath.kotur@broadcom.com/mbox/",
    "series": [
        {
            "id": 10436,
            "url": "http://patches.dpdk.org/api/series/10436/?format=api",
            "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=10436",
            "date": "2020-06-12T13:28:44",
            "name": "add features for host-based flow management",
            "version": 1,
            "mbox": "http://patches.dpdk.org/series/10436/mbox/"
        }
    ],
    "comments": "http://patches.dpdk.org/api/patches/71428/comments/",
    "check": "fail",
    "checks": "http://patches.dpdk.org/api/patches/71428/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 AEDB3A00BE;\n\tFri, 12 Jun 2020 15:48:59 +0200 (CEST)",
            "from [92.243.14.124] (localhost [127.0.0.1])\n\tby dpdk.org (Postfix) with ESMTP id 2D9481C300;\n\tFri, 12 Jun 2020 15:34:57 +0200 (CEST)",
            "from relay.smtp.broadcom.com (relay.smtp.broadcom.com\n [192.19.232.149]) by dpdk.org (Postfix) with ESMTP id 2F0AC1C225\n for <dev@dpdk.org>; Fri, 12 Jun 2020 15:34:53 +0200 (CEST)",
            "from dhcp-10-123-153-55.dhcp.broadcom.net\n (dhcp-10-123-153-55.dhcp.broadcom.net [10.123.153.55])\n by relay.smtp.broadcom.com (Postfix) with ESMTP id EE0F51BD7AC;\n Fri, 12 Jun 2020 06:34:51 -0700 (PDT)"
        ],
        "DKIM-Filter": "OpenDKIM Filter v2.10.3 relay.smtp.broadcom.com EE0F51BD7AC",
        "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/simple; d=broadcom.com;\n s=dkimrelay; t=1591968892;\n bh=EkCeFrwcDKq35y4vzupaaLTT46ppRP26Ihk5e0AUHWU=;\n h=From:To:Cc:Subject:Date:In-Reply-To:References:From;\n b=v16k92kVIya1WaSCoz5Kx3NiLTk5ktnzGtWkwtDtUJ7G8knUO3dmMQiGT+NqZklsy\n TpAbjFZlrG2+YmOthfzSOUVd7JmaYPbnIwetExrYexoq6cgWHKqgqr4EJroQ1Lo2dP\n zU97K4Ca8JsaxxtZLeH0GXv+G1ndewn9WaUJ86eo=",
        "From": "Somnath Kotur <somnath.kotur@broadcom.com>",
        "To": "dev@dpdk.org",
        "Cc": "ferruh.yigit@intel.com",
        "Date": "Fri, 12 Jun 2020 18:59:20 +0530",
        "Message-Id": "<20200612132934.16488-37-somnath.kotur@broadcom.com>",
        "X-Mailer": "git-send-email 2.10.1.613.g2cc2e70",
        "In-Reply-To": "<20200612132934.16488-1-somnath.kotur@broadcom.com>",
        "References": "<20200612132934.16488-1-somnath.kotur@broadcom.com>",
        "Subject": "[dpdk-dev] [PATCH 36/50] net/bnxt: add index opcode and index\n\toperand mapper table",
        "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\nExtended the regfile and computed field operations to a common\nindex opcode operation and added globlal resource operations are\nalso part of the index opcode operation.\n\nSigned-off-by: Kishore Padmanabha <kishore.padmanabha@broadcom.com>\nReviewed-by: Somnath Kotur <somnath.kotur@broadcom.com>\nSigned-off-by: Somnath Kotur <somnath.kotur@broadcom.com>\nSigned-off-by: Venkat Duvvuru <venkatkumar.duvvuru@broadcom.com>\n---\n drivers/net/bnxt/tf_ulp/ulp_mapper.c            | 56 +++++++++++++++++++++----\n drivers/net/bnxt/tf_ulp/ulp_template_db_act.c   |  9 ++--\n drivers/net/bnxt/tf_ulp/ulp_template_db_class.c | 45 +++++++-------------\n drivers/net/bnxt/tf_ulp/ulp_template_db_enum.h  |  8 ++++\n drivers/net/bnxt/tf_ulp/ulp_template_struct.h   |  4 +-\n 5 files changed, 80 insertions(+), 42 deletions(-)",
    "diff": "diff --git a/drivers/net/bnxt/tf_ulp/ulp_mapper.c b/drivers/net/bnxt/tf_ulp/ulp_mapper.c\nindex 053ff97..7ad3292 100644\n--- a/drivers/net/bnxt/tf_ulp/ulp_mapper.c\n+++ b/drivers/net/bnxt/tf_ulp/ulp_mapper.c\n@@ -1444,7 +1444,7 @@ ulp_mapper_index_tbl_process(struct bnxt_ulp_mapper_parms *parms,\n \tstruct bnxt_ulp_mapper_result_field_info *flds;\n \tstruct ulp_flow_db_res_params\tfid_parms;\n \tstruct ulp_blob\tdata;\n-\tuint64_t idx;\n+\tuint64_t idx = 0;\n \tuint16_t tmplen;\n \tuint32_t i, num_flds;\n \tint32_t rc = 0, trc = 0;\n@@ -1517,6 +1517,42 @@ ulp_mapper_index_tbl_process(struct bnxt_ulp_mapper_parms *parms,\n #endif\n \t}\n \n+\t/*\n+\t * Check for index opcode, if it is Global then\n+\t * no need to allocate the table, just set the table\n+\t * and exit since it is not maintained in the flow db.\n+\t */\n+\tif (tbl->index_opcode == BNXT_ULP_INDEX_OPCODE_GLOBAL) {\n+\t\t/* get the index from index operand */\n+\t\tif (tbl->index_operand < BNXT_ULP_GLB_REGFILE_INDEX_LAST &&\n+\t\t    ulp_mapper_glb_resource_read(parms->mapper_data,\n+\t\t\t\t\t\t tbl->direction,\n+\t\t\t\t\t\t tbl->index_operand,\n+\t\t\t\t\t\t &idx)) {\n+\t\t\tBNXT_TF_DBG(ERR, \"Glbl regfile[%d] read failed.\\n\",\n+\t\t\t\t    tbl->index_operand);\n+\t\t\treturn -EINVAL;\n+\t\t}\n+\t\t/* set the Tf index table */\n+\t\tsparms.dir\t\t= tbl->direction;\n+\t\tsparms.type\t\t= tbl->resource_type;\n+\t\tsparms.data\t\t= ulp_blob_data_get(&data, &tmplen);\n+\t\tsparms.data_sz_in_bytes = ULP_BITS_2_BYTE(tmplen);\n+\t\tsparms.idx\t\t= tfp_be_to_cpu_64(idx);\n+\t\tsparms.tbl_scope_id\t= tbl_scope_id;\n+\n+\t\trc = tf_set_tbl_entry(tfp, &sparms);\n+\t\tif (rc) {\n+\t\t\tBNXT_TF_DBG(ERR,\n+\t\t\t\t    \"Glbl Set table[%d][%s][%d] failed rc=%d\\n\",\n+\t\t\t\t    sparms.type,\n+\t\t\t\t    (sparms.dir == TF_DIR_RX) ? \"RX\" : \"TX\",\n+\t\t\t\t    sparms.idx,\n+\t\t\t\t    rc);\n+\t\t\treturn rc;\n+\t\t}\n+\t\treturn 0; /* success */\n+\t}\n \t/* Perform the tf table allocation by filling the alloc params */\n \taparms.dir\t\t= tbl->direction;\n \taparms.type\t\t= tbl->resource_type;\n@@ -1547,11 +1583,13 @@ ulp_mapper_index_tbl_process(struct bnxt_ulp_mapper_parms *parms,\n \n \t/* Always storing values in Regfile in BE */\n \tidx = tfp_cpu_to_be_64(idx);\n-\trc = ulp_regfile_write(parms->regfile, tbl->regfile_idx, idx);\n-\tif (!rc) {\n-\t\tBNXT_TF_DBG(ERR, \"Write regfile[%d] failed\\n\",\n-\t\t\t    tbl->regfile_idx);\n-\t\tgoto error;\n+\tif (tbl->index_opcode == BNXT_ULP_INDEX_OPCODE_ALLOCATE) {\n+\t\trc = ulp_regfile_write(parms->regfile, tbl->index_operand, idx);\n+\t\tif (!rc) {\n+\t\t\tBNXT_TF_DBG(ERR, \"Write regfile[%d] failed\\n\",\n+\t\t\t\t    tbl->index_operand);\n+\t\t\tgoto error;\n+\t\t}\n \t}\n \n \t/* Perform the tf table set by filling the set params */\n@@ -1816,7 +1854,11 @@ ulp_mapper_if_tbl_process(struct bnxt_ulp_mapper_parms *parms,\n \t}\n \n \t/* Get the index details from computed field */\n-\tidx = ULP_COMP_FLD_IDX_RD(parms, tbl->comp_field_idx);\n+\tif (tbl->index_opcode != BNXT_ULP_INDEX_OPCODE_COMP_FIELD) {\n+\t\tBNXT_TF_DBG(ERR, \"Invalid tbl index opcode\\n\");\n+\t\treturn -EINVAL;\n+\t}\n+\tidx = ULP_COMP_FLD_IDX_RD(parms, tbl->index_operand);\n \n \t/* Perform the tf table set by filling the set params */\n \tiftbl_params.dir = tbl->direction;\ndiff --git a/drivers/net/bnxt/tf_ulp/ulp_template_db_act.c b/drivers/net/bnxt/tf_ulp/ulp_template_db_act.c\nindex 8af23ef..9b14fa0 100644\n--- a/drivers/net/bnxt/tf_ulp/ulp_template_db_act.c\n+++ b/drivers/net/bnxt/tf_ulp/ulp_template_db_act.c\n@@ -76,7 +76,8 @@ struct bnxt_ulp_mapper_tbl_info ulp_act_tbl_list[] = {\n \t.result_bit_size = 128,\n \t.result_num_fields = 26,\n \t.encap_num_fields = 0,\n-\t.regfile_idx = BNXT_ULP_REGFILE_INDEX_MAIN_ACTION_PTR,\n+\t.index_opcode = BNXT_ULP_INDEX_OPCODE_ALLOCATE,\n+\t.index_operand = BNXT_ULP_REGFILE_INDEX_MAIN_ACTION_PTR,\n \t.mark_db_opcode = BNXT_ULP_MARK_DB_OPCODE_NOP\n \t},\n \t{\n@@ -90,7 +91,8 @@ struct bnxt_ulp_mapper_tbl_info ulp_act_tbl_list[] = {\n \t.result_bit_size = 128,\n \t.result_num_fields = 26,\n \t.encap_num_fields = 0,\n-\t.regfile_idx = BNXT_ULP_REGFILE_INDEX_MAIN_ACTION_PTR,\n+\t.index_opcode = BNXT_ULP_INDEX_OPCODE_ALLOCATE,\n+\t.index_operand = BNXT_ULP_REGFILE_INDEX_MAIN_ACTION_PTR,\n \t.mark_db_opcode = BNXT_ULP_MARK_DB_OPCODE_NOP\n \t},\n \t{\n@@ -104,7 +106,8 @@ struct bnxt_ulp_mapper_tbl_info ulp_act_tbl_list[] = {\n \t.result_bit_size = 128,\n \t.result_num_fields = 26,\n \t.encap_num_fields = 12,\n-\t.regfile_idx = BNXT_ULP_REGFILE_INDEX_MAIN_ACTION_PTR,\n+\t.index_opcode = BNXT_ULP_INDEX_OPCODE_ALLOCATE,\n+\t.index_operand = BNXT_ULP_REGFILE_INDEX_MAIN_ACTION_PTR,\n \t.mark_db_opcode = BNXT_ULP_MARK_DB_OPCODE_NOP\n \t}\n };\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 1945893..9b6e736 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@@ -113,8 +113,7 @@ struct bnxt_ulp_mapper_tbl_info ulp_class_tbl_list[] = {\n \t.ident_start_idx = 0,\n \t.ident_nums = 1,\n \t.mark_db_opcode = BNXT_ULP_MARK_DB_OPCODE_NOP,\n-\t.critical_resource = BNXT_ULP_CRITICAL_RESOURCE_NO,\n-\t.regfile_idx = BNXT_ULP_REGFILE_INDEX_NOT_USED\n+\t.critical_resource = BNXT_ULP_CRITICAL_RESOURCE_NO\n \t},\n \t{\n \t.resource_func = BNXT_ULP_RESOURCE_FUNC_TCAM_TABLE,\n@@ -135,8 +134,7 @@ struct bnxt_ulp_mapper_tbl_info ulp_class_tbl_list[] = {\n \t.ident_start_idx = 1,\n \t.ident_nums = 0,\n \t.mark_db_opcode = BNXT_ULP_MARK_DB_OPCODE_NOP,\n-\t.critical_resource = BNXT_ULP_CRITICAL_RESOURCE_NO,\n-\t.regfile_idx = BNXT_ULP_REGFILE_INDEX_NOT_USED\n+\t.critical_resource = BNXT_ULP_CRITICAL_RESOURCE_NO\n \t},\n \t{\n \t.resource_func = BNXT_ULP_RESOURCE_FUNC_CACHE_TABLE,\n@@ -157,8 +155,7 @@ struct bnxt_ulp_mapper_tbl_info ulp_class_tbl_list[] = {\n \t.ident_start_idx = 1,\n \t.ident_nums = 1,\n \t.mark_db_opcode = BNXT_ULP_MARK_DB_OPCODE_NOP,\n-\t.critical_resource = BNXT_ULP_CRITICAL_RESOURCE_NO,\n-\t.regfile_idx = BNXT_ULP_REGFILE_INDEX_NOT_USED\n+\t.critical_resource = BNXT_ULP_CRITICAL_RESOURCE_NO\n \t},\n \t{\n \t.resource_func = BNXT_ULP_RESOURCE_FUNC_TCAM_TABLE,\n@@ -179,8 +176,7 @@ struct bnxt_ulp_mapper_tbl_info ulp_class_tbl_list[] = {\n \t.ident_start_idx = 2,\n \t.ident_nums = 0,\n \t.mark_db_opcode = BNXT_ULP_MARK_DB_OPCODE_NOP,\n-\t.critical_resource = BNXT_ULP_CRITICAL_RESOURCE_NO,\n-\t.regfile_idx = BNXT_ULP_REGFILE_INDEX_NOT_USED\n+\t.critical_resource = BNXT_ULP_CRITICAL_RESOURCE_NO\n \t},\n \t{\n \t.resource_func = BNXT_ULP_RESOURCE_FUNC_EM_TABLE,\n@@ -201,8 +197,7 @@ struct bnxt_ulp_mapper_tbl_info ulp_class_tbl_list[] = {\n \t.ident_start_idx = 2,\n \t.ident_nums = 0,\n \t.mark_db_opcode = BNXT_ULP_MARK_DB_OPCODE_SET_IF_MARK_ACTION,\n-\t.critical_resource = BNXT_ULP_CRITICAL_RESOURCE_YES,\n-\t.regfile_idx = BNXT_ULP_REGFILE_INDEX_NOT_USED\n+\t.critical_resource = BNXT_ULP_CRITICAL_RESOURCE_YES\n \t},\n \t{\n \t.resource_func = BNXT_ULP_RESOURCE_FUNC_CACHE_TABLE,\n@@ -223,8 +218,7 @@ struct bnxt_ulp_mapper_tbl_info ulp_class_tbl_list[] = {\n \t.ident_start_idx = 2,\n \t.ident_nums = 1,\n \t.mark_db_opcode = BNXT_ULP_MARK_DB_OPCODE_NOP,\n-\t.critical_resource = BNXT_ULP_CRITICAL_RESOURCE_NO,\n-\t.regfile_idx = BNXT_ULP_REGFILE_INDEX_NOT_USED\n+\t.critical_resource = BNXT_ULP_CRITICAL_RESOURCE_NO\n \t},\n \t{\n \t.resource_func = BNXT_ULP_RESOURCE_FUNC_TCAM_TABLE,\n@@ -245,8 +239,7 @@ struct bnxt_ulp_mapper_tbl_info ulp_class_tbl_list[] = {\n \t.ident_start_idx = 3,\n \t.ident_nums = 0,\n \t.mark_db_opcode = BNXT_ULP_MARK_DB_OPCODE_NOP,\n-\t.critical_resource = BNXT_ULP_CRITICAL_RESOURCE_NO,\n-\t.regfile_idx = BNXT_ULP_REGFILE_INDEX_NOT_USED\n+\t.critical_resource = BNXT_ULP_CRITICAL_RESOURCE_NO\n \t},\n \t{\n \t.resource_func = BNXT_ULP_RESOURCE_FUNC_CACHE_TABLE,\n@@ -267,8 +260,7 @@ struct bnxt_ulp_mapper_tbl_info ulp_class_tbl_list[] = {\n \t.ident_start_idx = 3,\n \t.ident_nums = 1,\n \t.mark_db_opcode = BNXT_ULP_MARK_DB_OPCODE_NOP,\n-\t.critical_resource = BNXT_ULP_CRITICAL_RESOURCE_NO,\n-\t.regfile_idx = BNXT_ULP_REGFILE_INDEX_NOT_USED\n+\t.critical_resource = BNXT_ULP_CRITICAL_RESOURCE_NO\n \t},\n \t{\n \t.resource_func = BNXT_ULP_RESOURCE_FUNC_TCAM_TABLE,\n@@ -289,8 +281,7 @@ struct bnxt_ulp_mapper_tbl_info ulp_class_tbl_list[] = {\n \t.ident_start_idx = 4,\n \t.ident_nums = 0,\n \t.mark_db_opcode = BNXT_ULP_MARK_DB_OPCODE_NOP,\n-\t.critical_resource = BNXT_ULP_CRITICAL_RESOURCE_NO,\n-\t.regfile_idx = BNXT_ULP_REGFILE_INDEX_NOT_USED\n+\t.critical_resource = BNXT_ULP_CRITICAL_RESOURCE_NO\n \t},\n \t{\n \t.resource_func = BNXT_ULP_RESOURCE_FUNC_EM_TABLE,\n@@ -311,8 +302,7 @@ struct bnxt_ulp_mapper_tbl_info ulp_class_tbl_list[] = {\n \t.ident_start_idx = 4,\n \t.ident_nums = 0,\n \t.mark_db_opcode = BNXT_ULP_MARK_DB_OPCODE_SET_IF_MARK_ACTION,\n-\t.critical_resource = BNXT_ULP_CRITICAL_RESOURCE_YES,\n-\t.regfile_idx = BNXT_ULP_REGFILE_INDEX_NOT_USED\n+\t.critical_resource = BNXT_ULP_CRITICAL_RESOURCE_YES\n \t},\n \t{\n \t.resource_func = BNXT_ULP_RESOURCE_FUNC_CACHE_TABLE,\n@@ -333,8 +323,7 @@ struct bnxt_ulp_mapper_tbl_info ulp_class_tbl_list[] = {\n \t.ident_start_idx = 4,\n \t.ident_nums = 1,\n \t.mark_db_opcode = BNXT_ULP_MARK_DB_OPCODE_NOP,\n-\t.critical_resource = BNXT_ULP_CRITICAL_RESOURCE_NO,\n-\t.regfile_idx = BNXT_ULP_REGFILE_INDEX_NOT_USED\n+\t.critical_resource = BNXT_ULP_CRITICAL_RESOURCE_NO\n \t},\n \t{\n \t.resource_func = BNXT_ULP_RESOURCE_FUNC_TCAM_TABLE,\n@@ -355,8 +344,7 @@ struct bnxt_ulp_mapper_tbl_info ulp_class_tbl_list[] = {\n \t.ident_start_idx = 5,\n \t.ident_nums = 0,\n \t.mark_db_opcode = BNXT_ULP_MARK_DB_OPCODE_NOP,\n-\t.critical_resource = BNXT_ULP_CRITICAL_RESOURCE_NO,\n-\t.regfile_idx = BNXT_ULP_REGFILE_INDEX_NOT_USED\n+\t.critical_resource = BNXT_ULP_CRITICAL_RESOURCE_NO\n \t},\n \t{\n \t.resource_func = BNXT_ULP_RESOURCE_FUNC_CACHE_TABLE,\n@@ -377,8 +365,7 @@ struct bnxt_ulp_mapper_tbl_info ulp_class_tbl_list[] = {\n \t.ident_start_idx = 5,\n \t.ident_nums = 1,\n \t.mark_db_opcode = BNXT_ULP_MARK_DB_OPCODE_NOP,\n-\t.critical_resource = BNXT_ULP_CRITICAL_RESOURCE_NO,\n-\t.regfile_idx = BNXT_ULP_REGFILE_INDEX_NOT_USED\n+\t.critical_resource = BNXT_ULP_CRITICAL_RESOURCE_NO\n \t},\n \t{\n \t.resource_func = BNXT_ULP_RESOURCE_FUNC_TCAM_TABLE,\n@@ -399,8 +386,7 @@ struct bnxt_ulp_mapper_tbl_info ulp_class_tbl_list[] = {\n \t.ident_start_idx = 6,\n \t.ident_nums = 0,\n \t.mark_db_opcode = BNXT_ULP_MARK_DB_OPCODE_NOP,\n-\t.critical_resource = BNXT_ULP_CRITICAL_RESOURCE_NO,\n-\t.regfile_idx = BNXT_ULP_REGFILE_INDEX_NOT_USED\n+\t.critical_resource = BNXT_ULP_CRITICAL_RESOURCE_NO\n \t},\n \t{\n \t.resource_func = BNXT_ULP_RESOURCE_FUNC_EM_TABLE,\n@@ -421,8 +407,7 @@ struct bnxt_ulp_mapper_tbl_info ulp_class_tbl_list[] = {\n \t.ident_start_idx = 6,\n \t.ident_nums = 0,\n \t.mark_db_opcode = BNXT_ULP_MARK_DB_OPCODE_SET_IF_MARK_ACTION,\n-\t.critical_resource = BNXT_ULP_CRITICAL_RESOURCE_YES,\n-\t.regfile_idx = BNXT_ULP_REGFILE_INDEX_NOT_USED\n+\t.critical_resource = BNXT_ULP_CRITICAL_RESOURCE_YES\n \t}\n };\n \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 66343b9..0215a5d 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@@ -161,6 +161,14 @@ enum bnxt_ulp_hdr_type {\n \tBNXT_ULP_HDR_TYPE_LAST = 3\n };\n \n+enum bnxt_ulp_index_opcode {\n+\tBNXT_ULP_INDEX_OPCODE_NOT_USED = 0,\n+\tBNXT_ULP_INDEX_OPCODE_ALLOCATE = 1,\n+\tBNXT_ULP_INDEX_OPCODE_GLOBAL = 2,\n+\tBNXT_ULP_INDEX_OPCODE_COMP_FIELD = 3,\n+\tBNXT_ULP_INDEX_OPCODE_LAST = 4\n+};\n+\n enum bnxt_ulp_mapper_opc {\n \tBNXT_ULP_MAPPER_OPC_SET_TO_CONSTANT = 0,\n \tBNXT_ULP_MAPPER_OPC_SET_TO_HDR_FIELD = 1,\ndiff --git a/drivers/net/bnxt/tf_ulp/ulp_template_struct.h b/drivers/net/bnxt/tf_ulp/ulp_template_struct.h\nindex 1188223..a3ddd33 100644\n--- a/drivers/net/bnxt/tf_ulp/ulp_template_struct.h\n+++ b/drivers/net/bnxt/tf_ulp/ulp_template_struct.h\n@@ -182,9 +182,9 @@ struct bnxt_ulp_mapper_tbl_info {\n \tuint32_t\tident_start_idx;\n \tuint16_t\tident_nums;\n \n-\tenum bnxt_ulp_regfile_index\tregfile_idx;\n \tenum bnxt_ulp_mark_db_opcode\tmark_db_opcode;\n-\tuint32_t\t\t\tcomp_field_idx;\n+\tenum bnxt_ulp_index_opcode\tindex_opcode;\n+\tuint32_t\t\t\tindex_operand;\n };\n \n struct bnxt_ulp_mapper_class_key_field_info {\n",
    "prefixes": [
        "36/50"
    ]
}