get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 74643,
    "url": "https://patches.dpdk.org/api/patches/74643/?format=api",
    "web_url": "https://patches.dpdk.org/project/dpdk/patch/20200723111329.21855-4-somnath.kotur@broadcom.com/",
    "project": {
        "id": 1,
        "url": "https://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": "<20200723111329.21855-4-somnath.kotur@broadcom.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/20200723111329.21855-4-somnath.kotur@broadcom.com",
    "date": "2020-07-23T11:13:12",
    "name": "[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/?format=api",
        "name": "Somnath Kotur",
        "email": "somnath.kotur@broadcom.com"
    },
    "delegate": {
        "id": 1766,
        "url": "https://patches.dpdk.org/api/users/1766/?format=api",
        "username": "ajitkhaparde",
        "first_name": "Ajit",
        "last_name": "Khaparde",
        "email": "ajit.khaparde@broadcom.com"
    },
    "mbox": "https://patches.dpdk.org/project/dpdk/patch/20200723111329.21855-4-somnath.kotur@broadcom.com/mbox/",
    "series": [
        {
            "id": 11252,
            "url": "https://patches.dpdk.org/api/series/11252/?format=api",
            "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/74643/comments/",
    "check": "success",
    "checks": "https://patches.dpdk.org/api/patches/74643/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 66CC8A0521;\n\tThu, 23 Jul 2020 13:19:28 +0200 (CEST)",
            "from [92.243.14.124] (localhost [127.0.0.1])\n\tby dpdk.org (Postfix) with ESMTP id 95C191BFFF;\n\tThu, 23 Jul 2020 13:19:11 +0200 (CEST)",
            "from relay.smtp.broadcom.com (unknown [192.19.232.149])\n by dpdk.org (Postfix) with ESMTP id 495C11BFD7\n for <dev@dpdk.org>; Thu, 23 Jul 2020 13:18:58 +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 999681BD9D9;\n Thu, 23 Jul 2020 04:18:57 -0700 (PDT)"
        ],
        "DKIM-Filter": "OpenDKIM Filter v2.10.3 relay.smtp.broadcom.com 999681BD9D9",
        "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/simple; d=broadcom.com;\n s=dkimrelay; t=1595503138;\n bh=g0Mh9NSS9U9Gn4oUKTO+ZAUxG63Uk49lPpfPYqjNLEw=;\n h=From:To:Cc:Subject:Date:In-Reply-To:References:From;\n b=Z+/Xv//dK0pDnxnDMVGPBRxHa/F730sVkUbGlruujk63d7iKg1bdq9FpCtuH/oK9d\n G4GVfrE3cIoGuL0qkJiHMEumbmq6JlkKoJQ3Fe9HdJk+IlhKUXNJ5LA1NH5KBxjMsm\n 7Pcr7lTMsfpIPIVxVm60HEfahMIXVOcnzCIKfRg4=",
        "From": "Somnath Kotur <somnath.kotur@broadcom.com>",
        "To": "dev@dpdk.org",
        "Cc": "ferruh.yigit@intel.com",
        "Date": "Thu, 23 Jul 2020 16:43:12 +0530",
        "Message-Id": "<20200723111329.21855-4-somnath.kotur@broadcom.com>",
        "X-Mailer": "git-send-email 2.10.1.613.g2cc2e70",
        "In-Reply-To": "<20200723111329.21855-1-somnath.kotur@broadcom.com>",
        "References": "<20200723111329.21855-1-somnath.kotur@broadcom.com>",
        "Subject": "[dpdk-dev] [PATCH 03/20] net/bnxt: parif for offload miss rules",
        "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\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": [
        "03/20"
    ]
}