get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 808071,
    "url": "http://patchwork.ozlabs.org/api/patches/808071/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/linuxppc-dev/patch/1504163489.4681.4.camel@hbabu-laptop/",
    "project": {
        "id": 2,
        "url": "http://patchwork.ozlabs.org/api/projects/2/?format=api",
        "name": "Linux PPC development",
        "link_name": "linuxppc-dev",
        "list_id": "linuxppc-dev.lists.ozlabs.org",
        "list_email": "linuxppc-dev@lists.ozlabs.org",
        "web_url": "https://github.com/linuxppc/wiki/wiki",
        "scm_url": "https://git.kernel.org/pub/scm/linux/kernel/git/powerpc/linux.git",
        "webscm_url": "https://git.kernel.org/pub/scm/linux/kernel/git/powerpc/linux.git/",
        "list_archive_url": "https://lore.kernel.org/linuxppc-dev/",
        "list_archive_url_format": "https://lore.kernel.org/linuxppc-dev/{}/",
        "commit_url_format": "https://git.kernel.org/pub/scm/linux/kernel/git/powerpc/linux.git/commit/?id={}"
    },
    "msgid": "<1504163489.4681.4.camel@hbabu-laptop>",
    "list_archive_url": "https://lore.kernel.org/linuxppc-dev/1504163489.4681.4.camel@hbabu-laptop/",
    "date": "2017-08-31T07:11:29",
    "name": "[V4,1/7] crypto/nx: Rename nx842_powernv_function as icswx function",
    "commit_ref": "c97f8169fb227cae5adeac56cafa980f25978031",
    "pull_url": null,
    "state": "accepted",
    "archived": false,
    "hash": "24cd091ab26e2c70375cb30ad00e121315f36714",
    "submitter": {
        "id": 12875,
        "url": "http://patchwork.ozlabs.org/api/people/12875/?format=api",
        "name": "Haren Myneni",
        "email": "haren@linux.vnet.ibm.com"
    },
    "delegate": null,
    "mbox": "http://patchwork.ozlabs.org/project/linuxppc-dev/patch/1504163489.4681.4.camel@hbabu-laptop/mbox/",
    "series": [
        {
            "id": 757,
            "url": "http://patchwork.ozlabs.org/api/series/757/?format=api",
            "web_url": "http://patchwork.ozlabs.org/project/linuxppc-dev/list/?series=757",
            "date": "2017-08-31T07:10:13",
            "name": "Enable NX 842 compression engine on Power9",
            "version": 4,
            "mbox": "http://patchwork.ozlabs.org/series/757/mbox/"
        }
    ],
    "comments": "http://patchwork.ozlabs.org/api/patches/808071/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/808071/checks/",
    "tags": {},
    "related": [],
    "headers": {
        "Return-Path": "<linuxppc-dev-bounces+patchwork-incoming=ozlabs.org@lists.ozlabs.org>",
        "X-Original-To": [
            "patchwork-incoming@ozlabs.org",
            "linuxppc-dev@lists.ozlabs.org"
        ],
        "Delivered-To": [
            "patchwork-incoming@ozlabs.org",
            "linuxppc-dev@lists.ozlabs.org"
        ],
        "Received": [
            "from lists.ozlabs.org (lists.ozlabs.org [103.22.144.68])\n\t(using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits))\n\t(No client certificate requested)\n\tby ozlabs.org (Postfix) with ESMTPS id 3xjYW54l7mz9s7c\n\tfor <patchwork-incoming@ozlabs.org>;\n\tThu, 31 Aug 2017 17:13:21 +1000 (AEST)",
            "from lists.ozlabs.org (lists.ozlabs.org [IPv6:2401:3900:2:1::3])\n\tby lists.ozlabs.org (Postfix) with ESMTP id 3xjYW53vrfzDql8\n\tfor <patchwork-incoming@ozlabs.org>;\n\tThu, 31 Aug 2017 17:13:21 +1000 (AEST)",
            "from mx0a-001b2d01.pphosted.com (mx0a-001b2d01.pphosted.com\n\t[148.163.156.1])\n\t(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256\n\tbits)) (No client certificate requested)\n\tby lists.ozlabs.org (Postfix) with ESMTPS id 3xjYTH6YCwzDqZx\n\tfor <linuxppc-dev@lists.ozlabs.org>;\n\tThu, 31 Aug 2017 17:11:47 +1000 (AEST)",
            "from pps.filterd (m0098409.ppops.net [127.0.0.1])\n\tby mx0a-001b2d01.pphosted.com (8.16.0.21/8.16.0.21) with SMTP id\n\tv7V79fvc008444\n\tfor <linuxppc-dev@lists.ozlabs.org>; Thu, 31 Aug 2017 03:11:45 -0400",
            "from e14.ny.us.ibm.com (e14.ny.us.ibm.com [129.33.205.204])\n\tby mx0a-001b2d01.pphosted.com with ESMTP id 2cp9ds0uaj-1\n\t(version=TLSv1.2 cipher=AES256-SHA bits=256 verify=NOT)\n\tfor <linuxppc-dev@lists.ozlabs.org>; Thu, 31 Aug 2017 03:11:45 -0400",
            "from localhost\n\tby e14.ny.us.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use\n\tOnly! Violators will be prosecuted\n\tfor <linuxppc-dev@lists.ozlabs.org> from <haren@linux.vnet.ibm.com>; \n\tThu, 31 Aug 2017 03:11:44 -0400",
            "from b01cxnp22036.gho.pok.ibm.com (9.57.198.26)\n\tby e14.ny.us.ibm.com (146.89.104.201) with IBM ESMTP SMTP Gateway:\n\tAuthorized Use Only! Violators will be prosecuted; \n\tThu, 31 Aug 2017 03:11:41 -0400",
            "from b01ledav006.gho.pok.ibm.com (b01ledav006.gho.pok.ibm.com\n\t[9.57.199.111])\n\tby b01cxnp22036.gho.pok.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP\n\tid v7V7Be4A31654006; Thu, 31 Aug 2017 07:11:40 GMT",
            "from b01ledav006.gho.pok.ibm.com (unknown [127.0.0.1])\n\tby IMSVA (Postfix) with ESMTP id A5BD1AC051;\n\tThu, 31 Aug 2017 03:12:05 -0400 (EDT)",
            "from [9.70.82.25] (unknown [9.70.82.25])\n\tby b01ledav006.gho.pok.ibm.com (Postfix) with ESMTP id A8F24AC03F;\n\tThu, 31 Aug 2017 03:12:04 -0400 (EDT)"
        ],
        "Subject": "[PATCH V4 1/7] crypto/nx: Rename nx842_powernv_function as icswx\n\tfunction",
        "From": "Haren Myneni <haren@linux.vnet.ibm.com>",
        "To": "mpe@ellerman.id.au, herbert@gondor.apana.org.au",
        "Content-Type": "text/plain; charset=\"UTF-8\"",
        "Date": "Thu, 31 Aug 2017 00:11:29 -0700",
        "Mime-Version": "1.0",
        "X-Mailer": "Evolution 2.28.3 ",
        "Content-Transfer-Encoding": "7bit",
        "X-TM-AS-GCONF": "00",
        "x-cbid": "17083107-0052-0000-0000-000002589C98",
        "X-IBM-SpamModules-Scores": "",
        "X-IBM-SpamModules-Versions": "BY=3.00007640; HX=3.00000241; KW=3.00000007;\n\tPH=3.00000004; SC=3.00000226; SDB=6.00910093; UDB=6.00456508;\n\tIPR=6.00690373; \n\tBA=6.00005562; NDR=6.00000001; ZLA=6.00000005; ZF=6.00000009;\n\tZB=6.00000000; \n\tZP=6.00000000; ZH=6.00000000; ZU=6.00000002; MB=3.00016938;\n\tXFM=3.00000015; UTC=2017-08-31 07:11:43",
        "X-IBM-AV-DETECTION": "SAVI=unused REMOTE=unused XFE=unused",
        "x-cbparentid": "17083107-0053-0000-0000-000051D83656",
        "Message-Id": "<1504163489.4681.4.camel@hbabu-laptop>",
        "X-Proofpoint-Virus-Version": "vendor=fsecure engine=2.50.10432:, ,\n\tdefinitions=2017-08-31_02:, , signatures=0",
        "X-Proofpoint-Spam-Details": "rule=outbound_notspam policy=outbound score=0\n\tspamscore=0 suspectscore=0\n\tmalwarescore=0 phishscore=0 adultscore=0 bulkscore=0 classifier=spam\n\tadjust=0 reason=mlx scancount=1 engine=8.0.1-1707230000\n\tdefinitions=main-1708310109",
        "X-BeenThere": "linuxppc-dev@lists.ozlabs.org",
        "X-Mailman-Version": "2.1.23",
        "Precedence": "list",
        "List-Id": "Linux on PowerPC Developers Mail List\n\t<linuxppc-dev.lists.ozlabs.org>",
        "List-Unsubscribe": "<https://lists.ozlabs.org/options/linuxppc-dev>,\n\t<mailto:linuxppc-dev-request@lists.ozlabs.org?subject=unsubscribe>",
        "List-Archive": "<http://lists.ozlabs.org/pipermail/linuxppc-dev/>",
        "List-Post": "<mailto:linuxppc-dev@lists.ozlabs.org>",
        "List-Help": "<mailto:linuxppc-dev-request@lists.ozlabs.org?subject=help>",
        "List-Subscribe": "<https://lists.ozlabs.org/listinfo/linuxppc-dev>,\n\t<mailto:linuxppc-dev-request@lists.ozlabs.org?subject=subscribe>",
        "Cc": "mikey@neuling.org, linuxram@us.ibm.com, npiggin@gmail.com,\n\tsuka@us.ibm.com, \n\tlinux-crypto@vger.kernel.org, linuxppc-dev@lists.ozlabs.org,\n\tddstreet@ieee.org",
        "Errors-To": "linuxppc-dev-bounces+patchwork-incoming=ozlabs.org@lists.ozlabs.org",
        "Sender": "\"Linuxppc-dev\"\n\t<linuxppc-dev-bounces+patchwork-incoming=ozlabs.org@lists.ozlabs.org>"
    },
    "content": "Rename nx842_powernv_function to nx842_powernv_exec.\nnx842_powernv_exec points to nx842_exec_icswx and\nwill be point to VAS exec function which will be added later\nfor P9 NX support.\n\nSigned-off-by: Haren Myneni <haren@us.ibm.com>\n---\n drivers/crypto/nx/nx-842-powernv.c | 20 +++++++++++++-------\n 1 file changed, 13 insertions(+), 7 deletions(-)",
    "diff": "diff --git a/drivers/crypto/nx/nx-842-powernv.c b/drivers/crypto/nx/nx-842-powernv.c\nindex 3abb045cdba7..161987698bbc 100644\n--- a/drivers/crypto/nx/nx-842-powernv.c\n+++ b/drivers/crypto/nx/nx-842-powernv.c\n@@ -54,7 +54,11 @@ struct nx842_coproc {\n \n /* no cpu hotplug on powernv, so this list never changes after init */\n static LIST_HEAD(nx842_coprocs);\n-static unsigned int nx842_ct;\n+static unsigned int nx842_ct;\t/* used in icswx function */\n+\n+static int (*nx842_powernv_exec)(const unsigned char *in,\n+\t\t\t\tunsigned int inlen, unsigned char *out,\n+\t\t\t\tunsigned int *outlenp, void *workmem, int fc);\n \n /**\n  * setup_indirect_dde - Setup an indirect DDE\n@@ -355,7 +359,7 @@ static int wait_for_csb(struct nx842_workmem *wmem,\n }\n \n /**\n- * nx842_powernv_function - compress/decompress data using the 842 algorithm\n+ * nx842_exec_icswx - compress/decompress data using the 842 algorithm\n  *\n  * (De)compression provided by the NX842 coprocessor on IBM PowerNV systems.\n  * This compresses or decompresses the provided input buffer into the provided\n@@ -385,7 +389,7 @@ static int wait_for_csb(struct nx842_workmem *wmem,\n  *   -ETIMEDOUT\thardware did not complete operation in reasonable time\n  *   -EINTR\toperation was aborted\n  */\n-static int nx842_powernv_function(const unsigned char *in, unsigned int inlen,\n+static int nx842_exec_icswx(const unsigned char *in, unsigned int inlen,\n \t\t\t\t  unsigned char *out, unsigned int *outlenp,\n \t\t\t\t  void *workmem, int fc)\n {\n@@ -489,13 +493,13 @@ static int nx842_powernv_function(const unsigned char *in, unsigned int inlen,\n  * @workmem: working memory buffer pointer, size determined by\n  *           nx842_powernv_driver.workmem_size\n  *\n- * Returns: see @nx842_powernv_function()\n+ * Returns: see @nx842_powernv_exec()\n  */\n static int nx842_powernv_compress(const unsigned char *in, unsigned int inlen,\n \t\t\t\t  unsigned char *out, unsigned int *outlenp,\n \t\t\t\t  void *wmem)\n {\n-\treturn nx842_powernv_function(in, inlen, out, outlenp,\n+\treturn nx842_powernv_exec(in, inlen, out, outlenp,\n \t\t\t\t      wmem, CCW_FC_842_COMP_CRC);\n }\n \n@@ -517,13 +521,13 @@ static int nx842_powernv_compress(const unsigned char *in, unsigned int inlen,\n  * @workmem: working memory buffer pointer, size determined by\n  *           nx842_powernv_driver.workmem_size\n  *\n- * Returns: see @nx842_powernv_function()\n+ * Returns: see @nx842_powernv_exec()\n  */\n static int nx842_powernv_decompress(const unsigned char *in, unsigned int inlen,\n \t\t\t\t    unsigned char *out, unsigned int *outlenp,\n \t\t\t\t    void *wmem)\n {\n-\treturn nx842_powernv_function(in, inlen, out, outlenp,\n+\treturn nx842_powernv_exec(in, inlen, out, outlenp,\n \t\t\t\t      wmem, CCW_FC_842_DECOMP_CRC);\n }\n \n@@ -625,6 +629,8 @@ static __init int nx842_powernv_init(void)\n \tif (!nx842_ct)\n \t\treturn -ENODEV;\n \n+\tnx842_powernv_exec = nx842_exec_icswx;\n+\n \tret = crypto_register_alg(&nx842_powernv_alg);\n \tif (ret) {\n \t\tstruct nx842_coproc *coproc, *n;\n",
    "prefixes": [
        "V4",
        "1/7"
    ]
}