get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 7720,
    "url": "https://patches.dpdk.org/api/patches/7720/?format=api",
    "web_url": "https://patches.dpdk.org/project/dpdk/patch/1445040882-31006-10-git-send-email-stephen@networkplumber.org/",
    "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": "<1445040882-31006-10-git-send-email-stephen@networkplumber.org>",
    "list_archive_url": "https://inbox.dpdk.org/dev/1445040882-31006-10-git-send-email-stephen@networkplumber.org",
    "date": "2015-10-17T00:14:42",
    "name": "[dpdk-dev,9/9] rte_ether: mark deprecated statistics with attribute",
    "commit_ref": null,
    "pull_url": null,
    "state": "changes-requested",
    "archived": true,
    "hash": "7d0445f87ed47db5ba5578897add7c1473e39869",
    "submitter": {
        "id": 27,
        "url": "https://patches.dpdk.org/api/people/27/?format=api",
        "name": "Stephen Hemminger",
        "email": "stephen@networkplumber.org"
    },
    "delegate": null,
    "mbox": "https://patches.dpdk.org/project/dpdk/patch/1445040882-31006-10-git-send-email-stephen@networkplumber.org/mbox/",
    "series": [],
    "comments": "https://patches.dpdk.org/api/patches/7720/comments/",
    "check": "pending",
    "checks": "https://patches.dpdk.org/api/patches/7720/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 [IPv6:::1])\n\tby dpdk.org (Postfix) with ESMTP id 83BAD91AB;\n\tSat, 17 Oct 2015 02:14:47 +0200 (CEST)",
            "from mail-pa0-f53.google.com (mail-pa0-f53.google.com\n\t[209.85.220.53]) by dpdk.org (Postfix) with ESMTP id 48E2F8E97\n\tfor <dev@dpdk.org>; Sat, 17 Oct 2015 02:14:38 +0200 (CEST)",
            "by pacfv9 with SMTP id fv9so36041743pac.3\n\tfor <dev@dpdk.org>; Fri, 16 Oct 2015 17:14:37 -0700 (PDT)",
            "from xeon-e3.home.lan (static-50-53-82-155.bvtn.or.frontiernet.net.\n\t[50.53.82.155]) by smtp.gmail.com with ESMTPSA id\n\tqy7sm23431097pab.37.2015.10.16.17.14.37\n\t(version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128);\n\tFri, 16 Oct 2015 17:14:37 -0700 (PDT)"
        ],
        "X-Google-DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n\td=1e100.net; s=20130820;\n\th=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to\n\t:references;\n\tbh=ogwa6UYupBGFeEVf59ptibFY7Ydlz1nHP2fN0vse4WY=;\n\tb=FzThEnNVYFLLd/QQdB7DLJfUX/yrJhZfRPRJ1uGKY7CPlCbJv99mYLA+Nw4EJ9OWgO\n\tELxapAjxKZ5rD83TATR/2f7PQaC6UYrg/mR5W4dTwGV0F7i3tSqJFt+CYeSoFUcfjAVq\n\t4LzSA7Wjexu+FMtOJXtqZewvv167qCwGLK9ulylTmK/gXvTyIhzkHh9Ec6EP9MvbwKDy\n\taRUSIiN7vc2Qtf97rJ0rPGW/Lv+p1rPR8ktsEzNAB1GEAqUzgtEjNHErwCiafHPOBrLn\n\tkL+kHuGAUo5ogtLdsDar2a4vXCR1Q27n3cRP7rQOE8m2plJIxYo37H0rFIIsXy19dXaM\n\tTzAg==",
        "X-Gm-Message-State": "ALoCoQmOax+28gxGAQsRQzsLtmjtI9/isJYAwNrIeJULoBeeRawpfVTiRjL0Gi+oOaPBpnmI7w9J",
        "X-Received": "by 10.68.242.2 with SMTP id wm2mr19841550pbc.31.1445040877700;\n\tFri, 16 Oct 2015 17:14:37 -0700 (PDT)",
        "From": "Stephen Hemminger <stephen@networkplumber.org>",
        "To": "dev@dpdk.org",
        "Date": "Fri, 16 Oct 2015 17:14:42 -0700",
        "Message-Id": "<1445040882-31006-10-git-send-email-stephen@networkplumber.org>",
        "X-Mailer": "git-send-email 2.1.4",
        "In-Reply-To": "<1445040882-31006-1-git-send-email-stephen@networkplumber.org>",
        "References": "<1445040882-31006-1-git-send-email-stephen@networkplumber.org>",
        "Cc": "Stephen Hemminger <shemming@brocade.com>",
        "Subject": "[dpdk-dev] [PATCH 9/9] rte_ether: mark deprecated statistics with\n\tattribute",
        "X-BeenThere": "dev@dpdk.org",
        "X-Mailman-Version": "2.1.15",
        "Precedence": "list",
        "List-Id": "patches and discussions about DPDK <dev.dpdk.org>",
        "List-Unsubscribe": "<http://dpdk.org/ml/options/dev>,\n\t<mailto:dev-request@dpdk.org?subject=unsubscribe>",
        "List-Archive": "<http://dpdk.org/ml/archives/dev/>",
        "List-Post": "<mailto:dev@dpdk.org>",
        "List-Help": "<mailto:dev-request@dpdk.org?subject=help>",
        "List-Subscribe": "<http://dpdk.org/ml/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: Stephen Hemminger <shemming@brocade.com>\n\nUse deprecated attribute to highlight any use of fields that\nare marked as going away in the rte_ether device statistics.\n\nSigned-off-by: Stephen Hemminger <shemming@brocade.com>\n---\n lib/librte_eal/common/include/rte_common.h |  3 +++\n lib/librte_ether/rte_ethdev.h              | 22 +++++++++++-----------\n 2 files changed, 14 insertions(+), 11 deletions(-)",
    "diff": "diff --git a/lib/librte_eal/common/include/rte_common.h b/lib/librte_eal/common/include/rte_common.h\nindex 3121314..f8ca6f3 100644\n--- a/lib/librte_eal/common/include/rte_common.h\n+++ b/lib/librte_eal/common/include/rte_common.h\n@@ -69,6 +69,9 @@ typedef uint32_t unaligned_uint32_t;\n typedef uint16_t unaligned_uint16_t;\n #endif\n \n+/******* Macro to mark functions and fields scheduled for removal *****/\n+#define __rte_deprecated\t__attribute__((__deprecated__))\n+\n /*********** Macros to eliminate unused variable warnings ********/\n \n /**\ndiff --git a/lib/librte_ether/rte_ethdev.h b/lib/librte_ether/rte_ethdev.h\nindex 8a8c82b..4919963 100644\n--- a/lib/librte_ether/rte_ethdev.h\n+++ b/lib/librte_ether/rte_ethdev.h\n@@ -194,28 +194,28 @@ struct rte_eth_stats {\n \tuint64_t opackets;  /**< Total number of successfully transmitted packets.*/\n \tuint64_t ibytes;    /**< Total number of successfully received bytes. */\n \tuint64_t obytes;    /**< Total number of successfully transmitted bytes. */\n-\tuint64_t imissed;\n-\t/**< Deprecated; Total of RX missed packets (e.g full FIFO). */\n-\tuint64_t ibadcrc;\n+\tuint64_t imissed __rte_deprecated;\n+\t/**< Deprecated: Total of RX missed packets (e.g full FIFO). */\n+\tuint64_t ibadcrc __rte_deprecated;\n \t/**< Deprecated; Total of RX packets with CRC error. */\n-\tuint64_t ibadlen;\n+\tuint64_t ibadlen __rte_deprecated;\n \t/**< Deprecated; Total of RX packets with bad length. */\n \tuint64_t ierrors;   /**< Total number of erroneous received packets. */\n \tuint64_t oerrors;   /**< Total number of failed transmitted packets. */\n-\tuint64_t imcasts;\n+\tuint64_t imcasts __rte_deprecated;\n \t/**< Deprecated; Total number of multicast received packets. */\n \tuint64_t rx_nombuf; /**< Total number of RX mbuf allocation failures. */\n-\tuint64_t fdirmatch;\n+\tuint64_t fdirmatch __rte_deprecated;\n \t/**< Deprecated; Total number of RX packets matching a filter. */\n-\tuint64_t fdirmiss;\n+\tuint64_t fdirmiss __rte_deprecated;\n \t/**< Deprecated; Total number of RX packets not matching any filter. */\n-\tuint64_t tx_pause_xon;\n+\tuint64_t tx_pause_xon __rte_deprecated;\n \t /**< Deprecated; Total nb. of XON pause frame sent. */\n-\tuint64_t rx_pause_xon;\n+\tuint64_t rx_pause_xon  __rte_deprecated;\n \t/**< Deprecated; Total nb. of XON pause frame received. */\n-\tuint64_t tx_pause_xoff;\n+\tuint64_t tx_pause_xoff __rte_deprecated;\n \t/**< Deprecated; Total nb. of XOFF pause frame sent. */\n-\tuint64_t rx_pause_xoff;\n+\tuint64_t rx_pause_xoff __rte_deprecated;\n \t/**< Deprecated; Total nb. of XOFF pause frame received. */\n \tuint64_t q_ipackets[RTE_ETHDEV_QUEUE_STAT_CNTRS];\n \t/**< Total number of queue RX packets. */\n",
    "prefixes": [
        "dpdk-dev",
        "9/9"
    ]
}