get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 131831,
    "url": "http://patches.dpdk.org/api/patches/131831/?format=api",
    "web_url": "http://patches.dpdk.org/project/dpdk/patch/20230922165356.31567-1-syalavarthi@marvell.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": "<20230922165356.31567-1-syalavarthi@marvell.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/20230922165356.31567-1-syalavarthi@marvell.com",
    "date": "2023-09-22T16:53:55",
    "name": "[1/1] eal: enable xz read support and ignore warning",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": true,
    "hash": "6711274d2ba561214c71050c7c114e5f1d4caf75",
    "submitter": {
        "id": 2480,
        "url": "http://patches.dpdk.org/api/people/2480/?format=api",
        "name": "Srikanth Yalavarthi",
        "email": "syalavarthi@marvell.com"
    },
    "delegate": {
        "id": 1,
        "url": "http://patches.dpdk.org/api/users/1/?format=api",
        "username": "tmonjalo",
        "first_name": "Thomas",
        "last_name": "Monjalon",
        "email": "thomas@monjalon.net"
    },
    "mbox": "http://patches.dpdk.org/project/dpdk/patch/20230922165356.31567-1-syalavarthi@marvell.com/mbox/",
    "series": [
        {
            "id": 29606,
            "url": "http://patches.dpdk.org/api/series/29606/?format=api",
            "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=29606",
            "date": "2023-09-22T16:53:55",
            "name": "[1/1] eal: enable xz read support and ignore warning",
            "version": 1,
            "mbox": "http://patches.dpdk.org/series/29606/mbox/"
        }
    ],
    "comments": "http://patches.dpdk.org/api/patches/131831/comments/",
    "check": "success",
    "checks": "http://patches.dpdk.org/api/patches/131831/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 71F9D4261E;\n\tFri, 22 Sep 2023 18:54:04 +0200 (CEST)",
            "from mails.dpdk.org (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id EE1C240150;\n\tFri, 22 Sep 2023 18:54:03 +0200 (CEST)",
            "from mx0b-0016f401.pphosted.com (mx0a-0016f401.pphosted.com\n [67.231.148.174])\n by mails.dpdk.org (Postfix) with ESMTP id 31FE94013F;\n Fri, 22 Sep 2023 18:54:02 +0200 (CEST)",
            "from pps.filterd (m0045849.ppops.net [127.0.0.1])\n by mx0a-0016f401.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id\n 38M19tMS017757; Fri, 22 Sep 2023 09:54:01 -0700",
            "from dc5-exch01.marvell.com ([199.233.59.181])\n by mx0a-0016f401.pphosted.com (PPS) with ESMTPS id 3t8trb3vka-1\n (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT);\n Fri, 22 Sep 2023 09:54:00 -0700",
            "from DC5-EXCH02.marvell.com (10.69.176.39) by DC5-EXCH01.marvell.com\n (10.69.176.38) with Microsoft SMTP Server (TLS) id 15.0.1497.48;\n Fri, 22 Sep 2023 09:53:59 -0700",
            "from maili.marvell.com (10.69.176.80) by DC5-EXCH02.marvell.com\n (10.69.176.39) with Microsoft SMTP Server id 15.0.1497.48 via Frontend\n Transport; Fri, 22 Sep 2023 09:53:59 -0700",
            "from ml-host-33.caveonetworks.com (unknown [10.110.143.233])\n by maili.marvell.com (Postfix) with ESMTP id E49433F706F;\n Fri, 22 Sep 2023 09:53:58 -0700 (PDT)"
        ],
        "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed; d=marvell.com;\n h=from : to : cc :\n subject : date : message-id : mime-version : content-transfer-encoding :\n content-type; s=pfpt0220; bh=NhtY5L6sSqF9M6UVT3ONy5mNmhNket0afw4MYhCRmqQ=;\n b=kq8UFN0IuF3o6a8bgVu8VagfOs433/P8VVyKpXU/93BpKVtQhFGod2MtDkeiUi6smHQA\n udqEaq+ZW0c0SXSQsAmjQyKDyhUAiGmdQk5uT9WAGGYK3soJPgPYcacRtEiCOYJ1tZIL\n EP+v5JP9qKNCVCAcymdvP1e4RpVjJ91onTfOMRIFgiYHcAgW0ne9Ae7TbRe84F6e5cMp\n 87Q4G9G1u1Styz5MrNsZ2wHxGZzGvzMDYUiUYBqm+oMTvKPSxHWzXrLPpbWIfYvupM9W\n 1Ykn9ggGiAQE/ktct8N5AYOpZ6AmrpMUQSLs6tWSkZY4OFHICZw3Y1GAchgr37x9o5b1 Og==",
        "From": "Srikanth Yalavarthi <syalavarthi@marvell.com>",
        "To": "David Marchand <david.marchand@redhat.com>, Aaron Conole\n <aconole@redhat.com>, Igor Russkikh <irusskikh@marvell.com>",
        "CC": "<dev@dpdk.org>, <syalavarthi@marvell.com>, <sshankarnara@marvell.com>,\n <aprabhu@marvell.com>, <ptakkar@marvell.com>, <jerinjacobk@gmail.com>,\n <stable@dpdk.org>",
        "Subject": "[PATCH 1/1] eal: enable xz read support and ignore warning",
        "Date": "Fri, 22 Sep 2023 09:53:55 -0700",
        "Message-ID": "<20230922165356.31567-1-syalavarthi@marvell.com>",
        "X-Mailer": "git-send-email 2.41.0",
        "MIME-Version": "1.0",
        "Content-Transfer-Encoding": "8bit",
        "Content-Type": "text/plain",
        "X-Proofpoint-ORIG-GUID": "K1G-xeQtNZGCHWtFIO5hRsi6b6HiXgdw",
        "X-Proofpoint-GUID": "K1G-xeQtNZGCHWtFIO5hRsi6b6HiXgdw",
        "X-Proofpoint-Virus-Version": "vendor=baseguard\n engine=ICAP:2.0.267,Aquarius:18.0.980,Hydra:6.0.619,FMLib:17.11.176.26\n definitions=2023-09-22_15,2023-09-21_01,2023-05-22_02",
        "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": "archive_read_support_filter_xz returns a warning when\ncompression is not fully supported and is supported\nthrough external program. This warning can be ignored\nwhen reading the files through firmware open as only\ndecompression is required.\n\nFixes: 40edb9c0d36b (\"eal: handle compressed firmware\")\nCc: stable@dpdk.org\n\nSigned-off-by: Srikanth Yalavarthi <syalavarthi@marvell.com>\n---\n lib/eal/unix/eal_firmware.c | 9 ++++++++-\n 1 file changed, 8 insertions(+), 1 deletion(-)",
    "diff": "diff --git a/lib/eal/unix/eal_firmware.c b/lib/eal/unix/eal_firmware.c\nindex d1616b0bd9..05c06c222a 100644\n--- a/lib/eal/unix/eal_firmware.c\n+++ b/lib/eal/unix/eal_firmware.c\n@@ -25,12 +25,19 @@ static int\n firmware_open(struct firmware_read_ctx *ctx, const char *name, size_t blocksize)\n {\n \tstruct archive_entry *e;\n+\tint err;\n \n \tctx->a = archive_read_new();\n \tif (ctx->a == NULL)\n \t\treturn -1;\n+\n+\terr = archive_read_support_filter_xz(ctx->a);\n+\tif (err != ARCHIVE_OK && err != ARCHIVE_WARN) {\n+\t\tctx->a = NULL;\n+\t\treturn -1;\n+\t}\n+\n \tif (archive_read_support_format_raw(ctx->a) != ARCHIVE_OK ||\n-\t\t\tarchive_read_support_filter_xz(ctx->a) != ARCHIVE_OK ||\n \t\t\tarchive_read_open_filename(ctx->a, name, blocksize) != ARCHIVE_OK ||\n \t\t\tarchive_read_next_header(ctx->a, &e) != ARCHIVE_OK) {\n \t\tarchive_read_free(ctx->a);\n",
    "prefixes": [
        "1/1"
    ]
}