get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 133664,
    "url": "http://patchwork.dpdk.org/api/patches/133664/?format=api",
    "web_url": "http://patchwork.dpdk.org/project/dpdk/patch/20231031122359.3930935-7-haijie1@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": "<20231031122359.3930935-7-haijie1@huawei.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/20231031122359.3930935-7-haijie1@huawei.com",
    "date": "2023-10-31T12:23:59",
    "name": "[6/6] net/hns3: fix uninitialized value",
    "commit_ref": null,
    "pull_url": null,
    "state": "accepted",
    "archived": true,
    "hash": "e803a9ee8a499df571b9d69149999be53e5f7c62",
    "submitter": {
        "id": 2935,
        "url": "http://patchwork.dpdk.org/api/people/2935/?format=api",
        "name": "Jie Hai",
        "email": "haijie1@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/20231031122359.3930935-7-haijie1@huawei.com/mbox/",
    "series": [
        {
            "id": 30073,
            "url": "http://patchwork.dpdk.org/api/series/30073/?format=api",
            "web_url": "http://patchwork.dpdk.org/project/dpdk/list/?series=30073",
            "date": "2023-10-31T12:23:55",
            "name": "net/hns3: add some bugfix for hns3",
            "version": 1,
            "mbox": "http://patchwork.dpdk.org/series/30073/mbox/"
        }
    ],
    "comments": "http://patchwork.dpdk.org/api/patches/133664/comments/",
    "check": "success",
    "checks": "http://patchwork.dpdk.org/api/patches/133664/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 4D34843252;\n\tTue, 31 Oct 2023 13:36:06 +0100 (CET)",
            "from mails.dpdk.org (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id 2224140E36;\n\tTue, 31 Oct 2023 13:35:46 +0100 (CET)",
            "from szxga01-in.huawei.com (szxga01-in.huawei.com [45.249.212.187])\n by mails.dpdk.org (Postfix) with ESMTP id 9285A40633\n for <dev@dpdk.org>; Tue, 31 Oct 2023 13:35:41 +0100 (CET)",
            "from kwepemi500020.china.huawei.com (unknown [172.30.72.55])\n by szxga01-in.huawei.com (SkyGuard) with ESMTP id 4SKTxs3VTJzvQ7Q\n for <dev@dpdk.org>; Tue, 31 Oct 2023 20:30:41 +0800 (CST)",
            "from localhost.localdomain (10.67.165.2) by\n kwepemi500020.china.huawei.com (7.221.188.8) with Microsoft SMTP Server\n (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id\n 15.1.2507.31; Tue, 31 Oct 2023 20:35:40 +0800"
        ],
        "From": "Jie Hai <haijie1@huawei.com>",
        "To": "<dev@dpdk.org>, Yisen Zhuang <yisen.zhuang@huawei.com>, Dongdong Liu\n <liudongdong3@huawei.com>, Huisong Li <lihuisong@huawei.com>",
        "CC": "<fengchengwen@huawei.com>",
        "Subject": "[PATCH 6/6] net/hns3: fix uninitialized value",
        "Date": "Tue, 31 Oct 2023 20:23:59 +0800",
        "Message-ID": "<20231031122359.3930935-7-haijie1@huawei.com>",
        "X-Mailer": "git-send-email 2.30.0",
        "In-Reply-To": "<20231031122359.3930935-1-haijie1@huawei.com>",
        "References": "<20231031122359.3930935-1-haijie1@huawei.com>",
        "MIME-Version": "1.0",
        "Content-Transfer-Encoding": "8bit",
        "Content-Type": "text/plain",
        "X-Originating-IP": "[10.67.165.2]",
        "X-ClientProxiedBy": "dggems703-chm.china.huawei.com (10.3.19.180) To\n kwepemi500020.china.huawei.com (7.221.188.8)",
        "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": "This patch initializes \"hash_algo\" as zero to avoid using\nit uninitialized.\n\nFixes: e3069658da9f (\"net/hns3: reimplement hash flow function\"\nCc: stable@dpdk.org\n\nSigned-off-by: Jie Hai <haijie1@huawei.com>\n---\n drivers/net/hns3/hns3_rss.c | 4 ++--\n 1 file changed, 2 insertions(+), 2 deletions(-)",
    "diff": "diff --git a/drivers/net/hns3/hns3_rss.c b/drivers/net/hns3/hns3_rss.c\nindex 9bb84262563c..eeeca71a5c1a 100644\n--- a/drivers/net/hns3/hns3_rss.c\n+++ b/drivers/net/hns3/hns3_rss.c\n@@ -771,7 +771,7 @@ hns3_dev_rss_hash_conf_get(struct rte_eth_dev *dev,\n {\n \tstruct hns3_adapter *hns = dev->data->dev_private;\n \tstruct hns3_hw *hw = &hns->hw;\n-\tuint8_t hash_algo;\n+\tuint8_t hash_algo = 0;\n \tint ret;\n \n \trte_spinlock_lock(&hw->lock);\n@@ -993,7 +993,7 @@ hns3_update_rss_algo_key(struct hns3_hw *hw, uint8_t hash_func,\n {\n \tuint8_t rss_key[HNS3_RSS_KEY_SIZE_MAX] = {0};\n \tbool modify_key, modify_algo;\n-\tuint8_t hash_algo;\n+\tuint8_t hash_algo = 0;\n \tint ret;\n \n \tmodify_key = (key != NULL && key_len > 0);\n",
    "prefixes": [
        "6/6"
    ]
}