Show a patch.

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

{
    "id": 74648,
    "url": "https://patches.dpdk.org/api/patches/74648/",
    "web_url": "https://patches.dpdk.org/patch/74648/",
    "project": {
        "id": 1,
        "url": "https://patches.dpdk.org/api/projects/1/",
        "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"
    },
    "msgid": "<20200723111329.21855-9-somnath.kotur@broadcom.com>",
    "date": "2020-07-23T11:13:17",
    "name": "[08/20] net/bnxt: configure parif for the egress rules",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": true,
    "hash": "534b0121ce847d13c070010b7ea0eab432d3fcb7",
    "submitter": {
        "id": 908,
        "url": "https://patches.dpdk.org/api/people/908/",
        "name": "Somnath Kotur",
        "email": "somnath.kotur@broadcom.com"
    },
    "delegate": {
        "id": 1766,
        "url": "https://patches.dpdk.org/api/users/1766/",
        "username": "ajitkhaparde",
        "first_name": "Ajit",
        "last_name": "Khaparde",
        "email": "ajit.khaparde@broadcom.com"
    },
    "mbox": "https://patches.dpdk.org/patch/74648/mbox/",
    "series": [
        {
            "id": 11252,
            "url": "https://patches.dpdk.org/api/series/11252/",
            "web_url": "https://patches.dpdk.org/project/dpdk/list/?series=11252",
            "date": "2020-07-23T11:13:09",
            "name": "bnxt patches",
            "version": 1,
            "mbox": "https://patches.dpdk.org/series/11252/mbox/"
        }
    ],
    "comments": "https://patches.dpdk.org/api/patches/74648/comments/",
    "check": "success",
    "checks": "https://patches.dpdk.org/api/patches/74648/checks/",
    "tags": {},
    "headers": {
        "List-Subscribe": "<https://mails.dpdk.org/listinfo/dev>,\n <mailto:dev-request@dpdk.org?subject=subscribe>",
        "X-Mailman-Version": "2.1.15",
        "Precedence": "list",
        "X-Original-To": "patchwork@inbox.dpdk.org",
        "List-Post": "<mailto:dev@dpdk.org>",
        "References": "<20200723111329.21855-1-somnath.kotur@broadcom.com>",
        "X-BeenThere": "dev@dpdk.org",
        "List-Id": "DPDK patches and discussions <dev.dpdk.org>",
        "DKIM-Filter": "OpenDKIM Filter v2.10.3 relay.smtp.broadcom.com 354B11BDA50",
        "Subject": "[dpdk-dev] [PATCH 08/20] net/bnxt: configure parif for the egress\n\trules",
        "Sender": "\"dev\" <dev-bounces@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 0032AA0521;\n\tThu, 23 Jul 2020 13:20:33 +0200 (CEST)",
            "from [92.243.14.124] (localhost [127.0.0.1])\n\tby dpdk.org (Postfix) with ESMTP id 682F71C0B1;\n\tThu, 23 Jul 2020 13:19:20 +0200 (CEST)",
            "from relay.smtp.broadcom.com (unknown [192.19.232.149])\n by dpdk.org (Postfix) with ESMTP id D9C9B1BFD7\n for <dev@dpdk.org>; Thu, 23 Jul 2020 13:19:04 +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 354B11BDA50;\n Thu, 23 Jul 2020 04:19:04 -0700 (PDT)"
        ],
        "To": "dev@dpdk.org",
        "X-Mailer": "git-send-email 2.10.1.613.g2cc2e70",
        "List-Unsubscribe": "<https://mails.dpdk.org/options/dev>,\n <mailto:dev-request@dpdk.org?subject=unsubscribe>",
        "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/simple; d=broadcom.com;\n s=dkimrelay; t=1595503145;\n bh=M0dJ9Oamfy7Ii3ZQvkx5f0m3YCb2Nz0nKd6AfrlYEpc=;\n h=From:To:Cc:Subject:Date:In-Reply-To:References:From;\n b=KcKQ0whkQxBSODEH21z4UUp0cISZ1LhzlNpFiQk1wEB37G98HT4EbqEBNwboeDALQ\n StVdh6ADwJQl+dezMFxqlVaQCcEJa1VB58RVDm8Xwc4FndZp+IElI9r/CZEnHYH5ko\n Kth8IBxGXj/5qQRnriqtRpdSwj0sqgbiSVHWJSPg=",
        "Date": "Thu, 23 Jul 2020 16:43:17 +0530",
        "List-Archive": "<http://mails.dpdk.org/archives/dev/>",
        "From": "Somnath Kotur <somnath.kotur@broadcom.com>",
        "In-Reply-To": "<20200723111329.21855-1-somnath.kotur@broadcom.com>",
        "Cc": "ferruh.yigit@intel.com",
        "List-Help": "<mailto:dev-request@dpdk.org?subject=help>",
        "Errors-To": "dev-bounces@dpdk.org",
        "Message-Id": "<20200723111329.21855-9-somnath.kotur@broadcom.com>",
        "Return-Path": "<dev-bounces@dpdk.org>"
    },
    "content": "From: Kishore Padmanabha <kishore.padmanabha@broadcom.com>\n\nThe parif for the egress rules need to be dynamically\nconfigured based on the port type.\n\nSigned-off-by: Kishore Padmanabha <kishore.padmanabha@broadcom.com>\nReviewed-by: Michael Baucom <michael.baucom@broadcom.com>\n---\n drivers/net/bnxt/tf_ulp/ulp_def_rules.c         | 11 ++---\n drivers/net/bnxt/tf_ulp/ulp_mapper.c            | 35 ++++++++++++++++\n drivers/net/bnxt/tf_ulp/ulp_port_db.c           |  2 +\n drivers/net/bnxt/tf_ulp/ulp_rte_parser.c        | 54 ++++++++++++++++++++-----\n drivers/net/bnxt/tf_ulp/ulp_template_db_act.c   | 16 ++++++--\n drivers/net/bnxt/tf_ulp/ulp_template_db_class.c | 25 +++++++++---\n drivers/net/bnxt/tf_ulp/ulp_template_db_enum.h  | 14 ++++---\n 7 files changed, 123 insertions(+), 34 deletions(-)",
    "diff": "diff --git a/drivers/net/bnxt/tf_ulp/ulp_def_rules.c b/drivers/net/bnxt/tf_ulp/ulp_def_rules.c\nindex d86e4c9..ddc6da8 100644\n--- a/drivers/net/bnxt/tf_ulp/ulp_def_rules.c\n+++ b/drivers/net/bnxt/tf_ulp/ulp_def_rules.c\n@@ -81,17 +81,12 @@ ulp_set_parif_in_comp_fld(struct bnxt_ulp_context *ulp_ctx,\n \tif (rc)\n \t\treturn rc;\n \n-\tif (parif_type == BNXT_ULP_PHY_PORT_PARIF) {\n+\tif (parif_type == BNXT_ULP_PHY_PORT_PARIF)\n \t\tidx = BNXT_ULP_CF_IDX_PHY_PORT_PARIF;\n-\t\t/* Parif needs to be reset to a free partition */\n-\t\tparif += BNXT_ULP_FREE_PARIF_BASE;\n-\t} else if (parif_type == BNXT_ULP_DRV_FUNC_PARIF) {\n+\telse if (parif_type == BNXT_ULP_DRV_FUNC_PARIF)\n \t\tidx = BNXT_ULP_CF_IDX_DRV_FUNC_PARIF;\n-\t\t/* Parif needs to be reset to a free partition */\n-\t\tparif += BNXT_ULP_FREE_PARIF_BASE;\n-\t} else {\n+\telse\n \t\tidx = BNXT_ULP_CF_IDX_VF_FUNC_PARIF;\n-\t}\n \n \tULP_COMP_FLD_IDX_WR(mapper_params, idx, parif);\n \ndiff --git a/drivers/net/bnxt/tf_ulp/ulp_mapper.c b/drivers/net/bnxt/tf_ulp/ulp_mapper.c\nindex 2d3373d..a071c07 100644\n--- a/drivers/net/bnxt/tf_ulp/ulp_mapper.c\n+++ b/drivers/net/bnxt/tf_ulp/ulp_mapper.c\n@@ -998,6 +998,41 @@ ulp_mapper_result_field_process(struct bnxt_ulp_mapper_parms *parms,\n \t\t\treturn -EINVAL;\n \t\t}\n \t\tbreak;\n+\tcase BNXT_ULP_MAPPER_OPC_IF_COMP_FIELD_THEN_CF_ELSE_CF:\n+\t\tif (!ulp_operand_read(fld->result_operand,\n+\t\t\t\t      (uint8_t *)&idx,\n+\t\t\t\t      sizeof(uint16_t))) {\n+\t\t\tBNXT_TF_DBG(ERR, \"%s key operand read failed.\\n\", name);\n+\t\t\treturn -EINVAL;\n+\t\t}\n+\t\tidx = tfp_be_to_cpu_16(idx);\n+\t\tif (idx >= BNXT_ULP_CF_IDX_LAST) {\n+\t\t\tBNXT_TF_DBG(ERR, \"%s invalid index %u\\n\", name, idx);\n+\t\t\treturn -EINVAL;\n+\t\t}\n+\t\t/* check if the computed field is set */\n+\t\tif (ULP_COMP_FLD_IDX_RD(parms, idx))\n+\t\t\tval = fld->result_operand_true;\n+\t\telse\n+\t\t\tval = fld->result_operand_false;\n+\n+\t\t/* read the appropriate computed field */\n+\t\tif (!ulp_operand_read(val, (uint8_t *)&idx, sizeof(uint16_t))) {\n+\t\t\tBNXT_TF_DBG(ERR, \"%s val operand read failed\\n\", name);\n+\t\t\treturn -EINVAL;\n+\t\t}\n+\t\tidx = tfp_be_to_cpu_16(idx);\n+\t\tif (idx >= BNXT_ULP_CF_IDX_LAST) {\n+\t\t\tBNXT_TF_DBG(ERR, \"%s invalid index %u\\n\", name, idx);\n+\t\t\treturn -EINVAL;\n+\t\t}\n+\t\tval = ulp_blob_push_32(blob, &parms->comp_fld[idx],\n+\t\t\t\t       fld->field_bit_size);\n+\t\tif (!val) {\n+\t\t\tBNXT_TF_DBG(ERR, \"%s push to key blob failed\\n\", name);\n+\t\t\treturn -EINVAL;\n+\t\t}\n+\t\tbreak;\n \tdefault:\n \t\tBNXT_TF_DBG(ERR, \"invalid result mapper opcode 0x%x\\n\",\n \t\t\t    fld->result_opcode);\ndiff --git a/drivers/net/bnxt/tf_ulp/ulp_port_db.c b/drivers/net/bnxt/tf_ulp/ulp_port_db.c\nindex 0fc7c0a..3087647 100644\n--- a/drivers/net/bnxt/tf_ulp/ulp_port_db.c\n+++ b/drivers/net/bnxt/tf_ulp/ulp_port_db.c\n@@ -372,6 +372,8 @@ ulp_port_db_parif_get(struct bnxt_ulp_context *ulp_ctxt,\n \t\tphy_port_id = port_db->ulp_func_id_tbl[func_id].phy_port_id;\n \t\t*parif = port_db->phy_port_list[phy_port_id].port_parif;\n \t}\n+\t/* Parif needs to be reset to a free partition */\n+\t*parif += BNXT_ULP_FREE_PARIF_BASE;\n \n \treturn 0;\n }\ndiff --git a/drivers/net/bnxt/tf_ulp/ulp_rte_parser.c b/drivers/net/bnxt/tf_ulp/ulp_rte_parser.c\nindex 39f801b..67f9319 100644\n--- a/drivers/net/bnxt/tf_ulp/ulp_rte_parser.c\n+++ b/drivers/net/bnxt/tf_ulp/ulp_rte_parser.c\n@@ -167,31 +167,63 @@ bnxt_ulp_comp_fld_intf_update(struct ulp_rte_parser_params *params)\n {\n \tuint32_t ifindex;\n \tuint16_t port_id, parif;\n+\tuint32_t mtype;\n \tenum bnxt_ulp_direction_type dir;\n \n \t/* get the direction details */\n \tdir = ULP_COMP_FLD_IDX_RD(params, BNXT_ULP_CF_IDX_DIRECTION);\n \n+\t/* read the port id details */\n+\tport_id = ULP_COMP_FLD_IDX_RD(params,\n+\t\t\t\t      BNXT_ULP_CF_IDX_INCOMING_IF);\n+\tif (ulp_port_db_dev_port_to_ulp_index(params->ulp_ctx,\n+\t\t\t\t\t      port_id,\n+\t\t\t\t\t      &ifindex)) {\n+\t\tBNXT_TF_DBG(ERR, \"ParseErr:Portid is not valid\\n\");\n+\t\treturn;\n+\t}\n+\n \tif (dir == BNXT_ULP_DIR_INGRESS) {\n-\t\t/* read the port id details */\n-\t\tport_id = ULP_COMP_FLD_IDX_RD(params,\n-\t\t\t\t\t      BNXT_ULP_CF_IDX_INCOMING_IF);\n-\t\tif (ulp_port_db_dev_port_to_ulp_index(params->ulp_ctx,\n-\t\t\t\t\t\t      port_id,\n-\t\t\t\t\t\t      &ifindex)) {\n-\t\t\tBNXT_TF_DBG(ERR, \"ParseErr:Portid is not valid\\n\");\n-\t\t\treturn;\n-\t\t}\n \t\t/* Set port PARIF */\n \t\tif (ulp_port_db_parif_get(params->ulp_ctx, ifindex,\n \t\t\t\t\t  BNXT_ULP_PHY_PORT_PARIF, &parif)) {\n \t\t\tBNXT_TF_DBG(ERR, \"ParseErr:ifindex is not valid\\n\");\n \t\t\treturn;\n \t\t}\n-\t\t/* Parif needs to be reset to a free partition */\n-\t\tparif += BNXT_ULP_FREE_PARIF_BASE;\n \t\tULP_COMP_FLD_IDX_WR(params, BNXT_ULP_CF_IDX_PHY_PORT_PARIF,\n \t\t\t\t    parif);\n+\t} else {\n+\t\t/* Get the match port type */\n+\t\tmtype = ULP_COMP_FLD_IDX_RD(params,\n+\t\t\t\t\t    BNXT_ULP_CF_IDX_MATCH_PORT_TYPE);\n+\t\tif (mtype == BNXT_ULP_INTF_TYPE_VF_REP) {\n+\t\t\tULP_COMP_FLD_IDX_WR(params,\n+\t\t\t\t\t    BNXT_ULP_CF_IDX_MATCH_PORT_IS_VFREP,\n+\t\t\t\t\t    1);\n+\t\t\t/* Set VF func PARIF */\n+\t\t\tif (ulp_port_db_parif_get(params->ulp_ctx, ifindex,\n+\t\t\t\t\t\t  BNXT_ULP_VF_FUNC_PARIF,\n+\t\t\t\t\t\t  &parif)) {\n+\t\t\t\tBNXT_TF_DBG(ERR,\n+\t\t\t\t\t    \"ParseErr:ifindex is not valid\\n\");\n+\t\t\t\treturn;\n+\t\t\t}\n+\t\t\tULP_COMP_FLD_IDX_WR(params,\n+\t\t\t\t\t    BNXT_ULP_CF_IDX_VF_FUNC_PARIF,\n+\t\t\t\t\t    parif);\n+\t\t} else {\n+\t\t\t/* Set DRV func PARIF */\n+\t\t\tif (ulp_port_db_parif_get(params->ulp_ctx, ifindex,\n+\t\t\t\t\t\t  BNXT_ULP_DRV_FUNC_PARIF,\n+\t\t\t\t\t\t  &parif)) {\n+\t\t\t\tBNXT_TF_DBG(ERR,\n+\t\t\t\t\t    \"ParseErr:ifindex is not valid\\n\");\n+\t\t\t\treturn;\n+\t\t\t}\n+\t\t\tULP_COMP_FLD_IDX_WR(params,\n+\t\t\t\t\t    BNXT_ULP_CF_IDX_DRV_FUNC_PARIF,\n+\t\t\t\t\t    parif);\n+\t\t}\n \t}\n }\n \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 31fe905..58b581c 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@@ -1808,11 +1808,19 @@ struct bnxt_ulp_mapper_result_field_info ulp_act_result_field_list[] = {\n \t},\n \t{\n \t.field_bit_size = 4,\n-\t.result_opcode = BNXT_ULP_MAPPER_OPC_SET_TO_CONSTANT,\n+\t.result_opcode = BNXT_ULP_MAPPER_OPC_IF_ACT_BIT_THEN_CONST_ELSE_CONST,\n \t.result_operand = {\n-\t\tBNXT_ULP_SYM_DECAP_FUNC_THRU_TUN,\n-\t\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n-\t\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00}\n+\t\t((uint64_t)BNXT_ULP_ACTION_BIT_VXLAN_DECAP >> 56) & 0xff,\n+\t\t((uint64_t)BNXT_ULP_ACTION_BIT_VXLAN_DECAP >> 48) & 0xff,\n+\t\t((uint64_t)BNXT_ULP_ACTION_BIT_VXLAN_DECAP >> 40) & 0xff,\n+\t\t((uint64_t)BNXT_ULP_ACTION_BIT_VXLAN_DECAP >> 32) & 0xff,\n+\t\t((uint64_t)BNXT_ULP_ACTION_BIT_VXLAN_DECAP >> 24) & 0xff,\n+\t\t((uint64_t)BNXT_ULP_ACTION_BIT_VXLAN_DECAP >> 16) & 0xff,\n+\t\t((uint64_t)BNXT_ULP_ACTION_BIT_VXLAN_DECAP >> 8) & 0xff,\n+\t\t(uint64_t)BNXT_ULP_ACTION_BIT_VXLAN_DECAP & 0xff,\n+\t\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00},\n+\t.result_operand_true = {0x0a, 0x00, 0x00, 0x00, 0x00, 0x00,\n+\t\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00}\n \t},\n \t{\n \t.field_bit_size = 12,\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 9de45cd..330c5ec 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@@ -5058,7 +5058,9 @@ struct bnxt_ulp_mapper_class_key_field_info ulp_class_key_field_list[] = {\n \t},\n \t{\n \t.field_bit_size = 2,\n-\t.mask_opcode = BNXT_ULP_MAPPER_OPC_SET_TO_ZERO,\n+\t.mask_opcode = BNXT_ULP_MAPPER_OPC_SET_TO_CONSTANT,\n+\t.mask_operand = {0xff, 0xff, 0xff, 0xff, 0xff, 0xff,\n+\t\t0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff},\n \t.spec_opcode = BNXT_ULP_MAPPER_OPC_SET_TO_CONSTANT,\n \t.spec_operand = {0x02, 0x00, 0x00, 0x00, 0x00, 0x00,\n \t\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00}\n@@ -5149,7 +5151,9 @@ struct bnxt_ulp_mapper_class_key_field_info ulp_class_key_field_list[] = {\n \t},\n \t{\n \t.field_bit_size = 2,\n-\t.mask_opcode = BNXT_ULP_MAPPER_OPC_SET_TO_ZERO,\n+\t.mask_opcode = BNXT_ULP_MAPPER_OPC_SET_TO_CONSTANT,\n+\t.mask_operand = {0xff, 0xff, 0xff, 0xff, 0xff, 0xff,\n+\t\t0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff},\n \t.spec_opcode = BNXT_ULP_MAPPER_OPC_SET_TO_CONSTANT,\n \t.spec_operand = {0x01, 0x00, 0x00, 0x00, 0x00, 0x00,\n \t\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00}\n@@ -17054,11 +17058,22 @@ struct bnxt_ulp_mapper_result_field_info ulp_class_result_field_list[] = {\n \t},\n \t{\n \t.field_bit_size = 4,\n-\t.result_opcode = BNXT_ULP_MAPPER_OPC_SET_TO_CONSTANT,\n+\t.result_opcode = BNXT_ULP_MAPPER_OPC_IF_COMP_FIELD_THEN_CF_ELSE_CF,\n \t.result_operand = {\n-\t\tBNXT_ULP_SYM_VF_FUNC_PARIF,\n+\t\t(BNXT_ULP_CF_IDX_MATCH_PORT_IS_VFREP >> 8) & 0xff,\n+\t\tBNXT_ULP_CF_IDX_MATCH_PORT_IS_VFREP & 0xff,\n \t\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n-\t\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00}\n+\t\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00},\n+\t.result_operand_true = {\n+\t\t(BNXT_ULP_CF_IDX_VF_FUNC_PARIF >> 8) & 0xff,\n+\t\tBNXT_ULP_CF_IDX_VF_FUNC_PARIF & 0xff,\n+\t\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n+\t\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00},\n+\t.result_operand_false = {\n+\t\t(BNXT_ULP_CF_IDX_DRV_FUNC_PARIF >> 8) & 0xff,\n+\t\tBNXT_ULP_CF_IDX_DRV_FUNC_PARIF & 0xff,\n+\t\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\n+\t\t0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00}\n \t},\n \t{\n \t.field_bit_size = 8,\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 c9fe1bc..f08065b 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@@ -127,11 +127,12 @@ enum bnxt_ulp_cf_idx {\n \tBNXT_ULP_CF_IDX_ACT_PORT_IS_SET = 35,\n \tBNXT_ULP_CF_IDX_ACT_PORT_TYPE = 36,\n \tBNXT_ULP_CF_IDX_MATCH_PORT_TYPE = 37,\n-\tBNXT_ULP_CF_IDX_VF_TO_VF = 38,\n-\tBNXT_ULP_CF_IDX_L3_HDR_CNT = 39,\n-\tBNXT_ULP_CF_IDX_L4_HDR_CNT = 40,\n-\tBNXT_ULP_CF_IDX_VFR_MODE = 41,\n-\tBNXT_ULP_CF_IDX_LAST = 42\n+\tBNXT_ULP_CF_IDX_MATCH_PORT_IS_VFREP = 38,\n+\tBNXT_ULP_CF_IDX_VF_TO_VF = 39,\n+\tBNXT_ULP_CF_IDX_L3_HDR_CNT = 40,\n+\tBNXT_ULP_CF_IDX_L4_HDR_CNT = 41,\n+\tBNXT_ULP_CF_IDX_VFR_MODE = 42,\n+\tBNXT_ULP_CF_IDX_LAST = 43\n };\n \n enum bnxt_ulp_cond_opcode {\n@@ -215,7 +216,8 @@ enum bnxt_ulp_mapper_opc {\n \tBNXT_ULP_MAPPER_OPC_SET_TO_ENCAP_ACT_PROP_SZ = 8,\n \tBNXT_ULP_MAPPER_OPC_IF_ACT_BIT_THEN_ACT_PROP_ELSE_CONST = 9,\n \tBNXT_ULP_MAPPER_OPC_IF_ACT_BIT_THEN_CONST_ELSE_CONST = 10,\n-\tBNXT_ULP_MAPPER_OPC_LAST = 11\n+\tBNXT_ULP_MAPPER_OPC_IF_COMP_FIELD_THEN_CF_ELSE_CF = 11,\n+\tBNXT_ULP_MAPPER_OPC_LAST = 12\n };\n \n enum bnxt_ulp_mark_db_opcode {\n",
    "prefixes": [
        "08/20"
    ]
}