get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 45170,
    "url": "https://patches.dpdk.org/api/patches/45170/?format=api",
    "web_url": "https://patches.dpdk.org/project/dpdk/patch/1537622738-29475-1-git-send-email-fiona.trahe@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": "<1537622738-29475-1-git-send-email-fiona.trahe@intel.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/1537622738-29475-1-git-send-email-fiona.trahe@intel.com",
    "date": "2018-09-22T13:25:37",
    "name": "[1/2] compress/qat: fix for zero checksum on decompression",
    "commit_ref": null,
    "pull_url": null,
    "state": "accepted",
    "archived": true,
    "hash": "a770a65ebc1644d2a61a7fa9a6e6d9fba91913ac",
    "submitter": {
        "id": 423,
        "url": "https://patches.dpdk.org/api/people/423/?format=api",
        "name": "Fiona Trahe",
        "email": "fiona.trahe@intel.com"
    },
    "delegate": {
        "id": 6690,
        "url": "https://patches.dpdk.org/api/users/6690/?format=api",
        "username": "akhil",
        "first_name": "akhil",
        "last_name": "goyal",
        "email": "gakhil@marvell.com"
    },
    "mbox": "https://patches.dpdk.org/project/dpdk/patch/1537622738-29475-1-git-send-email-fiona.trahe@intel.com/mbox/",
    "series": [
        {
            "id": 1453,
            "url": "https://patches.dpdk.org/api/series/1453/?format=api",
            "web_url": "https://patches.dpdk.org/project/dpdk/list/?series=1453",
            "date": "2018-09-22T13:25:37",
            "name": "[1/2] compress/qat: fix for zero checksum on decompression",
            "version": 1,
            "mbox": "https://patches.dpdk.org/series/1453/mbox/"
        }
    ],
    "comments": "https://patches.dpdk.org/api/patches/45170/comments/",
    "check": "success",
    "checks": "https://patches.dpdk.org/api/patches/45170/checks/",
    "tags": {},
    "related": [],
    "headers": {
        "Return-Path": "<dev-bounces@dpdk.org>",
        "X-Original-To": "patchwork@dpdk.org",
        "Delivered-To": "patchwork@dpdk.org",
        "Received": [
            "from [92.243.14.124] (localhost [127.0.0.1])\n\tby dpdk.org (Postfix) with ESMTP id 0FFDE1B19;\n\tSat, 22 Sep 2018 15:25:57 +0200 (CEST)",
            "from mga11.intel.com (mga11.intel.com [192.55.52.93])\n\tby dpdk.org (Postfix) with ESMTP id F025D27D;\n\tSat, 22 Sep 2018 15:25:53 +0200 (CEST)",
            "from fmsmga001.fm.intel.com ([10.253.24.23])\n\tby fmsmga102.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384;\n\t22 Sep 2018 06:25:52 -0700",
            "from sivswdev01.ir.intel.com (HELO localhost.localdomain)\n\t([10.237.217.45])\n\tby fmsmga001.fm.intel.com with ESMTP; 22 Sep 2018 06:25:51 -0700"
        ],
        "X-Amp-Result": "SKIPPED(no attachment in message)",
        "X-Amp-File-Uploaded": "False",
        "X-ExtLoop1": "1",
        "X-IronPort-AV": "E=Sophos;i=\"5.54,289,1534834800\"; d=\"scan'208\";a=\"92352293\"",
        "From": "Fiona Trahe <fiona.trahe@intel.com>",
        "To": "dev@dpdk.org",
        "Cc": "akhil.goyal@nxp.com, stable@dpdk.org, Fiona Trahe <fiona.trahe@intel.com>",
        "Date": "Sat, 22 Sep 2018 14:25:37 +0100",
        "Message-Id": "<1537622738-29475-1-git-send-email-fiona.trahe@intel.com>",
        "X-Mailer": "git-send-email 1.7.0.7",
        "Subject": "[dpdk-dev] [PATCH 1/2] compress/qat: fix for zero checksum on\n\tdecompression",
        "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\t<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\t<mailto:dev-request@dpdk.org?subject=subscribe>",
        "Errors-To": "dev-bounces@dpdk.org",
        "Sender": "\"dev\" <dev-bounces@dpdk.org>"
    },
    "content": "Checksum was always 0 on QAT decompression due to\nincorrect use of union variable.\n\nFixes: 6a7ea14819e9 (\"compress/qat: add xform processing\")\nCc: stable@dpdk.org\n\nSigned-off-by: Fiona Trahe <fiona.trahe@intel.com>\n---\n drivers/compress/qat/qat_comp.c | 5 ++---\n 1 file changed, 2 insertions(+), 3 deletions(-)",
    "diff": "diff --git a/drivers/compress/qat/qat_comp.c b/drivers/compress/qat/qat_comp.c\nindex 38c8a5b..6f1f2dc 100644\n--- a/drivers/compress/qat/qat_comp.c\n+++ b/drivers/compress/qat/qat_comp.c\n@@ -345,17 +345,16 @@ qat_comp_private_xform_create(struct rte_compressdev *dev,\n \t\tif (xform->compress.deflate.huffman == RTE_COMP_HUFFMAN_FIXED ||\n \t\t  ((xform->compress.deflate.huffman == RTE_COMP_HUFFMAN_DEFAULT)\n \t\t\t\t   && qat->interm_buff_mz == NULL))\n-\n \t\t\tqat_xform->qat_comp_request_type =\n \t\t\t\t\tQAT_COMP_REQUEST_FIXED_COMP_STATELESS;\n \n+\t\tqat_xform->checksum_type = xform->compress.chksum;\n \n \t} else {\n \t\tqat_xform->qat_comp_request_type = QAT_COMP_REQUEST_DECOMPRESS;\n+\t\tqat_xform->checksum_type = xform->decompress.chksum;\n \t}\n \n-\tqat_xform->checksum_type = xform->compress.chksum;\n-\n \tif (qat_comp_create_templates(qat_xform, qat->interm_buff_mz, xform)) {\n \t\tQAT_LOG(ERR, \"QAT: Problem with setting compression\");\n \t\treturn -EINVAL;\n",
    "prefixes": [
        "1/2"
    ]
}