get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 45290,
    "url": "http://patches.dpdk.org/api/patches/45290/?format=api",
    "web_url": "http://patches.dpdk.org/project/dpdk/patch/1537859109-25659-3-git-send-email-amo@semihalf.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": "<1537859109-25659-3-git-send-email-amo@semihalf.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/1537859109-25659-3-git-send-email-amo@semihalf.com",
    "date": "2018-09-25T07:04:58",
    "name": "[v3,02/13] net/mvpp2: move common code",
    "commit_ref": null,
    "pull_url": null,
    "state": "accepted",
    "archived": true,
    "hash": "891c3fd8bfc4ee36a3da8926da3be06fb05162a5",
    "submitter": {
        "id": 1112,
        "url": "http://patches.dpdk.org/api/people/1112/?format=api",
        "name": "Andrzej Ostruszka",
        "email": "amo@semihalf.com"
    },
    "delegate": {
        "id": 319,
        "url": "http://patches.dpdk.org/api/users/319/?format=api",
        "username": "fyigit",
        "first_name": "Ferruh",
        "last_name": "Yigit",
        "email": "ferruh.yigit@amd.com"
    },
    "mbox": "http://patches.dpdk.org/project/dpdk/patch/1537859109-25659-3-git-send-email-amo@semihalf.com/mbox/",
    "series": [
        {
            "id": 1482,
            "url": "http://patches.dpdk.org/api/series/1482/?format=api",
            "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=1482",
            "date": "2018-09-25T07:04:56",
            "name": "net/mvpp2: add new features",
            "version": 3,
            "mbox": "http://patches.dpdk.org/series/1482/mbox/"
        }
    ],
    "comments": "http://patches.dpdk.org/api/patches/45290/comments/",
    "check": "success",
    "checks": "http://patches.dpdk.org/api/patches/45290/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 077DD4CBD;\n\tTue, 25 Sep 2018 09:05:22 +0200 (CEST)",
            "from mail-lf1-f65.google.com (mail-lf1-f65.google.com\n\t[209.85.167.65]) by dpdk.org (Postfix) with ESMTP id 2A2944C99\n\tfor <dev@dpdk.org>; Tue, 25 Sep 2018 09:05:14 +0200 (CEST)",
            "by mail-lf1-f65.google.com with SMTP id g24-v6so18967293lfb.11\n\tfor <dev@dpdk.org>; Tue, 25 Sep 2018 00:05:14 -0700 (PDT)",
            "from amok.semihalf.local (31-172-191-173.noc.fibertech.net.pl.\n\t[31.172.191.173]) by smtp.googlemail.com with ESMTPSA id\n\t24-v6sm238306ljb.76.2018.09.25.00.05.12\n\t(version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128);\n\tTue, 25 Sep 2018 00:05:12 -0700 (PDT)"
        ],
        "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n\td=semihalf-com.20150623.gappssmtp.com; s=20150623;\n\th=from:to:cc:subject:date:message-id:in-reply-to:references;\n\tbh=RzBx392L0hF8D4rAGqU6sZeg0TS6te3aaebQnZBNPEA=;\n\tb=CRcUnLu4S4jLS4llXfPZlW6XqF78JYGvsWZUlFRZpsUg4qh+cz+AUlks8J7tucQ7I8\n\tjXNfS34RJALgUT5vy0I04th6QVGPwUR+TEx1arnQJNS+Xvtzu291FT8u6KPr1U+WV6CC\n\tTBN3wTHncz6sz7tvvhLcYI/TL45FKO/xpmbqkI8mCu2149qFU2KP8sZf57YI/+FzeB/L\n\tsEHSB8jbdfH62ANXYULwC+mQoONyz3nFtkF9Zzgesh6HNMP2lsR6c2epwdtyVTR9q8S2\n\tHLvftYnT9IFsb0l/MGgRx7mAtzgDJ//P+pNj4D+rN/EpWNciNbs5tTMdlUJFDFdZuLk/\n\t72UQ==",
        "X-Google-DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n\td=1e100.net; s=20161025;\n\th=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to\n\t:references;\n\tbh=RzBx392L0hF8D4rAGqU6sZeg0TS6te3aaebQnZBNPEA=;\n\tb=meJ6wc3PTg8Du+oB2A6ACBEtkfsBeRLyKGHUI5nJ78k6T/3+YHiWT/KOboCxtojB+O\n\tb6DdaFkQztaBCfo58kcaRdexnEzxvouCgal1DS1TABw5p/xJKLHU8A1ZPf2BdsmWFzzw\n\tVRyX/nIPj19ovJkzUvkJZf7p54d36WMtsj2TfZe/c0U6jaPJvVZKZiVQtbYEW+yA7jV3\n\t4WpWGktq9ggQk1xyBadfxamQvNmlLf5efTQQ4FWEkED66yDhwkFSA2YcBW+R89nMzsQ0\n\t/z+QGakoERIoxLSZ9MnH25gvLJJJO6lNg05B2yPeQg9MT+HHMMFfCmXywES2ZGZx97fK\n\t4wWg==",
        "X-Gm-Message-State": "ABuFfogsmw+0dkC1HJrJQgiY4UeTJTAu92HMfekO6BS1Bw5wsybVeEcX\n\ttc1FrsKq4llO+edw+u/JhyrI2V27mHnmEg==",
        "X-Google-Smtp-Source": "ACcGV60r+EpYC5QG600ZWchzEJqoey6Xlo40ljjjxP0tscnrCuQHRYWVD4a3pOMffZFm1X0FHk37sw==",
        "X-Received": "by 2002:a19:5e5d:: with SMTP id\n\tz29-v6mr1443770lfi.110.1537859113513; \n\tTue, 25 Sep 2018 00:05:13 -0700 (PDT)",
        "From": "Andrzej Ostruszka <amo@semihalf.com>",
        "To": "dev@dpdk.org",
        "Cc": "mw@semihalf.com, nadavh@marvell.com, Tomasz Duszynski <tdu@semihalf.com>,\n\tNatalie Samsonov <nsamsono@marvell.com>",
        "Date": "Tue, 25 Sep 2018 09:04:58 +0200",
        "Message-Id": "<1537859109-25659-3-git-send-email-amo@semihalf.com>",
        "X-Mailer": "git-send-email 2.7.4",
        "In-Reply-To": "<1537859109-25659-1-git-send-email-amo@semihalf.com>",
        "References": "<1536068953-9352-1-git-send-email-tdu@semihalf.com>\n\t<1537859109-25659-1-git-send-email-amo@semihalf.com>",
        "Subject": "[dpdk-dev] [PATCH v3 02/13] net/mvpp2: move common code",
        "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": "From: Tomasz Duszynski <tdu@semihalf.com>\n\nCleanup sources by moving common code to the pmd\nheader file.\n\nSigned-off-by: Tomasz Duszynski <tdu@semihalf.com>\nSigned-off-by: Natalie Samsonov <nsamsono@marvell.com>\nReviewed-by: Liron Himi <lironh@marvell.com>\n---\n drivers/net/mvpp2/mrvl_ethdev.c |  9 ---------\n drivers/net/mvpp2/mrvl_ethdev.h | 11 +++++++++++\n drivers/net/mvpp2/mrvl_flow.c   |  5 -----\n drivers/net/mvpp2/mrvl_qos.c    |  9 ---------\n 4 files changed, 11 insertions(+), 23 deletions(-)",
    "diff": "diff --git a/drivers/net/mvpp2/mrvl_ethdev.c b/drivers/net/mvpp2/mrvl_ethdev.c\nindex dca3ccc..c8c8548 100644\n--- a/drivers/net/mvpp2/mrvl_ethdev.c\n+++ b/drivers/net/mvpp2/mrvl_ethdev.c\n@@ -10,15 +10,6 @@\n #include <rte_malloc.h>\n #include <rte_bus_vdev.h>\n \n-/* Unluckily, container_of is defined by both DPDK and MUSDK,\n- * we'll declare only one version.\n- *\n- * Note that it is not used in this PMD anyway.\n- */\n-#ifdef container_of\n-#undef container_of\n-#endif\n-\n #include <fcntl.h>\n #include <linux/ethtool.h>\n #include <linux/sockios.h>\ndiff --git a/drivers/net/mvpp2/mrvl_ethdev.h b/drivers/net/mvpp2/mrvl_ethdev.h\nindex 3726f78..2204be2 100644\n--- a/drivers/net/mvpp2/mrvl_ethdev.h\n+++ b/drivers/net/mvpp2/mrvl_ethdev.h\n@@ -10,12 +10,23 @@\n #include <rte_spinlock.h>\n #include <rte_flow_driver.h>\n \n+/*\n+ * container_of is defined by both DPDK and MUSDK,\n+ * we'll declare only one version.\n+ *\n+ * Note that it is not used in this PMD anyway.\n+ */\n+#ifdef container_of\n+#undef container_of\n+#endif\n+\n #include <env/mv_autogen_comp_flags.h>\n #include <drivers/mv_pp2.h>\n #include <drivers/mv_pp2_bpool.h>\n #include <drivers/mv_pp2_cls.h>\n #include <drivers/mv_pp2_hif.h>\n #include <drivers/mv_pp2_ppio.h>\n+#include \"env/mv_common.h\" /* for BIT() */\n \n /** Maximum number of rx queues per port */\n #define MRVL_PP2_RXQ_MAX 32\ndiff --git a/drivers/net/mvpp2/mrvl_flow.c b/drivers/net/mvpp2/mrvl_flow.c\nindex 13295e6..db750f4 100644\n--- a/drivers/net/mvpp2/mrvl_flow.c\n+++ b/drivers/net/mvpp2/mrvl_flow.c\n@@ -11,13 +11,8 @@\n \n #include <arpa/inet.h>\n \n-#ifdef container_of\n-#undef container_of\n-#endif\n-\n #include \"mrvl_ethdev.h\"\n #include \"mrvl_qos.h\"\n-#include \"env/mv_common.h\" /* for BIT() */\n \n /** Number of rules in the classifier table. */\n #define MRVL_CLS_MAX_NUM_RULES 20\ndiff --git a/drivers/net/mvpp2/mrvl_qos.c b/drivers/net/mvpp2/mrvl_qos.c\nindex 71856c1..eeb46f8 100644\n--- a/drivers/net/mvpp2/mrvl_qos.c\n+++ b/drivers/net/mvpp2/mrvl_qos.c\n@@ -15,15 +15,6 @@\n #include <rte_malloc.h>\n #include <rte_string_fns.h>\n \n-/* Unluckily, container_of is defined by both DPDK and MUSDK,\n- * we'll declare only one version.\n- *\n- * Note that it is not used in this PMD anyway.\n- */\n-#ifdef container_of\n-#undef container_of\n-#endif\n-\n #include \"mrvl_qos.h\"\n \n /* Parsing tokens. Defined conveniently, so that any correction is easy. */\n",
    "prefixes": [
        "v3",
        "02/13"
    ]
}