get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 7608,
    "url": "https://patches.dpdk.org/api/patches/7608/?format=api",
    "web_url": "https://patches.dpdk.org/project/dpdk/patch/1444874628-5453-3-git-send-email-wenzhuo.lu@intel.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": "<1444874628-5453-3-git-send-email-wenzhuo.lu@intel.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/1444874628-5453-3-git-send-email-wenzhuo.lu@intel.com",
    "date": "2015-10-15T02:03:15",
    "name": "[dpdk-dev,v2,02/35] e1000/base: add new devices",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": true,
    "hash": "ce4843c98aabbf28ebc57f697a3edd2af240c347",
    "submitter": {
        "id": 258,
        "url": "https://patches.dpdk.org/api/people/258/?format=api",
        "name": "Wenzhuo Lu",
        "email": "wenzhuo.lu@intel.com"
    },
    "delegate": null,
    "mbox": "https://patches.dpdk.org/project/dpdk/patch/1444874628-5453-3-git-send-email-wenzhuo.lu@intel.com/mbox/",
    "series": [],
    "comments": "https://patches.dpdk.org/api/patches/7608/comments/",
    "check": "pending",
    "checks": "https://patches.dpdk.org/api/patches/7608/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 4007A8D99;\n\tThu, 15 Oct 2015 04:04:04 +0200 (CEST)",
            "from mga09.intel.com (mga09.intel.com [134.134.136.24])\n\tby dpdk.org (Postfix) with ESMTP id AE8F68D8B\n\tfor <dev@dpdk.org>; Thu, 15 Oct 2015 04:04:01 +0200 (CEST)",
            "from orsmga001.jf.intel.com ([10.7.209.18])\n\tby orsmga102.jf.intel.com with ESMTP; 14 Oct 2015 19:04:00 -0700",
            "from shvmail01.sh.intel.com ([10.239.29.42])\n\tby orsmga001.jf.intel.com with ESMTP; 14 Oct 2015 19:03:59 -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 t9F23vPH004275;\n\tThu, 15 Oct 2015 10:03:57 +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 t9F23sD4005501; Thu, 15 Oct 2015 10:03:56 +0800",
            "(from wenzhuol@localhost)\n\tby shecgisg004.sh.intel.com (8.13.6/8.13.6/Submit) id t9F23sph005497; \n\tThu, 15 Oct 2015 10:03:54 +0800"
        ],
        "X-ExtLoop1": "1",
        "X-IronPort-AV": "E=Sophos;i=\"5.17,683,1437462000\"; d=\"scan'208\";a=\"793164607\"",
        "From": "Wenzhuo Lu <wenzhuo.lu@intel.com>",
        "To": "dev@dpdk.org",
        "Date": "Thu, 15 Oct 2015 10:03:15 +0800",
        "Message-Id": "<1444874628-5453-3-git-send-email-wenzhuo.lu@intel.com>",
        "X-Mailer": "git-send-email 1.7.4.1",
        "In-Reply-To": "<1444874628-5453-1-git-send-email-wenzhuo.lu@intel.com>",
        "References": "<1444804479-14840-1-git-send-email-wenzhuo.lu@intel.com>\n\t<1444874628-5453-1-git-send-email-wenzhuo.lu@intel.com>",
        "Subject": "[dpdk-dev] [PATCH v2 02/35] e1000/base: add new devices",
        "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": "Add some new i218 devices.\n\nSigned-off-by: Wenzhuo Lu <wenzhuo.lu@intel.com>\n---\n drivers/net/e1000/base/e1000_api.c     |  4 ++++\n drivers/net/e1000/base/e1000_defines.h |  2 ++\n drivers/net/e1000/base/e1000_hw.h      |  4 ++++\n drivers/net/e1000/base/e1000_ich8lan.c | 18 ++++++++++++++----\n 4 files changed, 24 insertions(+), 4 deletions(-)",
    "diff": "diff --git a/drivers/net/e1000/base/e1000_api.c b/drivers/net/e1000/base/e1000_api.c\nindex bfddb79..5ec0ad1 100644\n--- a/drivers/net/e1000/base/e1000_api.c\n+++ b/drivers/net/e1000/base/e1000_api.c\n@@ -292,6 +292,10 @@ s32 e1000_set_mac_type(struct e1000_hw *hw)\n \tcase E1000_DEV_ID_PCH_LPT_I217_V:\n \tcase E1000_DEV_ID_PCH_LPTLP_I218_LM:\n \tcase E1000_DEV_ID_PCH_LPTLP_I218_V:\n+\tcase E1000_DEV_ID_PCH_I218_LM2:\n+\tcase E1000_DEV_ID_PCH_I218_V2:\n+\tcase E1000_DEV_ID_PCH_I218_LM3:\n+\tcase E1000_DEV_ID_PCH_I218_V3:\n \t\tmac->type = e1000_pch_lpt;\n \t\tbreak;\n \tcase E1000_DEV_ID_82575EB_COPPER:\ndiff --git a/drivers/net/e1000/base/e1000_defines.h b/drivers/net/e1000/base/e1000_defines.h\nindex 605e26e..71bd2e0 100644\n--- a/drivers/net/e1000/base/e1000_defines.h\n+++ b/drivers/net/e1000/base/e1000_defines.h\n@@ -197,6 +197,7 @@ POSSIBILITY OF SUCH DAMAGE.\n #define E1000_RCTL_LBM_TCVR\t0x000000C0 /* tcvr loopback mode */\n #define E1000_RCTL_DTYP_PS\t0x00000400 /* Packet Split descriptor */\n #define E1000_RCTL_RDMTS_HALF\t0x00000000 /* Rx desc min thresh size */\n+#define E1000_RCTL_RDMTS_HEX\t0x00010000\n #define E1000_RCTL_MO_SHIFT\t12 /* multicast offset shift */\n #define E1000_RCTL_MO_3\t\t0x00003000 /* multicast offset 15:4 */\n #define E1000_RCTL_BAM\t\t0x00008000 /* broadcast enable */\n@@ -1467,6 +1468,7 @@ POSSIBILITY OF SUCH DAMAGE.\n #define E1000_RXPBS_SIZE_I210_MASK\t0x0000003F /* Rx packet buffer size */\n #define E1000_TXPB0S_SIZE_I210_MASK\t0x0000003F /* Tx packet buffer 0 size */\n \n+\n /* Proxy Filter Control */\n #define E1000_PROXYFC_D0\t\t0x00000001 /* Enable offload in D0 */\n #define E1000_PROXYFC_EX\t\t0x00000004 /* Directed exact proxy */\ndiff --git a/drivers/net/e1000/base/e1000_hw.h b/drivers/net/e1000/base/e1000_hw.h\nindex b0e7a61..154b9e5 100644\n--- a/drivers/net/e1000/base/e1000_hw.h\n+++ b/drivers/net/e1000/base/e1000_hw.h\n@@ -132,6 +132,10 @@ struct e1000_hw;\n #define E1000_DEV_ID_PCH_LPT_I217_V\t\t0x153B\n #define E1000_DEV_ID_PCH_LPTLP_I218_LM\t\t0x155A\n #define E1000_DEV_ID_PCH_LPTLP_I218_V\t\t0x1559\n+#define E1000_DEV_ID_PCH_I218_LM2\t\t0x15A0\n+#define E1000_DEV_ID_PCH_I218_V2\t\t0x15A1\n+#define E1000_DEV_ID_PCH_I218_LM3\t\t0x15A2 /* Wildcat Point PCH */\n+#define E1000_DEV_ID_PCH_I218_V3\t\t0x15A3 /* Wildcat Point PCH */\n #define E1000_DEV_ID_82576\t\t\t0x10C9\n #define E1000_DEV_ID_82576_FIBER\t\t0x10E6\n #define E1000_DEV_ID_82576_SERDES\t\t0x10E7\ndiff --git a/drivers/net/e1000/base/e1000_ich8lan.c b/drivers/net/e1000/base/e1000_ich8lan.c\nindex f98d54e..6d998df 100644\n--- a/drivers/net/e1000/base/e1000_ich8lan.c\n+++ b/drivers/net/e1000/base/e1000_ich8lan.c\n@@ -62,6 +62,10 @@ POSSIBILITY OF SUCH DAMAGE.\n  * Ethernet Connection I217-V\n  * Ethernet Connection I218-V\n  * Ethernet Connection I218-LM\n+ * Ethernet Connection (2) I218-LM\n+ * Ethernet Connection (2) I218-V\n+ * Ethernet Connection (3) I218-LM\n+ * Ethernet Connection (3) I218-V\n  */\n \n #include \"e1000_api.h\"\n@@ -1052,19 +1056,19 @@ s32 e1000_enable_ulp_lpt_lp(struct e1000_hw *hw, bool to_sx)\n \tif ((hw->mac.type < e1000_pch_lpt) ||\n \t    (hw->device_id == E1000_DEV_ID_PCH_LPT_I217_LM) ||\n \t    (hw->device_id == E1000_DEV_ID_PCH_LPT_I217_V) ||\n+\t    (hw->device_id == E1000_DEV_ID_PCH_I218_LM2) ||\n+\t    (hw->device_id == E1000_DEV_ID_PCH_I218_V2) ||\n \t    (hw->dev_spec.ich8lan.ulp_state == e1000_ulp_state_on))\n \t\treturn 0;\n \n \tif (!to_sx) {\n \t\tint i = 0;\n-\n \t\t/* Poll up to 5 seconds for Cable Disconnected indication */\n \t\twhile (!(E1000_READ_REG(hw, E1000_FEXT) &\n \t\t\t E1000_FEXT_PHY_CABLE_DISCONNECTED)) {\n \t\t\t/* Bail if link is re-acquired */\n \t\t\tif (E1000_READ_REG(hw, E1000_STATUS) & E1000_STATUS_LU)\n \t\t\t\treturn -E1000_ERR_PHY;\n-\n \t\t\tif (i++ == 100)\n \t\t\t\tbreak;\n \n@@ -1197,6 +1201,8 @@ s32 e1000_disable_ulp_lpt_lp(struct e1000_hw *hw, bool force)\n \tif ((hw->mac.type < e1000_pch_lpt) ||\n \t    (hw->device_id == E1000_DEV_ID_PCH_LPT_I217_LM) ||\n \t    (hw->device_id == E1000_DEV_ID_PCH_LPT_I217_V) ||\n+\t    (hw->device_id == E1000_DEV_ID_PCH_I218_LM2) ||\n+\t    (hw->device_id == E1000_DEV_ID_PCH_I218_V2) ||\n \t    (hw->dev_spec.ich8lan.ulp_state == e1000_ulp_state_off))\n \t\treturn 0;\n \n@@ -1452,7 +1458,9 @@ STATIC s32 e1000_check_for_copper_link_ich8lan(struct e1000_hw *hw)\n \n \t/* Work-around I218 hang issue */\n \tif ((hw->device_id == E1000_DEV_ID_PCH_LPTLP_I218_LM) ||\n-\t    (hw->device_id == E1000_DEV_ID_PCH_LPTLP_I218_V)) {\n+\t    (hw->device_id == E1000_DEV_ID_PCH_LPTLP_I218_V) ||\n+\t    (hw->device_id == E1000_DEV_ID_PCH_I218_LM3) ||\n+\t    (hw->device_id == E1000_DEV_ID_PCH_I218_V3)) {\n \t\tret_val = e1000_k1_workaround_lpt_lp(hw, link);\n \t\tif (ret_val)\n \t\t\treturn ret_val;\n@@ -4794,7 +4802,9 @@ void e1000_suspend_workarounds_ich8lan(struct e1000_hw *hw)\n \t\tu16 phy_reg, device_id = hw->device_id;\n \n \t\tif ((device_id == E1000_DEV_ID_PCH_LPTLP_I218_LM) ||\n-\t\t    (device_id == E1000_DEV_ID_PCH_LPTLP_I218_V)) {\n+\t\t    (device_id == E1000_DEV_ID_PCH_LPTLP_I218_V) ||\n+\t\t    (device_id == E1000_DEV_ID_PCH_I218_LM3) ||\n+\t\t    (device_id == E1000_DEV_ID_PCH_I218_V3)) {\n \t\t\tu32 fextnvm6 = E1000_READ_REG(hw, E1000_FEXTNVM6);\n \n \t\t\tE1000_WRITE_REG(hw, E1000_FEXTNVM6,\n",
    "prefixes": [
        "dpdk-dev",
        "v2",
        "02/35"
    ]
}