get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 91269,
    "url": "http://patches.dpdk.org/api/patches/91269/?format=api",
    "web_url": "http://patches.dpdk.org/project/dpdk/patch/20210413143038.2621294-9-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": "<20210413143038.2621294-9-qi.z.zhang@intel.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/20210413143038.2621294-9-qi.z.zhang@intel.com",
    "date": "2021-04-13T14:30:32",
    "name": "[v3,08/14] net/ice/base: add priority check of matching recipe",
    "commit_ref": null,
    "pull_url": null,
    "state": "accepted",
    "archived": true,
    "hash": "85224aef326376ac2e851cc09423c7178d621b14",
    "submitter": {
        "id": 504,
        "url": "http://patches.dpdk.org/api/people/504/?format=api",
        "name": "Qi Zhang",
        "email": "qi.z.zhang@intel.com"
    },
    "delegate": {
        "id": 1540,
        "url": "http://patches.dpdk.org/api/users/1540/?format=api",
        "username": "qzhan15",
        "first_name": "Qi",
        "last_name": "Zhang",
        "email": "qi.z.zhang@intel.com"
    },
    "mbox": "http://patches.dpdk.org/project/dpdk/patch/20210413143038.2621294-9-qi.z.zhang@intel.com/mbox/",
    "series": [
        {
            "id": 16337,
            "url": "http://patches.dpdk.org/api/series/16337/?format=api",
            "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=16337",
            "date": "2021-04-13T14:30:24",
            "name": "ice: base code update batch 2",
            "version": 3,
            "mbox": "http://patches.dpdk.org/series/16337/mbox/"
        }
    ],
    "comments": "http://patches.dpdk.org/api/patches/91269/comments/",
    "check": "success",
    "checks": "http://patches.dpdk.org/api/patches/91269/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 mails.dpdk.org (mails.dpdk.org [217.70.189.124])\n\tby inbox.dpdk.org (Postfix) with ESMTP id 23330A0524;\n\tTue, 13 Apr 2021 16:27:50 +0200 (CEST)",
            "from [217.70.189.124] (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id A0F62161073;\n\tTue, 13 Apr 2021 16:27:12 +0200 (CEST)",
            "from mga01.intel.com (mga01.intel.com [192.55.52.88])\n by mails.dpdk.org (Postfix) with ESMTP id D3AD8161065\n for <dev@dpdk.org>; Tue, 13 Apr 2021 16:27:09 +0200 (CEST)",
            "from fmsmga008.fm.intel.com ([10.253.24.58])\n by fmsmga101.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384;\n 13 Apr 2021 07:27:09 -0700",
            "from dpdk51.sh.intel.com ([10.67.111.142])\n by fmsmga008.fm.intel.com with ESMTP; 13 Apr 2021 07:27:08 -0700"
        ],
        "IronPort-SDR": [
            "\n pnR6M03wmuDB7PgZLNJplhjkOwLMgUJfzNhDXWGEHgYL4wtYEQRjm6VukB4x6n7Xsiyshz0UwN\n yS8HbkQqn0kA==",
            "\n QoD3zkxsnqre0eitKTRB4xZWNv+IsMc3yr2Z7F3VCY/V+/o++8nPg4Fba8QfCIjUqkwywiV6TI\n G9Bmg/JgTYgA=="
        ],
        "X-IronPort-AV": [
            "E=McAfee;i=\"6200,9189,9953\"; a=\"214904243\"",
            "E=Sophos;i=\"5.82,219,1613462400\"; d=\"scan'208\";a=\"214904243\"",
            "E=Sophos;i=\"5.82,219,1613462400\"; d=\"scan'208\";a=\"417875225\""
        ],
        "X-ExtLoop1": "1",
        "From": "Qi Zhang <qi.z.zhang@intel.com>",
        "To": "qiming.yang@intel.com",
        "Cc": "dev@dpdk.org, ferruh.yigit@intel.com, Qi Zhang <qi.z.zhang@intel.com>,\n Yuying Zhang <yuying.zhang@intel.com>",
        "Date": "Tue, 13 Apr 2021 22:30:32 +0800",
        "Message-Id": "<20210413143038.2621294-9-qi.z.zhang@intel.com>",
        "X-Mailer": "git-send-email 2.26.2",
        "In-Reply-To": "<20210413143038.2621294-1-qi.z.zhang@intel.com>",
        "References": "<20210329141411.2395069-1-qi.z.zhang@intel.com>\n <20210413143038.2621294-1-qi.z.zhang@intel.com>",
        "MIME-Version": "1.0",
        "Content-Transfer-Encoding": "8bit",
        "Subject": "[dpdk-dev] [PATCH v3 08/14] net/ice/base: add priority check of\n matching recipe",
        "X-BeenThere": "dev@dpdk.org",
        "X-Mailman-Version": "2.1.29",
        "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": "Check priority when look for a recipe which matches our request\nto enable flow priority for switch filter.\n\nSigned-off-by: Yuying Zhang <yuying.zhang@intel.com>\nSigned-off-by: Qi Zhang <qi.z.zhang@intel.com>\nAcked-by: Qiming Yang <qiming.yang@intel.com>\n---\n drivers/net/ice/base/ice_switch.c | 9 +++++----\n 1 file changed, 5 insertions(+), 4 deletions(-)",
    "diff": "diff --git a/drivers/net/ice/base/ice_switch.c b/drivers/net/ice/base/ice_switch.c\nindex d4203f2730..db0cc03324 100644\n--- a/drivers/net/ice/base/ice_switch.c\n+++ b/drivers/net/ice/base/ice_switch.c\n@@ -6574,7 +6574,7 @@ static struct ice_protocol_entry ice_prot_id_tbl[ICE_PROTOCOL_LAST] = {\n  * Returns index of matching recipe, or ICE_MAX_NUM_RECIPES if not found.\n  */\n static u16 ice_find_recp(struct ice_hw *hw, struct ice_prot_lkup_ext *lkup_exts,\n-\t\t\t enum ice_sw_tunnel_type tun_type)\n+\t\t\t enum ice_sw_tunnel_type tun_type, u32 priority)\n {\n \tbool refresh_required = true;\n \tstruct ice_sw_recipe *recp;\n@@ -6636,7 +6636,8 @@ static u16 ice_find_recp(struct ice_hw *hw, struct ice_prot_lkup_ext *lkup_exts,\n \t\t\t/* If for \"i\"th recipe the found was never set to false\n \t\t\t * then it means we found our match\n \t\t\t */\n-\t\t\tif (tun_type == recp[i].tun_type && found)\n+\t\t\tif (tun_type == recp[i].tun_type && found &&\n+\t\t\t    priority == recp[i].priority)\n \t\t\t\treturn i; /* Return the recipe ID */\n \t\t}\n \t}\n@@ -7650,7 +7651,7 @@ ice_add_adv_recipe(struct ice_hw *hw, struct ice_adv_lkup_elem *lkups,\n \t}\n \n \t/* Look for a recipe which matches our requested fv / mask list */\n-\t*rid = ice_find_recp(hw, lkup_exts, rinfo->tun_type);\n+\t*rid = ice_find_recp(hw, lkup_exts, rinfo->tun_type, rinfo->priority);\n \tif (*rid < ICE_MAX_NUM_RECIPES)\n \t\t/* Success if found a recipe that match the existing criteria */\n \t\tgoto err_unroll;\n@@ -8779,7 +8780,7 @@ ice_rem_adv_rule(struct ice_hw *hw, struct ice_adv_lkup_elem *lkups,\n \tif (status)\n \t\treturn status;\n \n-\trid = ice_find_recp(hw, &lkup_exts, rinfo->tun_type);\n+\trid = ice_find_recp(hw, &lkup_exts, rinfo->tun_type, rinfo->priority);\n \t/* If did not find a recipe that match the existing criteria */\n \tif (rid == ICE_MAX_NUM_RECIPES)\n \t\treturn ICE_ERR_PARAM;\n",
    "prefixes": [
        "v3",
        "08/14"
    ]
}