get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 70800,
    "url": "http://patches.dpdk.org/api/patches/70800/?format=api",
    "web_url": "http://patches.dpdk.org/project/dpdk/patch/20200603024016.30636-39-qi.z.zhang@intel.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": "<20200603024016.30636-39-qi.z.zhang@intel.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/20200603024016.30636-39-qi.z.zhang@intel.com",
    "date": "2020-06-03T02:40:02",
    "name": "[38/52] net/ice/base: add entries in Profile TCAM with priority",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": true,
    "hash": "420c2a09e937ec10a02ca20e6275e69f5fda234a",
    "submitter": {
        "id": 504,
        "url": "http://patches.dpdk.org/api/people/504/?format=api",
        "name": "Qi Zhang",
        "email": "qi.z.zhang@intel.com"
    },
    "delegate": {
        "id": 31221,
        "url": "http://patches.dpdk.org/api/users/31221/?format=api",
        "username": "yexl",
        "first_name": "xiaolong",
        "last_name": "ye",
        "email": "xiaolong.ye@intel.com"
    },
    "mbox": "http://patches.dpdk.org/project/dpdk/patch/20200603024016.30636-39-qi.z.zhang@intel.com/mbox/",
    "series": [
        {
            "id": 10300,
            "url": "http://patches.dpdk.org/api/series/10300/?format=api",
            "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=10300",
            "date": "2020-06-03T02:39:24",
            "name": "net/ice: base code update",
            "version": 1,
            "mbox": "http://patches.dpdk.org/series/10300/mbox/"
        }
    ],
    "comments": "http://patches.dpdk.org/api/patches/70800/comments/",
    "check": "success",
    "checks": "http://patches.dpdk.org/api/patches/70800/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 D6A1AA04EF;\n\tWed,  3 Jun 2020 04:42:50 +0200 (CEST)",
            "from [92.243.14.124] (localhost [127.0.0.1])\n\tby dpdk.org (Postfix) with ESMTP id 842E81D569;\n\tWed,  3 Jun 2020 04:37:41 +0200 (CEST)",
            "from mga11.intel.com (mga11.intel.com [192.55.52.93])\n by dpdk.org (Postfix) with ESMTP id EAA821D560\n for <dev@dpdk.org>; Wed,  3 Jun 2020 04:37:39 +0200 (CEST)",
            "from orsmga001.jf.intel.com ([10.7.209.18])\n by fmsmga102.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384;\n 02 Jun 2020 19:37:39 -0700",
            "from dpdk51.sh.intel.com ([10.67.111.82])\n by orsmga001.jf.intel.com with ESMTP; 02 Jun 2020 19:37:37 -0700"
        ],
        "IronPort-SDR": [
            "\n /pZM7N9YaCLi1kuSx7zeNqZeaCicyIaNPhfae/JtW8ZlT5gH7WK6xGnzBvzBsYvVOjPBcyurgx\n gvj36khuReTQ==",
            "\n X29Idz6fEHsnbmnHzKrdf08jWCQvb0Zkzp8gIO7IDuUOFhfidv5Z5Szo0V3iYw7/Jfq8pDLRGQ\n j0+FBO1KZnHA=="
        ],
        "X-Amp-Result": "SKIPPED(no attachment in message)",
        "X-Amp-File-Uploaded": "False",
        "X-ExtLoop1": "1",
        "X-IronPort-AV": "E=Sophos;i=\"5.73,466,1583222400\"; d=\"scan'208\";a=\"347614220\"",
        "From": "Qi Zhang <qi.z.zhang@intel.com>",
        "To": "qiming.yang@intel.com",
        "Cc": "dev@dpdk.org, xiaolong.ye@intel.com, Qi Zhang <qi.z.zhang@intel.com>,\n Dan Nowlin <dan.nowlin@intel.com>,\n \"Paul M . Stillwell Jr\" <paul.m.stillwell.jr@intel.com>",
        "Date": "Wed,  3 Jun 2020 10:40:02 +0800",
        "Message-Id": "<20200603024016.30636-39-qi.z.zhang@intel.com>",
        "X-Mailer": "git-send-email 2.13.6",
        "In-Reply-To": "<20200603024016.30636-1-qi.z.zhang@intel.com>",
        "References": "<20200603024016.30636-1-qi.z.zhang@intel.com>",
        "Subject": "[dpdk-dev] [PATCH 38/52] net/ice/base: add entries in Profile TCAM\n\twith priority",
        "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": "The profile TCAM tables are implemented such that entries with a smaller\nindex in the table have a higher priority. When records to be added to the\ntable have flags to differentiate between standard PTG and VSIG records,\nthen these entries need to have higher priority in order to be found and\nprocessed first.\n\nSigned-off-by: Dan Nowlin <dan.nowlin@intel.com>\nSigned-off-by: Paul M. Stillwell Jr <paul.m.stillwell.jr@intel.com>\nSigned-off-by: Qi Zhang <qi.z.zhang@intel.com>\n---\n drivers/net/ice/base/ice_flex_pipe.c | 20 ++++++++++++++++----\n 1 file changed, 16 insertions(+), 4 deletions(-)",
    "diff": "diff --git a/drivers/net/ice/base/ice_flex_pipe.c b/drivers/net/ice/base/ice_flex_pipe.c\nindex 340a855d3..4e69d2dc2 100644\n--- a/drivers/net/ice/base/ice_flex_pipe.c\n+++ b/drivers/net/ice/base/ice_flex_pipe.c\n@@ -2893,20 +2893,22 @@ static bool ice_tcam_ent_rsrc_type(enum ice_block blk, u16 *rsrc_type)\n  * ice_alloc_tcam_ent - allocate hardware TCAM entry\n  * @hw: pointer to the HW struct\n  * @blk: the block to allocate the TCAM for\n+ * @btm: true to allocate from bottom of table, false to allocate from top\n  * @tcam_idx: pointer to variable to receive the TCAM entry\n  *\n  * This function allocates a new entry in a Profile ID TCAM for a specific\n  * block.\n  */\n static enum ice_status\n-ice_alloc_tcam_ent(struct ice_hw *hw, enum ice_block blk, u16 *tcam_idx)\n+ice_alloc_tcam_ent(struct ice_hw *hw, enum ice_block blk, bool btm,\n+\t\t   u16 *tcam_idx)\n {\n \tu16 res_type;\n \n \tif (!ice_tcam_ent_rsrc_type(blk, &res_type))\n \t\treturn ICE_ERR_PARAM;\n \n-\treturn ice_alloc_hw_res(hw, res_type, 1, true, tcam_idx);\n+\treturn ice_alloc_hw_res(hw, res_type, 1, btm, tcam_idx);\n }\n \n /**\n@@ -5225,7 +5227,12 @@ ice_prof_tcam_ena_dis(struct ice_hw *hw, enum ice_block blk, bool enable,\n \t}\n \n \t/* for re-enabling, reallocate a TCAM */\n-\tstatus = ice_alloc_tcam_ent(hw, blk, &tcam->tcam_idx);\n+\t/* for entries with empty attribute masks, allocate entry from\n+\t * the bottom of the tcam table; otherwise, allocate from the\n+\t * top of the table in order to give it higher priority\n+\t */\n+\tstatus = ice_alloc_tcam_ent(hw, blk, tcam->attr.mask == 0,\n+\t\t\t\t    &tcam->tcam_idx);\n \tif (status)\n \t\treturn status;\n \n@@ -5426,7 +5433,12 @@ ice_add_prof_id_vsig(struct ice_hw *hw, enum ice_block blk, u16 vsig, u64 hdl,\n \t\t\tgoto err_ice_add_prof_id_vsig;\n \n \t\t/* allocate the TCAM entry index */\n-\t\tstatus = ice_alloc_tcam_ent(hw, blk, &tcam_idx);\n+\t\t/* for entries with empty attribute masks, allocate entry from\n+\t\t * the bottom of the tcam table; otherwise, allocate from the\n+\t\t * top of the table in order to give it higher priority\n+\t\t */\n+\t\tstatus = ice_alloc_tcam_ent(hw, blk, map->attr[i].mask == 0,\n+\t\t\t\t\t    &tcam_idx);\n \t\tif (status) {\n \t\t\tice_free(hw, p);\n \t\t\tgoto err_ice_add_prof_id_vsig;\n",
    "prefixes": [
        "38/52"
    ]
}