get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 44211,
    "url": "http://patches.dpdk.org/api/patches/44211/?format=api",
    "web_url": "http://patches.dpdk.org/project/dpdk/patch/1536045016-32008-3-git-send-email-tdu@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": "<1536045016-32008-3-git-send-email-tdu@semihalf.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/1536045016-32008-3-git-send-email-tdu@semihalf.com",
    "date": "2018-09-04T07:10:10",
    "name": "[2/8] net/mvpp2: move common code",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": true,
    "hash": "891c3fd8bfc4ee36a3da8926da3be06fb05162a5",
    "submitter": {
        "id": 846,
        "url": "http://patches.dpdk.org/api/people/846/?format=api",
        "name": "Tomasz Duszynski",
        "email": "tdu@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/1536045016-32008-3-git-send-email-tdu@semihalf.com/mbox/",
    "series": [
        {
            "id": 1165,
            "url": "http://patches.dpdk.org/api/series/1165/?format=api",
            "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=1165",
            "date": "2018-09-04T07:10:08",
            "name": "net/mvpp2: add new features",
            "version": 1,
            "mbox": "http://patches.dpdk.org/series/1165/mbox/"
        }
    ],
    "comments": "http://patches.dpdk.org/api/patches/44211/comments/",
    "check": "success",
    "checks": "http://patches.dpdk.org/api/patches/44211/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 012462C55;\n\tTue,  4 Sep 2018 09:10:36 +0200 (CEST)",
            "from mail-pl1-f196.google.com (mail-pl1-f196.google.com\n\t[209.85.214.196]) by dpdk.org (Postfix) with ESMTP id C0AE32C38\n\tfor <dev@dpdk.org>; Tue,  4 Sep 2018 09:10:35 +0200 (CEST)",
            "by mail-pl1-f196.google.com with SMTP id f6-v6so1197776plo.1\n\tfor <dev@dpdk.org>; Tue, 04 Sep 2018 00:10:35 -0700 (PDT)",
            "from sh.semihalf.local (31-172-191-173.noc.fibertech.net.pl.\n\t[31.172.191.173]) by smtp.gmail.com with ESMTPSA id\n\tl79-v6sm31229451pfb.111.2018.09.04.00.10.32\n\t(version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128);\n\tTue, 04 Sep 2018 00:10:33 -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=woBXmNVHqSgg2F1hFxpFNXtegsYGXF4hmvppsjeSKRU=;\n\tb=2BD9OzzPhRuXaJ9zhYp894BH2shoba5DQj56TJrT+ePQy7MGu18o4O+sQNTvH81aN0\n\th/P0pWrUCXY5ZeXFiQ1+vI3wHfxvUdml7k5o807z8y/ZY0MSwY+iLnTvybBUASTonr+l\n\tkEB3kpO9pp1JYqleZmkQiknl8Ciu6t7oCw1xpIzk2Egxix/rxdH45H6IIgI+fbAnQ8kp\n\tlgXRC2M+6Fm23wWRt/eSOKRAfL8jI3McOZxmXrfuOp/wCLQEDL1dTaNgDZr2vlvC9RSy\n\tOEWooBaFZxmFZa0pkRni3xZCFiuUl/fsDbDDXxV3D7y4H1o5rDL5yCGJF5ToNlJ4s+Yv\n\tFeCw==",
        "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=woBXmNVHqSgg2F1hFxpFNXtegsYGXF4hmvppsjeSKRU=;\n\tb=LuP9CvEa23nVAWG+DehBCF9pn3UhUlemFHcFH1t1fg8qQMtmHMzyC6HUW/PA43GMFI\n\t4ThDPVI8aRk6FihS51YS541thcuvyNMZxLQSocNrR2te6fJXwUzz5t/8HcnzvxfKEvRu\n\tFgmgL0ygQFcn/f4cnhNZOEwgyjrojdxkOAsuFuAhkR7ZxszHiUV/WllDiw1+9mNVVfQb\n\tPYepDysPtvIdJUezZ5Uzy4O9LV+wXeaTokkB910mt+LrM2JtAYqYlNNVUOu8HsxxZZGE\n\t7/RDZr4ViYrJvcFia4SOXznmvsXPlswK2HJok5zmpjejXnAE1v4EJVAjZxpoGGT/sJ4t\n\tJ2Gg==",
        "X-Gm-Message-State": "APzg51DDnF214p9hlGh84bDmtkcpiLY93kEwWlcf9oh+g6BVWwdH0uzp\n\tEPFXa/lvbLs053oJzHE3OYxEVvN/CTyJ/g==",
        "X-Google-Smtp-Source": "ANB0VdbJhn7/qGDWeAVbCnR4JaZKz9TZWd9fBONxfkET0fhZe+VzukROU9uPOn1i/pIxWs4IADj80w==",
        "X-Received": "by 2002:a17:902:6a83:: with SMTP id\n\tn3-v6mr31784606plk.246.1536045034637; \n\tTue, 04 Sep 2018 00:10:34 -0700 (PDT)",
        "From": "Tomasz Duszynski <tdu@semihalf.com>",
        "To": "dev@dpdk.org",
        "Cc": "nsamsono@marvell.com, mw@semihalf.com,\n\tTomasz Duszynski <tdu@semihalf.com>",
        "Date": "Tue,  4 Sep 2018 09:10:10 +0200",
        "Message-Id": "<1536045016-32008-3-git-send-email-tdu@semihalf.com>",
        "X-Mailer": "git-send-email 2.7.4",
        "In-Reply-To": "<1536045016-32008-1-git-send-email-tdu@semihalf.com>",
        "References": "<1536045016-32008-1-git-send-email-tdu@semihalf.com>",
        "Subject": "[dpdk-dev] [PATCH 2/8] 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": "Cleanup 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 f022cad..adb07d0 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": [
        "2/8"
    ]
}