get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 43607,
    "url": "http://patches.dpdk.org/api/patches/43607/",
    "web_url": "http://patches.dpdk.org/project/dpdk/patch/20180806182244.9842-2-stephen@networkplumber.org/",
    "project": {
        "id": 1,
        "url": "http://patches.dpdk.org/api/projects/1/",
        "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": "<20180806182244.9842-2-stephen@networkplumber.org>",
    "list_archive_url": "https://inbox.dpdk.org/dev/20180806182244.9842-2-stephen@networkplumber.org",
    "date": "2018-08-06T18:22:43",
    "name": "[1/2] netvsc: support packet type",
    "commit_ref": null,
    "pull_url": null,
    "state": "accepted",
    "archived": true,
    "hash": "c85b8aec55311fbeacd86d42df7680e22a2a0051",
    "submitter": {
        "id": 27,
        "url": "http://patches.dpdk.org/api/people/27/",
        "name": "Stephen Hemminger",
        "email": "stephen@networkplumber.org"
    },
    "delegate": null,
    "mbox": "http://patches.dpdk.org/project/dpdk/patch/20180806182244.9842-2-stephen@networkplumber.org/mbox/",
    "series": [
        {
            "id": 920,
            "url": "http://patches.dpdk.org/api/series/920/",
            "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=920",
            "date": "2018-08-06T18:22:42",
            "name": "netvsc: small patches",
            "version": 1,
            "mbox": "http://patches.dpdk.org/series/920/mbox/"
        }
    ],
    "comments": "http://patches.dpdk.org/api/patches/43607/comments/",
    "check": "warning",
    "checks": "http://patches.dpdk.org/api/patches/43607/checks/",
    "tags": {},
    "related": [],
    "headers": {
        "X-BeenThere": "dev@dpdk.org",
        "Return-Path": "<dev-bounces@dpdk.org>",
        "Sender": "\"dev\" <dev-bounces@dpdk.org>",
        "From": "Stephen Hemminger <stephen@networkplumber.org>",
        "To": "dev@dpdk.org",
        "Delivered-To": "patchwork@dpdk.org",
        "List-Archive": "<http://mails.dpdk.org/archives/dev/>",
        "X-Google-Smtp-Source": "AAOMgpdRq3R4DaL9enyZZa4q4y0sj6eztjoABlRIW6RlYJwXHczFmvkJLu74X3UgEDLWT8S0TbJ7fg==",
        "References": "<20180806182244.9842-1-stephen@networkplumber.org>",
        "In-Reply-To": "<20180806182244.9842-1-stephen@networkplumber.org>",
        "List-Subscribe": "<https://mails.dpdk.org/listinfo/dev>,\n\t<mailto:dev-request@dpdk.org?subject=subscribe>",
        "List-Id": "DPDK patches and discussions <dev.dpdk.org>",
        "X-Mailer": "git-send-email 2.18.0",
        "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n\td=networkplumber-org.20150623.gappssmtp.com; s=20150623;\n\th=from:to:cc:subject:date:message-id:in-reply-to:references;\n\tbh=l3Dspj3mt3A5cLBIY73IKvQYbRkoTrzhvFVROxHnA6E=;\n\tb=zTVdtOP0S2CtAmQW/71UI8sBukZrYDpZbnvfR4hraax/OKyiK/QLvbZzdft9lNehJI\n\ttyb5sj+5BrqPsgetnWf3wwkY5WT+NppMuDED/Hu8xBco2Ce5awi080Ji8KK6ovFY6/jS\n\tnezj3p8cMawYbkW+MVw09HpQKitihcpVgkuHX+fGl5ZnpO0dJEDCrABmJ+VYOUPPV0Mn\n\tdEktiauYHDS9N1m6rQpPxg/ZIeTg04K0mRRhK7WOXlpSd6LsTx8SFpIpGyeT2TK2Vins\n\tgQ5CnBuJPRAu5kskWEv1wZ53XlEcpasVBCLMuBe5POHROErMRFwtgbF6m9I/Ebiv+JJO\n\taTxQ==",
        "List-Unsubscribe": "<https://mails.dpdk.org/options/dev>,\n\t<mailto:dev-request@dpdk.org?subject=unsubscribe>",
        "Received": [
            "from [92.243.14.124] (localhost [127.0.0.1])\n\tby dpdk.org (Postfix) with ESMTP id 67BBF1B426;\n\tMon,  6 Aug 2018 20:22:56 +0200 (CEST)",
            "from mail-pf1-f194.google.com (mail-pf1-f194.google.com\n\t[209.85.210.194]) by dpdk.org (Postfix) with ESMTP id 75F6E1B398\n\tfor <dev@dpdk.org>; Mon,  6 Aug 2018 20:22:54 +0200 (CEST)",
            "by mail-pf1-f194.google.com with SMTP id k21-v6so7241481pff.11\n\tfor <dev@dpdk.org>; Mon, 06 Aug 2018 11:22:54 -0700 (PDT)",
            "from xeon-e3.lan (204-195-22-127.wavecable.com. [204.195.22.127])\n\tby smtp.gmail.com with ESMTPSA id\n\tb20-v6sm26683086pfc.178.2018.08.06.11.22.51\n\t(version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);\n\tMon, 06 Aug 2018 11:22:51 -0700 (PDT)"
        ],
        "X-Original-To": "patchwork@dpdk.org",
        "X-Received": "by 2002:a63:8b44:: with SMTP id\n\tj65-v6mr15638717pge.248.1533579773318; \n\tMon, 06 Aug 2018 11:22:53 -0700 (PDT)",
        "List-Post": "<mailto:dev@dpdk.org>",
        "X-Gm-Message-State": "AOUpUlGOFeKzMofKWpx4igaN/qHohYXwncuLWEgarNNMtrNXeiK6w+mR\n\t3c9PPGS9IjgcJ3qZntdxHPL+nXbY56s=",
        "X-Mailman-Version": "2.1.15",
        "List-Help": "<mailto:dev-request@dpdk.org?subject=help>",
        "Errors-To": "dev-bounces@dpdk.org",
        "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=l3Dspj3mt3A5cLBIY73IKvQYbRkoTrzhvFVROxHnA6E=;\n\tb=EQJGDzCLMkxDN+wSrGHeM67/O303qF1ljf3UmmOobKHrxZDB+KU9NQe0AfXvFAnWnG\n\tImPE6J+yr19LokI9l/R1UQj2rb+vbmwXzYVHUmmNp7/wij4MwrpZ6IHg17XinbvpPsap\n\tzVV0KjMAliZ2O1T5EiNIhGw3nh057w+kWPTCgkYbXydd2i3PBW2La9nPQNUqYT4SwBdF\n\t+eIcQm0OzOJ9nTg3WuIY8hTPISiZQjVJcKIMju1h+LCKALEhYlu4tQvs7Wx0rCNgXglm\n\t8w2SjTLDOgVU7+Ps72Xl4Dr1t2iHb3Sg7axPAAZjdL6BlcjfS41TUoUyZygDOgtSfJkn\n\tkyBg==",
        "Subject": "[dpdk-dev] [PATCH 1/2] netvsc: support packet type",
        "Date": "Mon,  6 Aug 2018 11:22:43 -0700",
        "Message-Id": "<20180806182244.9842-2-stephen@networkplumber.org>",
        "Cc": "Stephen Hemminger <stephen@networkplumber.org>,\n\tStephen Hemminger <sthemmin@microsoft.com>",
        "Precedence": "list"
    },
    "content": "The Netvsc PMD was not filling in the packet type information.\n\nFixes: 4e9c73e96e83 (\"net/netvsc: add Hyper-V network device\")\nSigned-off-by: Stephen Hemminger <sthemmin@microsoft.com>\n---\n drivers/net/netvsc/hn_rxtx.c | 10 ++++++++--\n 1 file changed, 8 insertions(+), 2 deletions(-)",
    "diff": "diff --git a/drivers/net/netvsc/hn_rxtx.c b/drivers/net/netvsc/hn_rxtx.c\nindex cc8a534b5ce8..25c97ea43ad6 100644\n--- a/drivers/net/netvsc/hn_rxtx.c\n+++ b/drivers/net/netvsc/hn_rxtx.c\n@@ -24,6 +24,7 @@\n #include <rte_memory.h>\n #include <rte_eal.h>\n #include <rte_dev.h>\n+#include <rte_net.h>\n #include <rte_bus_vmbus.h>\n #include <rte_spinlock.h>\n \n@@ -495,6 +496,10 @@ static void hn_rxpkt(struct hn_rx_queue *rxq, struct hn_rx_bufinfo *rxb,\n \tm->port = rxq->port_id;\n \tm->pkt_len = dlen;\n \tm->data_len = dlen;\n+\tm->packet_type = rte_net_get_ptype(m, NULL,\n+\t\t\t\t\t   RTE_PTYPE_L2_MASK |\n+\t\t\t\t\t   RTE_PTYPE_L3_MASK |\n+\t\t\t\t\t   RTE_PTYPE_L4_MASK);\n \n \tif (info->vlan_info != HN_NDIS_VLAN_INFO_INVALID) {\n \t\tm->vlan_tci = info->vlan_info;\n@@ -515,9 +520,10 @@ static void hn_rxpkt(struct hn_rx_queue *rxq, struct hn_rx_bufinfo *rxb,\n \t\tm->hash.rss = info->hash_value;\n \t}\n \n-\tPMD_RX_LOG(DEBUG, \"port %u:%u RX id %\" PRIu64 \" size %u ol_flags %#\" PRIx64,\n+\tPMD_RX_LOG(DEBUG,\n+\t\t   \"port %u:%u RX id %\"PRIu64\" size %u type %#x ol_flags %#\"PRIx64,\n \t\t   rxq->port_id, rxq->queue_id, rxb->xactid,\n-\t\t   m->pkt_len, m->ol_flags);\n+\t\t   m->pkt_len, m->packet_type, m->ol_flags);\n \n \t++rxq->stats.packets;\n \trxq->stats.bytes += m->pkt_len;\n",
    "prefixes": [
        "1/2"
    ]
}