get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 17509,
    "url": "http://patches.dpdk.org/api/patches/17509/?format=api",
    "web_url": "http://patches.dpdk.org/project/dpdk/patch/1480727953-92137-8-git-send-email-jingjing.wu@intel.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": "<1480727953-92137-8-git-send-email-jingjing.wu@intel.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/1480727953-92137-8-git-send-email-jingjing.wu@intel.com",
    "date": "2016-12-03T01:18:49",
    "name": "[dpdk-dev,07/31] net/i40e/base: add media type detection for 25G link",
    "commit_ref": null,
    "pull_url": null,
    "state": "changes-requested",
    "archived": true,
    "hash": "5b0c4c4aff2f4deeada777151782f36075211332",
    "submitter": {
        "id": 47,
        "url": "http://patches.dpdk.org/api/people/47/?format=api",
        "name": "Jingjing Wu",
        "email": "jingjing.wu@intel.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/1480727953-92137-8-git-send-email-jingjing.wu@intel.com/mbox/",
    "series": [],
    "comments": "http://patches.dpdk.org/api/patches/17509/comments/",
    "check": "success",
    "checks": "http://patches.dpdk.org/api/patches/17509/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 002BDFA51;\n\tSat,  3 Dec 2016 02:20:59 +0100 (CET)",
            "from mga03.intel.com (mga03.intel.com [134.134.136.65])\n\tby dpdk.org (Postfix) with ESMTP id 3DFF16932\n\tfor <dev@dpdk.org>; Sat,  3 Dec 2016 02:19:57 +0100 (CET)",
            "from orsmga003.jf.intel.com ([10.7.209.27])\n\tby orsmga103.jf.intel.com with ESMTP; 02 Dec 2016 17:19:56 -0800",
            "from dpdk2.sh.intel.com ([10.239.128.246])\n\tby orsmga003.jf.intel.com with ESMTP; 02 Dec 2016 17:19:55 -0800"
        ],
        "X-ExtLoop1": "1",
        "X-IronPort-AV": "E=Sophos;i=\"5.33,289,1477983600\"; d=\"scan'208\";a=\"908199214\"",
        "From": "Jingjing Wu <jingjing.wu@intel.com>",
        "To": "dev@dpdk.org",
        "Cc": "jingjing.wu@intel.com,\n\thelin.zhang@intel.com",
        "Date": "Sat,  3 Dec 2016 09:18:49 +0800",
        "Message-Id": "<1480727953-92137-8-git-send-email-jingjing.wu@intel.com>",
        "X-Mailer": "git-send-email 2.4.11",
        "In-Reply-To": "<1480727953-92137-1-git-send-email-jingjing.wu@intel.com>",
        "References": "<1480727953-92137-1-git-send-email-jingjing.wu@intel.com>",
        "Subject": "[dpdk-dev] [PATCH 07/31] net/i40e/base: add media type detection\n\tfor 25G link",
        "X-BeenThere": "dev@dpdk.org",
        "X-Mailman-Version": "2.1.15",
        "Precedence": "list",
        "List-Id": "DPDK patches and discussions <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": "Signed-off-by: Jingjing Wu <jingjing.wu@intel.com>\n---\n drivers/net/i40e/base/i40e_common.c | 4 ++++\n 1 file changed, 4 insertions(+)",
    "diff": "diff --git a/drivers/net/i40e/base/i40e_common.c b/drivers/net/i40e/base/i40e_common.c\nindex 2ad9448..7eea189 100644\n--- a/drivers/net/i40e/base/i40e_common.c\n+++ b/drivers/net/i40e/base/i40e_common.c\n@@ -1288,6 +1288,8 @@ STATIC enum i40e_media_type i40e_get_media_type(struct i40e_hw *hw)\n \tcase I40E_PHY_TYPE_1000BASE_LX:\n \tcase I40E_PHY_TYPE_40GBASE_SR4:\n \tcase I40E_PHY_TYPE_40GBASE_LR4:\n+\tcase I40E_PHY_TYPE_25GBASE_LR:\n+\tcase I40E_PHY_TYPE_25GBASE_SR:\n \t\tmedia = I40E_MEDIA_TYPE_FIBER;\n \t\tbreak;\n \tcase I40E_PHY_TYPE_100BASE_TX:\n@@ -1302,6 +1304,7 @@ STATIC enum i40e_media_type i40e_get_media_type(struct i40e_hw *hw)\n \tcase I40E_PHY_TYPE_10GBASE_SFPP_CU:\n \tcase I40E_PHY_TYPE_40GBASE_AOC:\n \tcase I40E_PHY_TYPE_10GBASE_AOC:\n+\tcase I40E_PHY_TYPE_25GBASE_CR:\n \t\tmedia = I40E_MEDIA_TYPE_DA;\n \t\tbreak;\n \tcase I40E_PHY_TYPE_1000BASE_KX:\n@@ -1309,6 +1312,7 @@ STATIC enum i40e_media_type i40e_get_media_type(struct i40e_hw *hw)\n \tcase I40E_PHY_TYPE_10GBASE_KR:\n \tcase I40E_PHY_TYPE_40GBASE_KR4:\n \tcase I40E_PHY_TYPE_20GBASE_KR2:\n+\tcase I40E_PHY_TYPE_25GBASE_KR:\n \t\tmedia = I40E_MEDIA_TYPE_BACKPLANE;\n \t\tbreak;\n \tcase I40E_PHY_TYPE_SGMII:\n",
    "prefixes": [
        "dpdk-dev",
        "07/31"
    ]
}