get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 71155,
    "url": "http://patches.dpdk.org/api/patches/71155/?format=api",
    "web_url": "http://patches.dpdk.org/project/dpdk/patch/20200610114427.22146-20-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": "<20200610114427.22146-20-somnath.kotur@broadcom.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/20200610114427.22146-20-somnath.kotur@broadcom.com",
    "date": "2020-06-10T11:44:10",
    "name": "[19/36] net/bnxt: add enum to the critical resource",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": true,
    "hash": "1c5224ac65b8895ea85ef582342cd0d22e421b5d",
    "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/20200610114427.22146-20-somnath.kotur@broadcom.com/mbox/",
    "series": [
        {
            "id": 10380,
            "url": "http://patches.dpdk.org/api/series/10380/?format=api",
            "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=10380",
            "date": "2020-06-10T11:43:51",
            "name": "bnxt patches",
            "version": 1,
            "mbox": "http://patches.dpdk.org/series/10380/mbox/"
        }
    ],
    "comments": "http://patches.dpdk.org/api/patches/71155/comments/",
    "check": "success",
    "checks": "http://patches.dpdk.org/api/patches/71155/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 CBFECA051B;\n\tWed, 10 Jun 2020 13:52:22 +0200 (CEST)",
            "from [92.243.14.124] (localhost [127.0.0.1])\n\tby dpdk.org (Postfix) with ESMTP id EACFC1BF31;\n\tWed, 10 Jun 2020 13:49:23 +0200 (CEST)",
            "from relay.smtp.broadcom.com (unknown [192.19.232.149])\n by dpdk.org (Postfix) with ESMTP id 4BF115F2F\n for <dev@dpdk.org>; Wed, 10 Jun 2020 13:49:20 +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 A01861BD53E;\n Wed, 10 Jun 2020 04:49:19 -0700 (PDT)"
        ],
        "DKIM-Filter": "OpenDKIM Filter v2.10.3 relay.smtp.broadcom.com A01861BD53E",
        "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/simple; d=broadcom.com;\n s=dkimrelay; t=1591789760;\n bh=UN9FLZDppAKJ6hnsrYzod4A1hhZWpG8mSQzwudDCd8w=;\n h=From:To:Cc:Subject:Date:In-Reply-To:References:From;\n b=IJqktcB/09LdONXAz1Yb94pPEmvmHj8aQaA3uyLGCPl14jEsKCxh5vNNdfpsGL81H\n PNphqDbTqgjaRdcrQvbSR9TMcU1mSQd9JfjAnx5MIb/Q6LJSnqbOPLm2yTBRhDqhfS\n z5H+PgTWuU7r3oQWkRt5Zecg6acPmfTtMoTPDvKw=",
        "From": "Somnath Kotur <somnath.kotur@broadcom.com>",
        "To": "dev@dpdk.org",
        "Cc": "ferruh.yigit@intel.com",
        "Date": "Wed, 10 Jun 2020 17:14:10 +0530",
        "Message-Id": "<20200610114427.22146-20-somnath.kotur@broadcom.com>",
        "X-Mailer": "git-send-email 2.10.1.613.g2cc2e70",
        "In-Reply-To": "<20200610114427.22146-1-somnath.kotur@broadcom.com>",
        "References": "<20200610114427.22146-1-somnath.kotur@broadcom.com>",
        "Subject": "[dpdk-dev] [PATCH 19/36] net/bnxt: add enum to the critical resource",
        "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\nThe critical resource field in the template table is assigned\nenumeration values instead of hard coded values.\n\nSigned-off-by: Kishore Padmanabha <kishore.padmanabha@broadcom.com>\nReviewed-by: Michael Baucom <michael.baucom@broadcom.com>\nSigned-off-by: Somnath Kotur <somnath.kotur@broadcom.com>\n---\n drivers/net/bnxt/tf_ulp/ulp_mapper.c          | 14 +++++++-------\n drivers/net/bnxt/tf_ulp/ulp_template_db.c     | 10 +++++-----\n drivers/net/bnxt/tf_ulp/ulp_template_db.h     |  6 ++++++\n drivers/net/bnxt/tf_ulp/ulp_template_struct.h |  2 +-\n 4 files changed, 19 insertions(+), 13 deletions(-)",
    "diff": "diff --git a/drivers/net/bnxt/tf_ulp/ulp_mapper.c b/drivers/net/bnxt/tf_ulp/ulp_mapper.c\nindex 7f7335a..41c4f2f 100644\n--- a/drivers/net/bnxt/tf_ulp/ulp_mapper.c\n+++ b/drivers/net/bnxt/tf_ulp/ulp_mapper.c\n@@ -568,7 +568,7 @@ ulp_mapper_ident_process(struct bnxt_ulp_mapper_parms *parms,\n \t\tfid_parms.resource_func\t= ident->resource_func;\n \t\tfid_parms.resource_type\t= ident->ident_type;\n \t\tfid_parms.resource_hndl\t= iparms.id;\n-\t\tfid_parms.critical_resource\t= 0;\n+\t\tfid_parms.critical_resource = BNXT_ULP_CRITICAL_RESOURCE_NO;\n \n \t\trc = ulp_flow_db_resource_add(parms->ulp_ctx,\n \t\t\t\t\t      parms->tbl_idx,\n@@ -922,7 +922,7 @@ ulp_mapper_mark_gfid_process(struct bnxt_ulp_mapper_parms *parms,\n \t}\n \tfid_parms.direction = tbl->direction;\n \tfid_parms.resource_func = BNXT_ULP_RESOURCE_FUNC_HW_FID;\n-\tfid_parms.critical_resource = 0;\n+\tfid_parms.critical_resource = BNXT_ULP_CRITICAL_RESOURCE_NO;\n \tfid_parms.resource_type\t= mark_flag;\n \tfid_parms.resource_hndl\t= gfid;\n \trc = ulp_flow_db_resource_add(parms->ulp_ctx,\n@@ -970,7 +970,7 @@ ulp_mapper_mark_act_ptr_process(struct bnxt_ulp_mapper_parms *parms,\n \t}\n \tfid_parms.direction = tbl->direction;\n \tfid_parms.resource_func = BNXT_ULP_RESOURCE_FUNC_HW_FID;\n-\tfid_parms.critical_resource = 0;\n+\tfid_parms.critical_resource = BNXT_ULP_CRITICAL_RESOURCE_NO;\n \tfid_parms.resource_type\t= mark_flag;\n \tfid_parms.resource_hndl\t= act_idx;\n \trc = ulp_flow_db_resource_add(parms->ulp_ctx,\n@@ -1506,7 +1506,7 @@ ulp_mapper_index_tbl_process(struct bnxt_ulp_mapper_parms *parms,\n \tfid_parms.resource_func\t= tbl->resource_func;\n \tfid_parms.resource_type\t= tbl->resource_type;\n \tfid_parms.resource_hndl\t= aparms.idx;\n-\tfid_parms.critical_resource\t= 0;\n+\tfid_parms.critical_resource = BNXT_ULP_CRITICAL_RESOURCE_NO;\n \n \trc = ulp_flow_db_resource_add(parms->ulp_ctx,\n \t\t\t\t      parms->tbl_idx,\n@@ -1870,7 +1870,7 @@ ulp_mapper_resources_free(struct bnxt_ulp_context\t*ulp_ctx,\n \t * Set the critical resource on the first resource del, then iterate\n \t * while status is good\n \t */\n-\tres_parms.critical_resource = 1;\n+\tres_parms.critical_resource = BNXT_ULP_CRITICAL_RESOURCE_YES;\n \trc = ulp_flow_db_resource_del(ulp_ctx, tbl_type, fid, &res_parms);\n \n \tif (rc) {\n@@ -1896,8 +1896,8 @@ ulp_mapper_resources_free(struct bnxt_ulp_context\t*ulp_ctx,\n \t\t\t\t    tbl_type, fid, res_parms.resource_func,\n \t\t\t\t    res_parms.resource_hndl, trc);\n \n-\t\t/* All subsequent call require the critical_resource be zero */\n-\t\tres_parms.critical_resource = 0;\n+\t\t/* All subsequent call require the non-critical_resource */\n+\t\tres_parms.critical_resource = BNXT_ULP_CRITICAL_RESOURCE_NO;\n \n \t\trc = ulp_flow_db_resource_del(ulp_ctx,\n \t\t\t\t\t      tbl_type,\ndiff --git a/drivers/net/bnxt/tf_ulp/ulp_template_db.c b/drivers/net/bnxt/tf_ulp/ulp_template_db.c\nindex bac3bce..a9e1681 100644\n--- a/drivers/net/bnxt/tf_ulp/ulp_template_db.c\n+++ b/drivers/net/bnxt/tf_ulp/ulp_template_db.c\n@@ -607,7 +607,7 @@ struct bnxt_ulp_mapper_tbl_info ulp_class_tbl_list[] = {\n \t.ident_nums = 1,\n \t.mark_enable = BNXT_ULP_MARK_ENABLE_NO,\n \t.vfr_flag = BNXT_ULP_VFR_FLAG_NO,\n-\t.critical_resource = 0,\n+\t.critical_resource = BNXT_ULP_CRITICAL_RESOURCE_NO,\n \t.regfile_wr_idx = BNXT_ULP_REGFILE_INDEX_NOT_USED\n \t},\n \t{\n@@ -629,7 +629,7 @@ struct bnxt_ulp_mapper_tbl_info ulp_class_tbl_list[] = {\n \t.ident_nums = 0,\n \t.mark_enable = BNXT_ULP_MARK_ENABLE_NO,\n \t.vfr_flag = BNXT_ULP_VFR_FLAG_NO,\n-\t.critical_resource = 0,\n+\t.critical_resource = BNXT_ULP_CRITICAL_RESOURCE_NO,\n \t.regfile_wr_idx = BNXT_ULP_REGFILE_INDEX_NOT_USED\n \t},\n \t{\n@@ -651,7 +651,7 @@ struct bnxt_ulp_mapper_tbl_info ulp_class_tbl_list[] = {\n \t.ident_nums = 1,\n \t.mark_enable = BNXT_ULP_MARK_ENABLE_NO,\n \t.vfr_flag = BNXT_ULP_VFR_FLAG_NO,\n-\t.critical_resource = 0,\n+\t.critical_resource = BNXT_ULP_CRITICAL_RESOURCE_NO,\n \t.regfile_wr_idx = BNXT_ULP_REGFILE_INDEX_NOT_USED\n \t},\n \t{\n@@ -673,7 +673,7 @@ struct bnxt_ulp_mapper_tbl_info ulp_class_tbl_list[] = {\n \t.ident_nums = 0,\n \t.mark_enable = BNXT_ULP_MARK_ENABLE_NO,\n \t.vfr_flag = BNXT_ULP_VFR_FLAG_NO,\n-\t.critical_resource = 0,\n+\t.critical_resource = BNXT_ULP_CRITICAL_RESOURCE_NO,\n \t.regfile_wr_idx = BNXT_ULP_REGFILE_INDEX_NOT_USED\n \t},\n \t{\n@@ -695,7 +695,7 @@ struct bnxt_ulp_mapper_tbl_info ulp_class_tbl_list[] = {\n \t.ident_nums = 0,\n \t.mark_enable = BNXT_ULP_MARK_ENABLE_YES,\n \t.vfr_flag = BNXT_ULP_VFR_FLAG_NO,\n-\t.critical_resource = 1,\n+\t.critical_resource = BNXT_ULP_CRITICAL_RESOURCE_YES,\n \t.regfile_wr_idx = BNXT_ULP_REGFILE_INDEX_NOT_USED\n \t}\n };\ndiff --git a/drivers/net/bnxt/tf_ulp/ulp_template_db.h b/drivers/net/bnxt/tf_ulp/ulp_template_db.h\nindex a850e22..44ef839 100644\n--- a/drivers/net/bnxt/tf_ulp/ulp_template_db.h\n+++ b/drivers/net/bnxt/tf_ulp/ulp_template_db.h\n@@ -120,6 +120,12 @@ enum bnxt_ulp_cf_idx {\n \tBNXT_ULP_CF_IDX_LAST = 28\n };\n \n+enum bnxt_ulp_critical_resource {\n+\tBNXT_ULP_CRITICAL_RESOURCE_NO = 0,\n+\tBNXT_ULP_CRITICAL_RESOURCE_YES = 1,\n+\tBNXT_ULP_CRITICAL_RESOURCE_LAST = 2\n+};\n+\n enum bnxt_ulp_device_id {\n \tBNXT_ULP_DEVICE_ID_WH_PLUS = 0,\n \tBNXT_ULP_DEVICE_ID_THOR = 1,\ndiff --git a/drivers/net/bnxt/tf_ulp/ulp_template_struct.h b/drivers/net/bnxt/tf_ulp/ulp_template_struct.h\nindex df3519d..aaa91c3 100644\n--- a/drivers/net/bnxt/tf_ulp/ulp_template_struct.h\n+++ b/drivers/net/bnxt/tf_ulp/ulp_template_struct.h\n@@ -162,7 +162,7 @@ struct bnxt_ulp_mapper_tbl_info {\n \tuint8_t\t\tdirection;\n \tuint32_t\tpriority;\n \tuint8_t\t\tsrch_b4_alloc;\n-\tuint32_t\tcritical_resource;\n+\tenum bnxt_ulp_critical_resource\tcritical_resource;\n \n \t/* Information for accessing the ulp_key_field_list */\n \tuint32_t\tkey_start_idx;\n",
    "prefixes": [
        "19/36"
    ]
}