get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 66207,
    "url": "https://patches.dpdk.org/api/patches/66207/?format=api",
    "web_url": "https://patches.dpdk.org/project/dpdk/patch/20200303053846.10610-1-taox.zhu@intel.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": "<20200303053846.10610-1-taox.zhu@intel.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/20200303053846.10610-1-taox.zhu@intel.com",
    "date": "2020-03-03T05:38:46",
    "name": "[v3] net/ice: fix hash flow segmentation fault",
    "commit_ref": null,
    "pull_url": null,
    "state": "accepted",
    "archived": true,
    "hash": "5b0a8f5aaa4141333b1f360b0423ebc1724d6e40",
    "submitter": {
        "id": 1368,
        "url": "https://patches.dpdk.org/api/people/1368/?format=api",
        "name": "Zhu, TaoX",
        "email": "taox.zhu@intel.com"
    },
    "delegate": {
        "id": 31221,
        "url": "https://patches.dpdk.org/api/users/31221/?format=api",
        "username": "yexl",
        "first_name": "xiaolong",
        "last_name": "ye",
        "email": "xiaolong.ye@intel.com"
    },
    "mbox": "https://patches.dpdk.org/project/dpdk/patch/20200303053846.10610-1-taox.zhu@intel.com/mbox/",
    "series": [
        {
            "id": 8756,
            "url": "https://patches.dpdk.org/api/series/8756/?format=api",
            "web_url": "https://patches.dpdk.org/project/dpdk/list/?series=8756",
            "date": "2020-03-03T05:38:46",
            "name": "[v3] net/ice: fix hash flow segmentation fault",
            "version": 3,
            "mbox": "https://patches.dpdk.org/series/8756/mbox/"
        }
    ],
    "comments": "https://patches.dpdk.org/api/patches/66207/comments/",
    "check": "success",
    "checks": "https://patches.dpdk.org/api/patches/66207/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 21AA9A056D;\n\tTue,  3 Mar 2020 06:45:20 +0100 (CET)",
            "from [92.243.14.124] (localhost [127.0.0.1])\n\tby dpdk.org (Postfix) with ESMTP id B8BB61BFF2;\n\tTue,  3 Mar 2020 06:45:19 +0100 (CET)",
            "from mga17.intel.com (mga17.intel.com [192.55.52.151])\n by dpdk.org (Postfix) with ESMTP id D960A1BFF0;\n Tue,  3 Mar 2020 06:45:17 +0100 (CET)",
            "from fmsmga001.fm.intel.com ([10.253.24.23])\n by fmsmga107.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384;\n 02 Mar 2020 21:45:17 -0800",
            "from dpdk-zhutao-d.sh.intel.com ([10.240.179.19])\n by fmsmga001.fm.intel.com with ESMTP; 02 Mar 2020 21:45:14 -0800"
        ],
        "X-Amp-Result": "SKIPPED(no attachment in message)",
        "X-Amp-File-Uploaded": "False",
        "X-ExtLoop1": "1",
        "X-IronPort-AV": "E=Sophos;i=\"5.70,510,1574150400\"; d=\"scan'208\";a=\"351745274\"",
        "From": "taox.zhu@intel.com",
        "To": "qiming.yang@intel.com,\n\twenzhuo.lu@intel.com",
        "Cc": "dev@dpdk.org, simei.su@intel.com, yahui.cao@intel.com,\n xiaolong.ye@intel.com, Zhu Tao <taox.zhu@intel.com>, stable@dpdk.org",
        "Date": "Tue,  3 Mar 2020 13:38:46 +0800",
        "Message-Id": "<20200303053846.10610-1-taox.zhu@intel.com>",
        "X-Mailer": "git-send-email 2.17.1",
        "In-Reply-To": "<20200303015557.63621-1-taox.zhu@intel.com>",
        "References": "<20200303015557.63621-1-taox.zhu@intel.com>",
        "Subject": "[dpdk-dev] [PATCH v3] net/ice: fix hash flow segmentation fault",
        "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: Zhu Tao <taox.zhu@intel.com>\n\nMacro rte_errno is not a static value, so it needs to be updated in all\nerror handling code.\n\nPatch 'dc36bd5dfdeb' mistakenly consider that rte_errno is a constant,\nwhich causes the unrecognized flow rule to be marked as recognition\nsuccess. Later, when the code tried to parse the flow rule, a null pointer\ncaused a segmentation fault.\n\nFixes: dc36bd5dfdeb (\"net/ice: fix flow FDIR/switch memory leak\")\nCc: stable@dpdk.org\n\nSigned-off-by: Zhu Tao <taox.zhu@intel.com>\n---\nv3 Changes:\n\n Commit message: Use 12 chars length of commit SHA in Fixes line.\n Code: Delete redundant assignment codes.\n\nv2 Changes:\n\n Commit message: Use 12 chars length of commit SHA in Fixes line.\n\n drivers/net/ice/ice_hash.c | 6 ++++--\n 1 file changed, 4 insertions(+), 2 deletions(-)",
    "diff": "diff --git a/drivers/net/ice/ice_hash.c b/drivers/net/ice/ice_hash.c\nindex d891538bd..0e9c3c4e5 100644\n--- a/drivers/net/ice/ice_hash.c\n+++ b/drivers/net/ice/ice_hash.c\n@@ -409,7 +409,7 @@ ice_hash_parse_pattern_action(__rte_unused struct ice_adapter *ad,\n \t\t\tvoid **meta,\n \t\t\tstruct rte_flow_error *error)\n {\n-\tint ret = -rte_errno;\n+\tint ret = 0;\n \tstruct ice_pattern_match_item *pattern_match_item;\n \tstruct rss_meta *rss_meta_ptr;\n \n@@ -424,8 +424,10 @@ ice_hash_parse_pattern_action(__rte_unused struct ice_adapter *ad,\n \t/* Check rss supported pattern and find matched pattern. */\n \tpattern_match_item = ice_search_pattern_match_item(pattern,\n \t\t\t\t\tarray, array_len, error);\n-\tif (!pattern_match_item)\n+\tif (!pattern_match_item) {\n+\t\tret = -rte_errno;\n \t\tgoto error;\n+\t}\n \n \tret = ice_hash_check_inset(pattern, error);\n \tif (ret)\n",
    "prefixes": [
        "v3"
    ]
}