get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 7993,
    "url": "https://patches.dpdk.org/api/patches/7993/?format=api",
    "web_url": "https://patches.dpdk.org/project/dpdk/patch/1445810400-8978-2-git-send-email-marcdevel@gmail.com/",
    "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": "<1445810400-8978-2-git-send-email-marcdevel@gmail.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/1445810400-8978-2-git-send-email-marcdevel@gmail.com",
    "date": "2015-10-25T21:59:56",
    "name": "[dpdk-dev,v6,1/5] ethdev: Added ETH_SPEED_CAP bitmap for ports",
    "commit_ref": null,
    "pull_url": null,
    "state": "changes-requested",
    "archived": true,
    "hash": "75474cdc5a9d77428203c7d8a30140c2800569a4",
    "submitter": {
        "id": 314,
        "url": "https://patches.dpdk.org/api/people/314/?format=api",
        "name": "Marc Sune",
        "email": "marcdevel@gmail.com"
    },
    "delegate": null,
    "mbox": "https://patches.dpdk.org/project/dpdk/patch/1445810400-8978-2-git-send-email-marcdevel@gmail.com/mbox/",
    "series": [],
    "comments": "https://patches.dpdk.org/api/patches/7993/comments/",
    "check": "pending",
    "checks": "https://patches.dpdk.org/api/patches/7993/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 D68B68D85;\n\tSun, 25 Oct 2015 23:00:33 +0100 (CET)",
            "from mail-wi0-f177.google.com (mail-wi0-f177.google.com\n\t[209.85.212.177]) by dpdk.org (Postfix) with ESMTP id 30FBD5697\n\tfor <dev@dpdk.org>; Sun, 25 Oct 2015 23:00:31 +0100 (CET)",
            "by wicll6 with SMTP id ll6so90827514wic.1\n\tfor <dev@dpdk.org>; Sun, 25 Oct 2015 15:00:31 -0700 (PDT)",
            "from localhost.localdomain\n\t(189.Red-83-47-134.dynamicIP.rima-tde.net. [83.47.134.189])\n\tby smtp.gmail.com with ESMTPSA id\n\tev1sm8733669wic.21.2015.10.25.15.00.29\n\t(version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128);\n\tSun, 25 Oct 2015 15:00:30 -0700 (PDT)"
        ],
        "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;\n\th=from:to:cc:subject:date:message-id:in-reply-to:references;\n\tbh=nCkDdyD+X5pqVKJTPQq10Xs1dTbP6KUjloUgqT9yJlY=;\n\tb=BLzSG5yvjczzgvfpoEUjb27M51833mCYOKaFS535cWMZSa8FnVG797Dv6rGEyGLUbv\n\t76MiHL9rpvUMeWbjx5dMtEpwpCM2+NE5I17OTFeZAlZkWX6u8FnprCMRySshW/ijj5N1\n\tjrP0MdU9TWFWGBdG376ZiaMrwFn+3pzcHdGYfo/I8H/bEah0SHXCaayHHGnOqZhm7Ges\n\tfs10n6ghMs+STo4fIOjCctRm8Dd/LQ/xe0fCy1rj/sib069G7I6wi6HnpzWDn4NGoRIh\n\t/20/otf7gwQD5l/mbkkaKF04pQBxsD8W4oKBWG+WlBqtErqV8OvsYe8Eg8BICJKdx/qV\n\tnZRQ==",
        "X-Received": "by 10.194.24.70 with SMTP id s6mr16621294wjf.135.1445810430981; \n\tSun, 25 Oct 2015 15:00:30 -0700 (PDT)",
        "From": "Marc Sune <marcdevel@gmail.com>",
        "To": "dev@dpdk.org",
        "Date": "Sun, 25 Oct 2015 22:59:56 +0100",
        "Message-Id": "<1445810400-8978-2-git-send-email-marcdevel@gmail.com>",
        "X-Mailer": "git-send-email 2.1.4",
        "In-Reply-To": "<1445810400-8978-1-git-send-email-marcdevel@gmail.com>",
        "References": "<1443993003-1059-1-git-send-email-marcdevel@gmail.com>\n\t<1445810400-8978-1-git-send-email-marcdevel@gmail.com>",
        "Subject": "[dpdk-dev] [PATCH v6 1/5] ethdev: Added ETH_SPEED_CAP bitmap for\n\tports",
        "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": "Added constants and bitmap to struct rte_eth_dev_info to be used by PMDs.\n\nSigned-off-by: Marc Sune <marcdevel@gmail.com>\n---\n lib/librte_ether/rte_ethdev.h | 24 ++++++++++++++++++++++++\n 1 file changed, 24 insertions(+)",
    "diff": "diff --git a/lib/librte_ether/rte_ethdev.h b/lib/librte_ether/rte_ethdev.h\nindex 8a8c82b..951a423 100644\n--- a/lib/librte_ether/rte_ethdev.h\n+++ b/lib/librte_ether/rte_ethdev.h\n@@ -811,6 +811,29 @@ struct rte_eth_conf {\n #define DEV_TX_OFFLOAD_OUTER_IPV4_CKSUM 0x00000080 /**< Used for tunneling packet. */\n #define DEV_TX_OFFLOAD_QINQ_INSERT 0x00000100\n \n+/**\n+ * Device supported speeds\n+ */\n+#define ETH_SPEED_CAP_NOT_PHY\t(0)  /*< No phy media > */\n+#define ETH_SPEED_CAP_10M_HD\t(1 << 0)  /*< 10 Mbps half-duplex> */\n+#define ETH_SPEED_CAP_10M_FD\t(1 << 1)  /*< 10 Mbps full-duplex> */\n+#define ETH_SPEED_CAP_100M_HD\t(1 << 2)  /*< 100 Mbps half-duplex> */\n+#define ETH_SPEED_CAP_100M_FD\t(1 << 3)  /*< 100 Mbps full-duplex> */\n+#define ETH_SPEED_CAP_1G\t(1 << 4)  /*< 1 Gbps > */\n+#define ETH_SPEED_CAP_2_5G\t(1 << 5)  /*< 2.5 Gbps > */\n+#define ETH_SPEED_CAP_5G\t(1 << 6)  /*< 5 Gbps > */\n+#define ETH_SPEED_CAP_10G\t(1 << 7)  /*< 10 Mbps > */\n+#define ETH_SPEED_CAP_20G\t(1 << 8)  /*< 20 Gbps > */\n+#define ETH_SPEED_CAP_25G\t(1 << 9)  /*< 25 Gbps > */\n+#define ETH_SPEED_CAP_40G\t(1 << 10)  /*< 40 Gbps > */\n+#define ETH_SPEED_CAP_50G\t(1 << 11)  /*< 50 Gbps > */\n+#define ETH_SPEED_CAP_56G\t(1 << 12)  /*< 56 Gbps > */\n+#define ETH_SPEED_CAP_100G\t(1 << 13)  /*< 100 Gbps > */\n+\n+\n+/**\n+ * Ethernet device information\n+ */\n struct rte_eth_dev_info {\n \tstruct rte_pci_device *pci_dev; /**< Device PCI information. */\n \tconst char *driver_name; /**< Device Driver name. */\n@@ -837,6 +860,7 @@ struct rte_eth_dev_info {\n \tuint16_t vmdq_queue_base; /**< First queue ID for VMDQ pools. */\n \tuint16_t vmdq_queue_num;  /**< Queue number for VMDQ pools. */\n \tuint16_t vmdq_pool_base;  /**< First ID of VMDQ pools. */\n+\tuint32_t speed_capa;  /**< Supported speeds bitmap (ETH_SPEED_CAP_). */\n };\n \n /** Maximum name length for extended statistics counters */\n",
    "prefixes": [
        "dpdk-dev",
        "v6",
        "1/5"
    ]
}