Show a patch.

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

{
    "id": 320,
    "url": "https://patches.dpdk.org/api/patches/320/",
    "web_url": "https://patches.dpdk.org/patch/320/",
    "project": {
        "id": 1,
        "url": "https://patches.dpdk.org/api/projects/1/",
        "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-5-git-send-email-helin.zhang@intel.com>",
    "date": "2014-09-09T07:21:28",
    "name": "[dpdk-dev,04/15] i40e: remove test code for 'ethtool'",
    "commit_ref": null,
    "pull_url": null,
    "state": "accepted",
    "archived": true,
    "hash": "6b97d69d6b0020a59b495bce4a3c366d071767f9",
    "submitter": {
        "id": 14,
        "url": "https://patches.dpdk.org/api/people/14/",
        "name": "Helin Zhang",
        "email": "helin.zhang@intel.com"
    },
    "delegate": null,
    "mbox": "https://patches.dpdk.org/patch/320/mbox/",
    "series": [],
    "comments": "https://patches.dpdk.org/api/patches/320/comments/",
    "check": "pending",
    "checks": "https://patches.dpdk.org/api/patches/320/checks/",
    "tags": {},
    "headers": {
        "Delivered-To": "patchwork@dpdk.org",
        "List-Subscribe": "<http://dpdk.org/ml/listinfo/dev>,\n\t<mailto:dev-request@dpdk.org?subject=subscribe>",
        "X-Original-To": "patchwork@dpdk.org",
        "Date": "Tue,  9 Sep 2014 15:21:28 +0800",
        "In-Reply-To": "<1410247299-4365-1-git-send-email-helin.zhang@intel.com>",
        "Precedence": "list",
        "X-BeenThere": "dev@dpdk.org",
        "References": "<1410247299-4365-1-git-send-email-helin.zhang@intel.com>",
        "X-Mailer": "git-send-email 1.7.4.1",
        "List-Archive": "<http://dpdk.org/ml/archives/dev/>",
        "To": "dev@dpdk.org",
        "Errors-To": "dev-bounces@dpdk.org",
        "Received": [
            "from [92.243.14.124] (localhost [IPv6:::1])\n\tby dpdk.org (Postfix) with ESMTP id 64537B3AF;\n\tTue,  9 Sep 2014 09:17:02 +0200 (CEST)",
            "from mga11.intel.com (mga11.intel.com [192.55.52.93])\n\tby dpdk.org (Postfix) with ESMTP id 96E79B399\n\tfor <dev@dpdk.org>; Tue,  9 Sep 2014 09:16:58 +0200 (CEST)",
            "from fmsmga002.fm.intel.com ([10.253.24.26])\n\tby fmsmga102.fm.intel.com with ESMTP; 09 Sep 2014 00:22:00 -0700",
            "from shvmail01.sh.intel.com ([10.239.29.42])\n\tby fmsmga002.fm.intel.com with ESMTP; 09 Sep 2014 00:21: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 s897Lwwf008484;\n\tTue, 9 Sep 2014 15:21:58 +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 s897LumM004453; Tue, 9 Sep 2014 15:21:58 +0800",
            "(from hzhan75@localhost)\n\tby shecgisg004.sh.intel.com (8.13.6/8.13.6/Submit) id s897LtZY004449; \n\tTue, 9 Sep 2014 15:21:55 +0800"
        ],
        "From": "Helin Zhang <helin.zhang@intel.com>",
        "List-Help": "<mailto:dev-request@dpdk.org?subject=help>",
        "X-ExtLoop1": "1",
        "Message-Id": "<1410247299-4365-5-git-send-email-helin.zhang@intel.com>",
        "Sender": "\"dev\" <dev-bounces@dpdk.org>",
        "List-Id": "patches and discussions about DPDK <dev.dpdk.org>",
        "Subject": "[dpdk-dev] [PATCH 04/15] i40e: remove test code for 'ethtool'",
        "List-Unsubscribe": "<http://dpdk.org/ml/options/dev>,\n\t<mailto:dev-request@dpdk.org?subject=unsubscribe>",
        "Return-Path": "<dev-bounces@dpdk.org>",
        "X-IronPort-AV": "E=Sophos;i=\"5.04,491,1406617200\"; d=\"scan'208\";a=\"596669317\"",
        "List-Post": "<mailto:dev@dpdk.org>",
        "X-Mailman-Version": "2.1.15"
    },
    "content": "The code wrapped in '#ifdef ETHTOOL_TEST' in i40e_diag.c is for\nethtool testing only, it is not needed anymore and can be removed.\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_diag.c | 10 ----------\n 1 file changed, 10 deletions(-)",
    "diff": "diff --git a/lib/librte_pmd_i40e/i40e/i40e_diag.c b/lib/librte_pmd_i40e/i40e/i40e_diag.c\nindex f24bf81..167fcf8 100644\n--- a/lib/librte_pmd_i40e/i40e/i40e_diag.c\n+++ b/lib/librte_pmd_i40e/i40e/i40e_diag.c\n@@ -71,11 +71,6 @@ static enum i40e_status_code i40e_diag_reg_pattern_test(struct i40e_hw *hw,\n \t\twr32(hw, reg, (pat & mask));\n \t\tval = rd32(hw, reg);\n \t\tif ((val & mask) != (pat & mask)) {\n-#ifdef ETHTOOL_TEST\n-\t\t\ti40e_debug(hw, I40E_DEBUG_DIAG,\n-\t\t\t\t   \"%s: reg pattern test failed - reg 0x%08x pat 0x%08x val 0x%08x\\n\",\n-\t\t\t\t   __func__, reg, pat, val);\n-#endif\n \t\t\treturn I40E_ERR_DIAG_TEST_FAILED;\n \t\t}\n \t}\n@@ -83,11 +78,6 @@ static enum i40e_status_code i40e_diag_reg_pattern_test(struct i40e_hw *hw,\n \twr32(hw, reg, orig_val);\n \tval = rd32(hw, reg);\n \tif (val != orig_val) {\n-#ifdef ETHTOOL_TEST\n-\t\ti40e_debug(hw, I40E_DEBUG_DIAG,\n-\t\t\t   \"%s: reg restore test failed - reg 0x%08x orig_val 0x%08x val 0x%08x\\n\",\n-\t\t\t   __func__, reg, orig_val, val);\n-#endif\n \t\treturn I40E_ERR_DIAG_TEST_FAILED;\n \t}\n \n",
    "prefixes": [
        "dpdk-dev",
        "04/15"
    ]
}