Show a patch.

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

{
    "id": 74665,
    "url": "https://patches.dpdk.org/api/patches/74665/",
    "web_url": "https://patches.dpdk.org/patch/74665/",
    "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": "<20200723115639.22357-4-somnath.kotur@broadcom.com>",
    "date": "2020-07-23T11:56:22",
    "name": "[v2,03/20] net/bnxt: parif for offload miss rules",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": true,
    "hash": "397d8fef12a27ea3641f9b1484f11bdf73310e8b",
    "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/74665/mbox/",
    "series": [
        {
            "id": 11254,
            "url": "https://patches.dpdk.org/api/series/11254/",
            "web_url": "https://patches.dpdk.org/project/dpdk/list/?series=11254",
            "date": "2020-07-23T11:56:19",
            "name": "bnxt patches",
            "version": 2,
            "mbox": "https://patches.dpdk.org/series/11254/mbox/"
        }
    ],
    "comments": "https://patches.dpdk.org/api/patches/74665/comments/",
    "check": "success",
    "checks": "https://patches.dpdk.org/api/patches/74665/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>\n <20200723115639.22357-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 4E43729ADB8",
        "Subject": "[dpdk-dev] [PATCH v2 03/20] net/bnxt: parif for offload miss rules",
        "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 36E81A0521;\n\tThu, 23 Jul 2020 14:02:38 +0200 (CEST)",
            "from [92.243.14.124] (localhost [127.0.0.1])\n\tby dpdk.org (Postfix) with ESMTP id E9BDC1C002;\n\tThu, 23 Jul 2020 14:02:10 +0200 (CEST)",
            "from relay.smtp.broadcom.com (relay.smtp.broadcom.com\n [192.19.211.62]) by dpdk.org (Postfix) with ESMTP id 1CFAC1BFBA\n for <dev@dpdk.org>; Thu, 23 Jul 2020 14:02:03 +0200 (CEST)",
            "from dhcp-10-123-153-55.dhcp.broadcom.net\n (bgccx-dev-host-lnx35.bec.broadcom.net [10.123.153.55])\n by relay.smtp.broadcom.com (Postfix) with ESMTP id 4E43729ADB8;\n Thu, 23 Jul 2020 05:02:02 -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=1595505722;\n bh=g0Mh9NSS9U9Gn4oUKTO+ZAUxG63Uk49lPpfPYqjNLEw=;\n h=From:To:Cc:Subject:Date:In-Reply-To:References:From;\n b=D7vTjw0en7TYpwm/TMAXRj/YDqwbwXokMyXmSILyTCYO929awshBWeT9WXFhcK9p9\n /lIBmdGeDo9j12uA+jeJEXL/Q+It7a6WDAcwBuHDn0AvvKQ5gSk8eSc+rLqsbUWsUS\n 1rkCSBpmOu/V5fgVbdoVljQ9PSsR6Mt4zg7P5Euw=",
        "Date": "Thu, 23 Jul 2020 17:26:22 +0530",
        "List-Archive": "<http://mails.dpdk.org/archives/dev/>",
        "From": "Somnath Kotur <somnath.kotur@broadcom.com>",
        "In-Reply-To": "<20200723115639.22357-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": "<20200723115639.22357-4-somnath.kotur@broadcom.com>",
        "Return-Path": "<dev-bounces@dpdk.org>"
    },
    "content": "From: Kishore Padmanabha <kishore.padmanabha@broadcom.com>\n\nFor the offload miss rules, the parif miss path needs to be\nconsidered. The higher parif are reserved for handling this.\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  |  4 ++--\n drivers/net/bnxt/tf_ulp/ulp_port_db.h    |  1 +\n drivers/net/bnxt/tf_ulp/ulp_rte_parser.c | 40 ++++++++++++++++++++++++++++++++\n 3 files changed, 43 insertions(+), 2 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 4d4f7c4..d86e4c9 100644\n--- a/drivers/net/bnxt/tf_ulp/ulp_def_rules.c\n+++ b/drivers/net/bnxt/tf_ulp/ulp_def_rules.c\n@@ -12,8 +12,6 @@\n #include \"ulp_flow_db.h\"\n #include \"ulp_mapper.h\"\n \n-#define BNXT_ULP_FREE_PARIF_BASE 11\n-\n struct bnxt_ulp_def_param_handler {\n \tint32_t (*vfr_func)(struct bnxt_ulp_context *ulp_ctx,\n \t\t\t    struct ulp_tlv_param *param,\n@@ -85,6 +83,8 @@ ulp_set_parif_in_comp_fld(struct bnxt_ulp_context *ulp_ctx,\n \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 \t\tidx = BNXT_ULP_CF_IDX_DRV_FUNC_PARIF;\n \t\t/* Parif needs to be reset to a free partition */\ndiff --git a/drivers/net/bnxt/tf_ulp/ulp_port_db.h b/drivers/net/bnxt/tf_ulp/ulp_port_db.h\nindex 393d01b..2b323d1 100644\n--- a/drivers/net/bnxt/tf_ulp/ulp_port_db.h\n+++ b/drivers/net/bnxt/tf_ulp/ulp_port_db.h\n@@ -10,6 +10,7 @@\n \n #define BNXT_PORT_DB_MAX_INTF_LIST\t\t256\n #define BNXT_PORT_DB_MAX_FUNC\t\t\t2048\n+#define BNXT_ULP_FREE_PARIF_BASE\t\t11\n \n enum bnxt_ulp_svif_type {\n \tBNXT_ULP_DRV_FUNC_SVIF = 0,\ndiff --git a/drivers/net/bnxt/tf_ulp/ulp_rte_parser.c b/drivers/net/bnxt/tf_ulp/ulp_rte_parser.c\nindex 3891bcd..39f801b 100644\n--- a/drivers/net/bnxt/tf_ulp/ulp_rte_parser.c\n+++ b/drivers/net/bnxt/tf_ulp/ulp_rte_parser.c\n@@ -159,6 +159,43 @@ bnxt_ulp_rte_parser_act_parse(const struct rte_flow_action actions[],\n }\n \n /*\n+ * Function to handle the post processing of the computed\n+ * fields for the interface.\n+ */\n+static void\n+bnxt_ulp_comp_fld_intf_update(struct ulp_rte_parser_params *params)\n+{\n+\tuint32_t ifindex;\n+\tuint16_t port_id, parif;\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+\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}\n+}\n+\n+/*\n  * Function to handle the post processing of the parsing details\n  */\n int32_t\n@@ -213,6 +250,9 @@ bnxt_ulp_rte_parser_post_process(struct ulp_rte_parser_params *params)\n \t/* Merge the hdr_fp_bit into the proto header bit */\n \tparams->hdr_bitmap.bits |= params->hdr_fp_bit.bits;\n \n+\t/* Update the computed interface parameters */\n+\tbnxt_ulp_comp_fld_intf_update(params);\n+\n \t/* TBD: Handle the flow rejection scenarios */\n \treturn 0;\n }\n",
    "prefixes": [
        "v2",
        "03/20"
    ]
}