get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 134622,
    "url": "http://patchwork.dpdk.org/api/patches/134622/?format=api",
    "web_url": "http://patchwork.dpdk.org/project/dpdk/patch/20231127133903.1138657-2-huangdengdui@huawei.com/",
    "project": {
        "id": 1,
        "url": "http://patchwork.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": "<20231127133903.1138657-2-huangdengdui@huawei.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/20231127133903.1138657-2-huangdengdui@huawei.com",
    "date": "2023-11-27T13:39:01",
    "name": "[1/3] net/hns3: fix reset detect be ignored",
    "commit_ref": null,
    "pull_url": null,
    "state": "accepted",
    "archived": true,
    "hash": "55d71bfa10d24e8f4f168275ae8eec45919c48b0",
    "submitter": {
        "id": 3066,
        "url": "http://patchwork.dpdk.org/api/people/3066/?format=api",
        "name": "huangdengdui",
        "email": "huangdengdui@huawei.com"
    },
    "delegate": {
        "id": 319,
        "url": "http://patchwork.dpdk.org/api/users/319/?format=api",
        "username": "fyigit",
        "first_name": "Ferruh",
        "last_name": "Yigit",
        "email": "ferruh.yigit@amd.com"
    },
    "mbox": "http://patchwork.dpdk.org/project/dpdk/patch/20231127133903.1138657-2-huangdengdui@huawei.com/mbox/",
    "series": [
        {
            "id": 30394,
            "url": "http://patchwork.dpdk.org/api/series/30394/?format=api",
            "web_url": "http://patchwork.dpdk.org/project/dpdk/list/?series=30394",
            "date": "2023-11-27T13:39:00",
            "name": "fix some bug for hns3",
            "version": 1,
            "mbox": "http://patchwork.dpdk.org/series/30394/mbox/"
        }
    ],
    "comments": "http://patchwork.dpdk.org/api/patches/134622/comments/",
    "check": "success",
    "checks": "http://patchwork.dpdk.org/api/patches/134622/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 95A21433E5;\n\tMon, 27 Nov 2023 14:39:28 +0100 (CET)",
            "from mails.dpdk.org (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id 779A740A75;\n\tMon, 27 Nov 2023 14:39:10 +0100 (CET)",
            "from szxga02-in.huawei.com (szxga02-in.huawei.com [45.249.212.188])\n by mails.dpdk.org (Postfix) with ESMTP id 3C7824014F\n for <dev@dpdk.org>; Mon, 27 Nov 2023 14:39:06 +0100 (CET)",
            "from dggpeml500011.china.huawei.com (unknown [172.30.72.54])\n by szxga02-in.huawei.com (SkyGuard) with ESMTP id 4Sf65L14WMzShSY;\n Mon, 27 Nov 2023 21:34:46 +0800 (CST)",
            "from localhost.huawei.com (10.50.165.33) by\n dggpeml500011.china.huawei.com (7.185.36.84) with Microsoft SMTP Server\n (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id\n 15.1.2507.35; Mon, 27 Nov 2023 21:39:04 +0800"
        ],
        "From": "Dengdui Huang <huangdengdui@huawei.com>",
        "To": "<dev@dpdk.org>",
        "CC": "<ferruh.yigit@amd.com>, <stephen@networkplumber.org>,\n <haijie1@huawei.com>, <lihuisong@huawei.com>, <liuyonglong@huawei.com>,\n <fengchengwen@huawei.com>",
        "Subject": "[PATCH 1/3] net/hns3: fix reset detect be ignored",
        "Date": "Mon, 27 Nov 2023 21:39:01 +0800",
        "Message-ID": "<20231127133903.1138657-2-huangdengdui@huawei.com>",
        "X-Mailer": "git-send-email 2.33.0",
        "In-Reply-To": "<20231127133903.1138657-1-huangdengdui@huawei.com>",
        "References": "<20231127133903.1138657-1-huangdengdui@huawei.com>",
        "MIME-Version": "1.0",
        "Content-Transfer-Encoding": "8bit",
        "Content-Type": "text/plain",
        "X-Originating-IP": "[10.50.165.33]",
        "X-ClientProxiedBy": "dggems706-chm.china.huawei.com (10.3.19.183) To\n dggpeml500011.china.huawei.com (7.185.36.84)",
        "X-CFilter-Loop": "Reflected",
        "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"
    },
    "content": "The code logic that only new reset whose level is higher than old\nreset level will be addressed is added in hns3_detect_reset_event,\nsee commit 5be38fc6c0fc (\"net/hns3: fix multiple reset detected log\").\nWhen the new reset is detected and the old reset level is HNS3_NONE_RESET\nthis reset will be ignored. This patch fix it.\n\nFixes: 5be38fc6c0fc (\"net/hns3: fix multiple reset detected log\")\nCc: stable@dpdk.org\n\nSigned-off-by: Dengdui Huang <huangdengdui@huawei.com>\n---\n drivers/net/hns3/hns3_ethdev.c | 5 ++++-\n 1 file changed, 4 insertions(+), 1 deletion(-)",
    "diff": "diff --git a/drivers/net/hns3/hns3_ethdev.c b/drivers/net/hns3/hns3_ethdev.c\nindex 941d047bf1..ae81368f68 100644\n--- a/drivers/net/hns3/hns3_ethdev.c\n+++ b/drivers/net/hns3/hns3_ethdev.c\n@@ -5560,7 +5560,10 @@ hns3_detect_reset_event(struct hns3_hw *hw)\n \t\tnew_req = HNS3_GLOBAL_RESET;\n \t}\n \n-\tif (new_req != HNS3_NONE_RESET && last_req < new_req) {\n+\tif (new_req == HNS3_NONE_RESET)\n+\t\treturn HNS3_NONE_RESET;\n+\n+\tif (last_req == HNS3_NONE_RESET || last_req < new_req) {\n \t\thns3_schedule_delayed_reset(hns);\n \t\thns3_warn(hw, \"High level reset detected, delay do reset\");\n \t}\n",
    "prefixes": [
        "1/3"
    ]
}