get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 46796,
    "url": "https://patches.dpdk.org/api/patches/46796/?format=api",
    "web_url": "https://patches.dpdk.org/project/dpdk/patch/20181014204747.26621-5-thomas@monjalon.net/",
    "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": "<20181014204747.26621-5-thomas@monjalon.net>",
    "list_archive_url": "https://inbox.dpdk.org/dev/20181014204747.26621-5-thomas@monjalon.net",
    "date": "2018-10-14T20:47:44",
    "name": "[v5,4/7] compressdev: remove driver name from logs",
    "commit_ref": null,
    "pull_url": null,
    "state": "accepted",
    "archived": true,
    "hash": "0f387ce9b26a1df6d48c595c5b9f545ad15ed4d6",
    "submitter": {
        "id": 685,
        "url": "https://patches.dpdk.org/api/people/685/?format=api",
        "name": "Thomas Monjalon",
        "email": "thomas@monjalon.net"
    },
    "delegate": {
        "id": 1,
        "url": "https://patches.dpdk.org/api/users/1/?format=api",
        "username": "tmonjalo",
        "first_name": "Thomas",
        "last_name": "Monjalon",
        "email": "thomas@monjalon.net"
    },
    "mbox": "https://patches.dpdk.org/project/dpdk/patch/20181014204747.26621-5-thomas@monjalon.net/mbox/",
    "series": [
        {
            "id": 1887,
            "url": "https://patches.dpdk.org/api/series/1887/?format=api",
            "web_url": "https://patches.dpdk.org/project/dpdk/list/?series=1887",
            "date": "2018-10-14T20:47:41",
            "name": "[v5,1/7] net/mlx5: remove useless driver name comparison",
            "version": 5,
            "mbox": "https://patches.dpdk.org/series/1887/mbox/"
        }
    ],
    "comments": "https://patches.dpdk.org/api/patches/46796/comments/",
    "check": "success",
    "checks": "https://patches.dpdk.org/api/patches/46796/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 C530D4C9D;\n\tSun, 14 Oct 2018 22:48:01 +0200 (CEST)",
            "from out3-smtp.messagingengine.com (out3-smtp.messagingengine.com\n\t[66.111.4.27]) by dpdk.org (Postfix) with ESMTP id 87A991E25\n\tfor <dev@dpdk.org>; Sun, 14 Oct 2018 22:47:54 +0200 (CEST)",
            "from compute1.internal (compute1.nyi.internal [10.202.2.41])\n\tby mailout.nyi.internal (Postfix) with ESMTP id 3574521ABB;\n\tSun, 14 Oct 2018 16:47:54 -0400 (EDT)",
            "from mailfrontend1 ([10.202.2.162])\n\tby compute1.internal (MEProxy); Sun, 14 Oct 2018 16:47:54 -0400",
            "from xps.monjalon.net (184.203.134.77.rev.sfr.net [77.134.203.184])\n\tby mail.messagingengine.com (Postfix) with ESMTPA id 32CAFE47E1;\n\tSun, 14 Oct 2018 16:47:53 -0400 (EDT)"
        ],
        "DKIM-Signature": [
            "v=1; a=rsa-sha256; c=relaxed/relaxed; d=monjalon.net; h=\n\tfrom:to:cc:subject:date:message-id:in-reply-to:references\n\t:mime-version:content-transfer-encoding; s=mesmtp; bh=O43yuK8BUF\n\t5Fc2q4ik2ie0yzNRcx2igasn1sj/eSRmg=; b=HEoqIkL3dGqJlde/Di0cVQLjSk\n\twnVxCLKM2E+Bv9CJhuCYj8llg+sHjMQY9pwrAS7pPZHvfUmts1g7wXDEeMpqPt3E\n\t6vcW9KcCrURrASJIgyCFiuDfWH6b/F8vo3GVvUjeOHjSvl6coEyZgqKf3Z2wGRFQ\n\tdUIdxcEZt+L4Nys9s=",
            "v=1; a=rsa-sha256; c=relaxed/relaxed; d=\n\tmessagingengine.com; h=cc:content-transfer-encoding:date:from\n\t:in-reply-to:message-id:mime-version:references:subject:to\n\t:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=\n\tfm1; bh=O43yuK8BUF5Fc2q4ik2ie0yzNRcx2igasn1sj/eSRmg=; b=g/EF3/xM\n\tamUkBLRUNSeNMP36+ul7qkmR1YczqcIAPDWIq6KelehkcVp27E9DTKv1fxj4ys1J\n\tZWA6y2Lpq9zLuBQ5GDbFtQAGhKaBKgpPK0MubGcOXxRFRtaEY5oGNJPYdIO7WzYP\n\t8gujbmvYj6+PhykfQaVDZNIWd8wnDtfOFzXBC+NGFkxQcKkKzI73GDmcdq6AHwy+\n\tS5xxsgq3+E3bkUTBLgRkDMgnHRq5iqZ1XoYbVvnOKM/ZfGZDp88gEI7yEIe7Ib1c\n\t/dLSqEDgaIYMzpUWETYPOYeGEYSCR73V1K8oQHtL+BhfeOp3bQCWQng9xlDUtvyd\n\tau6cYPvt48RW6w=="
        ],
        "X-ME-Sender": "<xms:eqvDW5gx7mpNFmkFJSblCJ60i15V0lXiC_NbFkTn8i5O8MdM3sJ4MA>",
        "X-ME-Proxy": "<xmx:eqvDW_Grh0Ll65RcLS8jMzMj_gOyb2H0fEKLhcbcoHxdlIfbdZOBSQ>\n\t<xmx:eqvDW7U6co6K_aIu7xoTwe0-5nUB_58bYfH8ltM1itA60SuxBqRZdQ>\n\t<xmx:eqvDWxR9mQUq4SzRLH7FE_7Tx0MucGgDe6gI9EqZwiOmzWMGLYfZkw>\n\t<xmx:eqvDW_cguV3FwJaNnIlWPxqliSQHFZgmrogHVTIAysBCWIf5kL0UhA>\n\t<xmx:eqvDW-vVlQwFk-7ZqkCgrIlMuvlYTniSluLHv-eNnkqCrw0vBn6u3w>\n\t<xmx:eqvDW1yylwqS2g7T5G_35xCLfYnVAfU0lVBYh1wussn_bWxLm4rriw>",
        "From": "Thomas Monjalon <thomas@monjalon.net>",
        "To": "dev@dpdk.org",
        "Cc": "gaetan.rivet@6wind.com, ophirmu@mellanox.com, qi.z.zhang@intel.com,\n\tferruh.yigit@intel.com",
        "Date": "Sun, 14 Oct 2018 22:47:44 +0200",
        "Message-Id": "<20181014204747.26621-5-thomas@monjalon.net>",
        "X-Mailer": "git-send-email 2.19.0",
        "In-Reply-To": "<20181014204747.26621-1-thomas@monjalon.net>",
        "References": "<20180907230958.21402-1-thomas@monjalon.net>\n\t<20181014204747.26621-1-thomas@monjalon.net>",
        "MIME-Version": "1.0",
        "Content-Transfer-Encoding": "8bit",
        "Subject": "[dpdk-dev] [PATCH v5 4/7] compressdev: remove driver name from logs",
        "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": "The logs printed by COMPRESSDEV_LOG were prefixed with the driver name.\n\nIn order to avoid assigning the driver before the end of the probing,\nthe driver name is removed from the compressdev library logs.\n\nSigned-off-by: Thomas Monjalon <thomas@monjalon.net>\n---\n lib/librte_compressdev/rte_compressdev_pmd.c | 23 ++++++++------------\n 1 file changed, 9 insertions(+), 14 deletions(-)",
    "diff": "diff --git a/lib/librte_compressdev/rte_compressdev_pmd.c b/lib/librte_compressdev/rte_compressdev_pmd.c\nindex 7de4f339e..95beb26ab 100644\n--- a/lib/librte_compressdev/rte_compressdev_pmd.c\n+++ b/lib/librte_compressdev/rte_compressdev_pmd.c\n@@ -92,24 +92,20 @@ rte_compressdev_pmd_create(const char *name,\n \tstruct rte_compressdev *compressdev;\n \n \tif (params->name[0] != '\\0') {\n-\t\tCOMPRESSDEV_LOG(INFO, \"[%s] User specified device name = %s\\n\",\n-\t\t\t\tdevice->driver->name, params->name);\n+\t\tCOMPRESSDEV_LOG(INFO, \"User specified device name = %s\\n\",\n+\t\t\t\tparams->name);\n \t\tname = params->name;\n \t}\n \n-\tCOMPRESSDEV_LOG(INFO, \"[%s] - Creating compressdev %s\\n\",\n-\t\t\tdevice->driver->name, name);\n+\tCOMPRESSDEV_LOG(INFO, \"Creating compressdev %s\\n\", name);\n \n-\tCOMPRESSDEV_LOG(INFO,\n-\t\"[%s] - Init parameters - name: %s, socket id: %d\",\n-\t\t\tdevice->driver->name, name,\n-\t\t\tparams->socket_id);\n+\tCOMPRESSDEV_LOG(INFO, \"Init parameters - name: %s, socket id: %d\",\n+\t\t\tname, params->socket_id);\n \n \t/* allocate device structure */\n \tcompressdev = rte_compressdev_pmd_allocate(name, params->socket_id);\n \tif (compressdev == NULL) {\n-\t\tCOMPRESSDEV_LOG(ERR, \"[%s] Failed to allocate comp device %s\",\n-\t\t\t\tdevice->driver->name, name);\n+\t\tCOMPRESSDEV_LOG(ERR, \"Failed to allocate comp device %s\", name);\n \t\treturn NULL;\n \t}\n \n@@ -123,8 +119,8 @@ rte_compressdev_pmd_create(const char *name,\n \n \t\tif (compressdev->data->dev_private == NULL) {\n \t\t\tCOMPRESSDEV_LOG(ERR,\n-\t\t\"[%s] Cannot allocate memory for compressdev %s private data\",\n-\t\t\t\t\tdevice->driver->name, name);\n+\t\t\t\t\t\"Cannot allocate memory for compressdev\"\n+\t\t\t\t\t\" %s private data\", name);\n \n \t\t\trte_compressdev_pmd_release_device(compressdev);\n \t\t\treturn NULL;\n@@ -141,8 +137,7 @@ rte_compressdev_pmd_destroy(struct rte_compressdev *compressdev)\n {\n \tint retval;\n \n-\tCOMPRESSDEV_LOG(INFO, \"[%s] Closing comp device %s\",\n-\t\t\tcompressdev->device->driver->name,\n+\tCOMPRESSDEV_LOG(INFO, \"Closing comp device %s\",\n \t\t\tcompressdev->device->name);\n \n \t/* free comp device */\n",
    "prefixes": [
        "v5",
        "4/7"
    ]
}