Show a patch.

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

{
    "id": 330,
    "url": "https://patches.dpdk.org/api/patches/330/?format=api",
    "web_url": "https://patches.dpdk.org/patch/330/",
    "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"
    },
    "msgid": "<1410247299-4365-11-git-send-email-helin.zhang@intel.com>",
    "date": "2014-09-09T07:21:34",
    "name": "[dpdk-dev,10/15] i40e: support of 10G base T",
    "commit_ref": null,
    "pull_url": null,
    "state": "accepted",
    "archived": true,
    "hash": "0376409b5ad1bf2a8ad588de52d86e6661b0e2fc",
    "submitter": {
        "id": 14,
        "url": "https://patches.dpdk.org/api/people/14/?format=api",
        "name": "Helin Zhang",
        "email": "helin.zhang@intel.com"
    },
    "delegate": null,
    "mbox": "https://patches.dpdk.org/patch/330/mbox/",
    "series": [],
    "comments": "https://patches.dpdk.org/api/patches/330/comments/",
    "check": "pending",
    "checks": "https://patches.dpdk.org/api/patches/330/checks/",
    "tags": {},
    "headers": {
        "List-Archive": "<http://dpdk.org/ml/archives/dev/>",
        "Return-Path": "<dev-bounces@dpdk.org>",
        "Message-Id": "<1410247299-4365-11-git-send-email-helin.zhang@intel.com>",
        "X-Mailer": "git-send-email 1.7.4.1",
        "To": "dev@dpdk.org",
        "List-Subscribe": "<http://dpdk.org/ml/listinfo/dev>,\n\t<mailto:dev-request@dpdk.org?subject=subscribe>",
        "Received": [
            "from [92.243.14.124] (localhost [IPv6:::1])\n\tby dpdk.org (Postfix) with ESMTP id D3C30B3EB;\n\tTue,  9 Sep 2014 09:17:40 +0200 (CEST)",
            "from mga09.intel.com (mga09.intel.com [134.134.136.24])\n\tby dpdk.org (Postfix) with ESMTP id 951CDB3B9\n\tfor <dev@dpdk.org>; Tue,  9 Sep 2014 09:17:38 +0200 (CEST)",
            "from orsmga002.jf.intel.com ([10.7.209.21])\n\tby orsmga102.jf.intel.com with ESMTP; 09 Sep 2014 00:16:35 -0700",
            "from shvmail01.sh.intel.com ([10.239.29.42])\n\tby orsmga002.jf.intel.com with ESMTP; 09 Sep 2014 00:22:13 -0700",
            "from shecgisg004.sh.intel.com (shecgisg004.sh.intel.com\n\t[10.239.29.89])\n\tby shvmail01.sh.intel.com with ESMTP id s897MBLi008883;\n\tTue, 9 Sep 2014 15:22:11 +0800",
            "from shecgisg004.sh.intel.com (localhost [127.0.0.1])\n\tby shecgisg004.sh.intel.com (8.13.6/8.13.6/SuSE Linux 0.8) with ESMTP\n\tid s897M9tf004495; Tue, 9 Sep 2014 15:22:11 +0800",
            "(from hzhan75@localhost)\n\tby shecgisg004.sh.intel.com (8.13.6/8.13.6/Submit) id s897M92f004491; \n\tTue, 9 Sep 2014 15:22:09 +0800"
        ],
        "X-BeenThere": "dev@dpdk.org",
        "List-Unsubscribe": "<http://dpdk.org/ml/options/dev>,\n\t<mailto:dev-request@dpdk.org?subject=unsubscribe>",
        "Subject": "[dpdk-dev] [PATCH 10/15] i40e: support of 10G base T",
        "In-Reply-To": "<1410247299-4365-1-git-send-email-helin.zhang@intel.com>",
        "List-Id": "patches and discussions about DPDK <dev.dpdk.org>",
        "List-Post": "<mailto:dev@dpdk.org>",
        "Date": "Tue,  9 Sep 2014 15:21:34 +0800",
        "X-ExtLoop1": "1",
        "Precedence": "list",
        "From": "Helin Zhang <helin.zhang@intel.com>",
        "X-IronPort-AV": "E=Sophos;i=\"5.04,491,1406617200\"; d=\"scan'208\";a=\"600087305\"",
        "References": "<1410247299-4365-1-git-send-email-helin.zhang@intel.com>",
        "X-Original-To": "patchwork@dpdk.org",
        "Sender": "\"dev\" <dev-bounces@dpdk.org>",
        "Errors-To": "dev-bounces@dpdk.org",
        "List-Help": "<mailto:dev-request@dpdk.org?subject=help>",
        "Delivered-To": "patchwork@dpdk.org",
        "X-Mailman-Version": "2.1.15"
    },
    "content": "10G base T type support is added.\n\nSigned-off-by: Helin Zhang <helin.zhang@intel.com>\nReviewed-by: Chen Jing <jing.d.chen@intel.com>\n---\n lib/librte_pmd_i40e/i40e/i40e_common.c | 3 +++\n lib/librte_pmd_i40e/i40e/i40e_type.h   | 1 +\n 2 files changed, 4 insertions(+)",
    "diff": "diff --git a/lib/librte_pmd_i40e/i40e/i40e_common.c b/lib/librte_pmd_i40e/i40e/i40e_common.c\nindex 7e750ec..84af47a 100644\n--- a/lib/librte_pmd_i40e/i40e/i40e_common.c\n+++ b/lib/librte_pmd_i40e/i40e/i40e_common.c\n@@ -63,6 +63,7 @@ STATIC enum i40e_status_code i40e_set_mac_type(struct i40e_hw *hw)\n \t\tcase I40E_DEV_ID_QSFP_A:\n \t\tcase I40E_DEV_ID_QSFP_B:\n \t\tcase I40E_DEV_ID_QSFP_C:\n+\t\tcase I40E_DEV_ID_10G_BASE_T:\n \t\t\thw->mac.type = I40E_MAC_XL710;\n \t\t\tbreak;\n \t\tcase I40E_DEV_ID_VF:\n@@ -762,6 +763,8 @@ STATIC enum i40e_media_type i40e_get_media_type(struct i40e_hw *hw)\n \tswitch (hw->phy.link_info.phy_type) {\n \tcase I40E_PHY_TYPE_10GBASE_SR:\n \tcase I40E_PHY_TYPE_10GBASE_LR:\n+\tcase I40E_PHY_TYPE_1000BASE_SX:\n+\tcase I40E_PHY_TYPE_1000BASE_LX:\n \tcase I40E_PHY_TYPE_40GBASE_SR4:\n \tcase I40E_PHY_TYPE_40GBASE_LR4:\n \t\tmedia = I40E_MEDIA_TYPE_FIBER;\ndiff --git a/lib/librte_pmd_i40e/i40e/i40e_type.h b/lib/librte_pmd_i40e/i40e/i40e_type.h\nindex 004967a..737a4c1 100644\n--- a/lib/librte_pmd_i40e/i40e/i40e_type.h\n+++ b/lib/librte_pmd_i40e/i40e/i40e_type.h\n@@ -60,6 +60,7 @@ POSSIBILITY OF SUCH DAMAGE.\n #define I40E_DEV_ID_QSFP_A\t\t0x1583\n #define I40E_DEV_ID_QSFP_B\t\t0x1584\n #define I40E_DEV_ID_QSFP_C\t\t0x1585\n+#define I40E_DEV_ID_10G_BASE_T\t\t0x1586\n #define I40E_DEV_ID_VF\t\t\t0x154C\n #define I40E_DEV_ID_VF_HV\t\t0x1571\n \n",
    "prefixes": [
        "dpdk-dev",
        "10/15"
    ]
}