get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 50233,
    "url": "http://patches.dpdk.org/api/patches/50233/?format=api",
    "web_url": "http://patches.dpdk.org/project/dpdk/patch/1549556983-10896-39-git-send-email-arybchenko@solarflare.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": "<1549556983-10896-39-git-send-email-arybchenko@solarflare.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/1549556983-10896-39-git-send-email-arybchenko@solarflare.com",
    "date": "2019-02-07T16:29:43",
    "name": "[38/38] net/sfc/base: share macro to increment per-event type stats",
    "commit_ref": null,
    "pull_url": null,
    "state": "accepted",
    "archived": true,
    "hash": "5a9729bf36c93fef8bed67f3d766a79b592d924b",
    "submitter": {
        "id": 607,
        "url": "http://patches.dpdk.org/api/people/607/?format=api",
        "name": "Andrew Rybchenko",
        "email": "arybchenko@solarflare.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/1549556983-10896-39-git-send-email-arybchenko@solarflare.com/mbox/",
    "series": [
        {
            "id": 3411,
            "url": "http://patches.dpdk.org/api/series/3411/?format=api",
            "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=3411",
            "date": "2019-02-07T16:29:05",
            "name": "net/sfc: update base driver",
            "version": 1,
            "mbox": "http://patches.dpdk.org/series/3411/mbox/"
        }
    ],
    "comments": "http://patches.dpdk.org/api/patches/50233/comments/",
    "check": "success",
    "checks": "http://patches.dpdk.org/api/patches/50233/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 46C551B7D9;\n\tThu,  7 Feb 2019 17:31:20 +0100 (CET)",
            "from dispatch1-us1.ppe-hosted.com (dispatch1-us1.ppe-hosted.com\n\t[67.231.154.164]) by dpdk.org (Postfix) with ESMTP id AB7B11B58F\n\tfor <dev@dpdk.org>; Thu,  7 Feb 2019 17:30:39 +0100 (CET)",
            "from webmail.solarflare.com (webmail.solarflare.com\n\t[12.187.104.26])\n\t(using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits))\n\t(No client certificate requested)\n\tby mx1-us3.ppe-hosted.com (Proofpoint Essentials ESMTP Server) with\n\tESMTPS id\n\t94147B8007E for <dev@dpdk.org>; Thu,  7 Feb 2019 16:30:38 +0000 (UTC)",
            "from ocex03.SolarFlarecom.com (10.20.40.36) by\n\tocex03.SolarFlarecom.com (10.20.40.36) with Microsoft SMTP Server\n\t(TLS) id 15.0.1395.4; Thu, 7 Feb 2019 08:30:32 -0800",
            "from opal.uk.solarflarecom.com (10.17.10.1) by\n\tocex03.SolarFlarecom.com (10.20.40.36) with Microsoft SMTP Server\n\t(TLS) id\n\t15.0.1395.4 via Frontend Transport; Thu, 7 Feb 2019 08:30:32 -0800",
            "from ukv-loginhost.uk.solarflarecom.com\n\t(ukv-loginhost.uk.solarflarecom.com [10.17.10.39])\n\tby opal.uk.solarflarecom.com (8.13.8/8.13.8) with ESMTP id\n\tx17GUVB7015406 for <dev@dpdk.org>; Thu, 7 Feb 2019 16:30:31 GMT",
            "from ukv-loginhost.uk.solarflarecom.com (localhost [127.0.0.1])\n\tby ukv-loginhost.uk.solarflarecom.com (Postfix) with ESMTP id\n\t04E501613E4\n\tfor <dev@dpdk.org>; Thu,  7 Feb 2019 16:30:31 +0000 (GMT)"
        ],
        "X-Virus-Scanned": "Proofpoint Essentials engine",
        "From": "Andrew Rybchenko <arybchenko@solarflare.com>",
        "To": "<dev@dpdk.org>",
        "Date": "Thu, 7 Feb 2019 16:29:43 +0000",
        "Message-ID": "<1549556983-10896-39-git-send-email-arybchenko@solarflare.com>",
        "X-Mailer": "git-send-email 1.8.3.1",
        "In-Reply-To": "<1549556983-10896-1-git-send-email-arybchenko@solarflare.com>",
        "References": "<1549556983-10896-1-git-send-email-arybchenko@solarflare.com>",
        "MIME-Version": "1.0",
        "Content-Type": "text/plain",
        "X-TM-AS-Product-Ver": "SMEX-12.5.0.1300-8.5.1010-24412.006",
        "X-TM-AS-Result": "No-6.522500-4.000000-10",
        "X-TMASE-MatchedRID": "oDIP71RadZj+MzVaeoq/RTbN0t/c2qF2EygBy19jHw3HkH7uosEn7NGX\n\tgQphHQmx09NQNrxIpFZlZa1SJU9Moq/wpNVrEiR3i5tintRiuz3/lBG+uXYJkP0TP/kikeqn3SS\n\tlia5v7dJ0690RCBABv/MONSpzdmgMSSOWVJeuO1AURSScn+QSXt0H8LFZNFG7hqz53n/yPnoY3i\n\tqoSzbJcxbskETWCvda7Y1kIM9+HtSZzLWknSwwYOHmS6fG01P0",
        "X-TM-AS-User-Approved-Sender": "No",
        "X-TM-AS-User-Blocked-Sender": "No",
        "X-TMASE-Result": "10--6.522500-4.000000",
        "X-TMASE-Version": "SMEX-12.5.0.1300-8.5.1010-24412.006",
        "X-MDID": "1549557039-bFtOv_VFy2Hz",
        "Subject": "[dpdk-dev] [PATCH 38/38] net/sfc/base: share macro to increment\n\tper-event type stats",
        "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": "Move duplicate macro to increment per-event type stats to\ninternal header. These stats are NIC family independent and\nstored in generic event queue structure.\n\nSigned-off-by: Andrew Rybchenko <arybchenko@solarflare.com>\n---\n drivers/net/sfc/base/ef10_ev.c  | 10 ----------\n drivers/net/sfc/base/efx_ev.c   | 10 ----------\n drivers/net/sfc/base/efx_impl.h | 10 ++++++++++\n 3 files changed, 10 insertions(+), 20 deletions(-)",
    "diff": "diff --git a/drivers/net/sfc/base/ef10_ev.c b/drivers/net/sfc/base/ef10_ev.c\nindex d2c27e0d2..99cae3fa3 100644\n--- a/drivers/net/sfc/base/ef10_ev.c\n+++ b/drivers/net/sfc/base/ef10_ev.c\n@@ -12,16 +12,6 @@\n \n #if EFX_OPTS_EF10()\n \n-#if EFSYS_OPT_QSTATS\n-#define\tEFX_EV_QSTAT_INCR(_eep, _stat)\t\t\t\t\t\\\n-\tdo {\t\t\t\t\t\t\t\t\\\n-\t\t(_eep)->ee_stat[_stat]++;\t\t\t\t\\\n-\t_NOTE(CONSTANTCONDITION)\t\t\t\t\t\\\n-\t} while (B_FALSE)\n-#else\n-#define\tEFX_EV_QSTAT_INCR(_eep, _stat)\n-#endif\n-\n /*\n  * Non-interrupting event queue requires interrrupting event queue to\n  * refer to for wake-up events even if wake ups are never used.\ndiff --git a/drivers/net/sfc/base/efx_ev.c b/drivers/net/sfc/base/efx_ev.c\nindex 7b5130291..b9fc5caae 100644\n--- a/drivers/net/sfc/base/efx_ev.c\n+++ b/drivers/net/sfc/base/efx_ev.c\n@@ -10,16 +10,6 @@\n #include \"mcdi_mon.h\"\n #endif\n \n-#if EFSYS_OPT_QSTATS\n-#define\tEFX_EV_QSTAT_INCR(_eep, _stat)\t\t\t\t\t\\\n-\tdo {\t\t\t\t\t\t\t\t\\\n-\t\t(_eep)->ee_stat[_stat]++;\t\t\t\t\\\n-\t_NOTE(CONSTANTCONDITION)\t\t\t\t\t\\\n-\t} while (B_FALSE)\n-#else\n-#define\tEFX_EV_QSTAT_INCR(_eep, _stat)\n-#endif\n-\n #define\tEFX_EV_PRESENT(_qword)\t\t\t\t\t\t\\\n \t(EFX_QWORD_FIELD((_qword), EFX_DWORD_0) != 0xffffffff &&\t\\\n \tEFX_QWORD_FIELD((_qword), EFX_DWORD_1) != 0xffffffff)\ndiff --git a/drivers/net/sfc/base/efx_impl.h b/drivers/net/sfc/base/efx_impl.h\nindex 56d293b40..f148c870c 100644\n--- a/drivers/net/sfc/base/efx_impl.h\n+++ b/drivers/net/sfc/base/efx_impl.h\n@@ -794,6 +794,16 @@ struct efx_evq_s {\n \n #define\tEFX_EVQ_SIENA_TIMER_QUANTUM_NS\t6144 /* 768 cycles */\n \n+#if EFSYS_OPT_QSTATS\n+#define\tEFX_EV_QSTAT_INCR(_eep, _stat)\t\t\t\t\t\\\n+\tdo {\t\t\t\t\t\t\t\t\\\n+\t\t(_eep)->ee_stat[_stat]++;\t\t\t\t\\\n+\t_NOTE(CONSTANTCONDITION)\t\t\t\t\t\\\n+\t} while (B_FALSE)\n+#else\n+#define\tEFX_EV_QSTAT_INCR(_eep, _stat)\n+#endif\n+\n struct efx_rxq_s {\n \tuint32_t\t\t\ter_magic;\n \tefx_nic_t\t\t\t*er_enp;\n",
    "prefixes": [
        "38/38"
    ]
}