get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 652858,
    "url": "http://patchwork.ozlabs.org/api/patches/652858/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/intel-wired-lan/patch/1469554746-410-1-git-send-email-jarod@redhat.com/",
    "project": {
        "id": 46,
        "url": "http://patchwork.ozlabs.org/api/projects/46/?format=api",
        "name": "Intel Wired Ethernet development",
        "link_name": "intel-wired-lan",
        "list_id": "intel-wired-lan.osuosl.org",
        "list_email": "intel-wired-lan@osuosl.org",
        "web_url": "",
        "scm_url": "",
        "webscm_url": "",
        "list_archive_url": "",
        "list_archive_url_format": "",
        "commit_url_format": ""
    },
    "msgid": "<1469554746-410-1-git-send-email-jarod@redhat.com>",
    "list_archive_url": null,
    "date": "2016-07-26T17:39:06",
    "name": "[net-next,3/2] e1000e: convert systim overflow check to use flags2",
    "commit_ref": null,
    "pull_url": null,
    "state": "changes-requested",
    "archived": false,
    "hash": "cd0fd8046c201a46ae3d561ab9065a42eb33ca50",
    "submitter": {
        "id": 1153,
        "url": "http://patchwork.ozlabs.org/api/people/1153/?format=api",
        "name": "Jarod Wilson",
        "email": "jarod@redhat.com"
    },
    "delegate": {
        "id": 68,
        "url": "http://patchwork.ozlabs.org/api/users/68/?format=api",
        "username": "jtkirshe",
        "first_name": "Jeff",
        "last_name": "Kirsher",
        "email": "jeffrey.t.kirsher@intel.com"
    },
    "mbox": "http://patchwork.ozlabs.org/project/intel-wired-lan/patch/1469554746-410-1-git-send-email-jarod@redhat.com/mbox/",
    "series": [],
    "comments": "http://patchwork.ozlabs.org/api/patches/652858/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/652858/checks/",
    "tags": {},
    "related": [],
    "headers": {
        "Return-Path": "<intel-wired-lan-bounces@lists.osuosl.org>",
        "X-Original-To": [
            "incoming@patchwork.ozlabs.org",
            "intel-wired-lan@lists.osuosl.org"
        ],
        "Delivered-To": [
            "patchwork-incoming@bilbo.ozlabs.org",
            "intel-wired-lan@lists.osuosl.org"
        ],
        "Received": [
            "from hemlock.osuosl.org (smtp2.osuosl.org [140.211.166.133])\n\t(using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits))\n\t(No client certificate requested)\n\tby ozlabs.org (Postfix) with ESMTPS id 3rzQNw6szSz9t1D\n\tfor <incoming@patchwork.ozlabs.org>;\n\tWed, 27 Jul 2016 03:39:44 +1000 (AEST)",
            "from localhost (localhost [127.0.0.1])\n\tby hemlock.osuosl.org (Postfix) with ESMTP id 3149987F11;\n\tTue, 26 Jul 2016 17:39:43 +0000 (UTC)",
            "from hemlock.osuosl.org ([127.0.0.1])\n\tby localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024)\n\twith ESMTP id rL94DmVSDkE9; Tue, 26 Jul 2016 17:39:39 +0000 (UTC)",
            "from ash.osuosl.org (ash.osuosl.org [140.211.166.34])\n\tby hemlock.osuosl.org (Postfix) with ESMTP id AE59387EEA;\n\tTue, 26 Jul 2016 17:39:39 +0000 (UTC)",
            "from fraxinus.osuosl.org (smtp4.osuosl.org [140.211.166.137])\n\tby ash.osuosl.org (Postfix) with ESMTP id 728921C0DFE\n\tfor <intel-wired-lan@lists.osuosl.org>;\n\tTue, 26 Jul 2016 17:39:38 +0000 (UTC)",
            "from localhost (localhost [127.0.0.1])\n\tby fraxinus.osuosl.org (Postfix) with ESMTP id 6D5A685BC0\n\tfor <intel-wired-lan@lists.osuosl.org>;\n\tTue, 26 Jul 2016 17:39:38 +0000 (UTC)",
            "from fraxinus.osuosl.org ([127.0.0.1])\n\tby localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024)\n\twith ESMTP id gy12iuJCwVOi for <intel-wired-lan@lists.osuosl.org>;\n\tTue, 26 Jul 2016 17:39:36 +0000 (UTC)",
            "from mx1.redhat.com (mx1.redhat.com [209.132.183.28])\n\tby fraxinus.osuosl.org (Postfix) with ESMTPS id C58E9852B3\n\tfor <intel-wired-lan@lists.osuosl.org>;\n\tTue, 26 Jul 2016 17:39:36 +0000 (UTC)",
            "from int-mx14.intmail.prod.int.phx2.redhat.com\n\t(int-mx14.intmail.prod.int.phx2.redhat.com [10.5.11.27])\n\t(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256\n\tbits)) (No client certificate requested)\n\tby mx1.redhat.com (Postfix) with ESMTPS id CFE89468;\n\tTue, 26 Jul 2016 17:39:35 +0000 (UTC)",
            "from hp-dl360pgen8-07.khw.lab.eng.bos.redhat.com\n\t(hp-dl360pgen8-07.khw.lab.eng.bos.redhat.com [10.16.184.47])\n\tby int-mx14.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with\n\tESMTP id u6QHdYxG015351; Tue, 26 Jul 2016 13:39:34 -0400"
        ],
        "X-Virus-Scanned": [
            "amavisd-new at osuosl.org",
            "amavisd-new at osuosl.org"
        ],
        "X-Greylist": [
            "domain auto-whitelisted by SQLgrey-1.7.6",
            "Sender IP whitelisted, not delayed by milter-greylist-4.5.16\n\t(mx1.redhat.com [10.5.110.29]); Tue, 26 Jul 2016 17:39:35 +0000 (UTC)"
        ],
        "From": "Jarod Wilson <jarod@redhat.com>",
        "To": "linux-kernel@vger.kernel.org",
        "Date": "Tue, 26 Jul 2016 13:39:06 -0400",
        "Message-Id": "<1469554746-410-1-git-send-email-jarod@redhat.com>",
        "In-Reply-To": "<20160725105648.00000dda@unknown>",
        "References": "<20160725105648.00000dda@unknown>",
        "X-Scanned-By": "MIMEDefang 2.68 on 10.5.11.27",
        "Cc": "netdev@vger.kernel.org, intel-wired-lan@lists.osuosl.org",
        "Subject": "[Intel-wired-lan] [PATCH net-next 3/2] e1000e: convert systim\n\toverflow check to use flags2",
        "X-BeenThere": "intel-wired-lan@lists.osuosl.org",
        "X-Mailman-Version": "2.1.18-1",
        "Precedence": "list",
        "List-Id": "Intel Wired Ethernet Linux Kernel Driver Development\n\t<intel-wired-lan.lists.osuosl.org>",
        "List-Unsubscribe": "<http://lists.osuosl.org/mailman/options/intel-wired-lan>, \n\t<mailto:intel-wired-lan-request@lists.osuosl.org?subject=unsubscribe>",
        "List-Archive": "<http://lists.osuosl.org/pipermail/intel-wired-lan/>",
        "List-Post": "<mailto:intel-wired-lan@lists.osuosl.org>",
        "List-Help": "<mailto:intel-wired-lan-request@lists.osuosl.org?subject=help>",
        "List-Subscribe": "<http://lists.osuosl.org/mailman/listinfo/intel-wired-lan>, \n\t<mailto:intel-wired-lan-request@lists.osuosl.org?subject=subscribe>",
        "MIME-Version": "1.0",
        "Content-Type": "text/plain; charset=\"us-ascii\"",
        "Content-Transfer-Encoding": "7bit",
        "Errors-To": "intel-wired-lan-bounces@lists.osuosl.org",
        "Sender": "\"Intel-wired-lan\" <intel-wired-lan-bounces@lists.osuosl.org>"
    },
    "content": "Per Jesse Brandeburg, e1000e should be using flags for this sort of thing.\n\nLittering functional code with device-specific checks is much messier than\nsimply checking a flag, and having device-specific init set flags as needed.\nThere are probably a number of other cases in the e1000e code that\ncould/should be converted similarly.\n\nAt present, this patch is a follow-up to the previously submitted 2\npatches, but I can redo the series to omit the conversion to a switch\nentirely, if so desired.\n\nSuggested-by: Jesse Brandeburg <jesse.brandeburg@intel.com>\nCC: Jesse Brandeburg <jesse.brandeburg@intel.com>\nCC: Jeff Kirsher <jeffrey.t.kirsher@intel.com>\nCC: intel-wired-lan@lists.osuosl.org\nCC: netdev@vger.kernel.org\nSigned-off-by: Jarod Wilson <jarod@redhat.com>\n---\n drivers/net/ethernet/intel/e1000e/82571.c   |  6 ++++--\n drivers/net/ethernet/intel/e1000e/e1000.h   |  1 +\n drivers/net/ethernet/intel/e1000e/ich8lan.c |  3 ++-\n drivers/net/ethernet/intel/e1000e/netdev.c  | 10 ++--------\n 4 files changed, 9 insertions(+), 11 deletions(-)",
    "diff": "diff --git a/drivers/net/ethernet/intel/e1000e/82571.c b/drivers/net/ethernet/intel/e1000e/82571.c\nindex 7fd4d54..6b03c85 100644\n--- a/drivers/net/ethernet/intel/e1000e/82571.c\n+++ b/drivers/net/ethernet/intel/e1000e/82571.c\n@@ -2032,7 +2032,8 @@ const struct e1000_info e1000_82574_info = {\n \t\t\t\t  | FLAG2_DISABLE_ASPM_L0S\n \t\t\t\t  | FLAG2_DISABLE_ASPM_L1\n \t\t\t\t  | FLAG2_NO_DISABLE_RX\n-\t\t\t\t  | FLAG2_DMA_BURST,\n+\t\t\t\t  | FLAG2_DMA_BURST\n+\t\t\t\t  | FLAG2_CHECK_SYSTIM_OVERFLOW,\n \t.pba\t\t\t= 32,\n \t.max_hw_frame_size\t= DEFAULT_JUMBO,\n \t.get_variants\t\t= e1000_get_variants_82571,\n@@ -2053,7 +2054,8 @@ const struct e1000_info e1000_82583_info = {\n \t\t\t\t  | FLAG_HAS_CTRLEXT_ON_LOAD,\n \t.flags2\t\t\t= FLAG2_DISABLE_ASPM_L0S\n \t\t\t\t  | FLAG2_DISABLE_ASPM_L1\n-\t\t\t\t  | FLAG2_NO_DISABLE_RX,\n+\t\t\t\t  | FLAG2_NO_DISABLE_RX\n+\t\t\t\t  | FLAG2_CHECK_SYSTIM_OVERFLOW,\n \t.pba\t\t\t= 32,\n \t.max_hw_frame_size\t= DEFAULT_JUMBO,\n \t.get_variants\t\t= e1000_get_variants_82571,\ndiff --git a/drivers/net/ethernet/intel/e1000e/e1000.h b/drivers/net/ethernet/intel/e1000e/e1000.h\nindex ef96cd1..879cca4 100644\n--- a/drivers/net/ethernet/intel/e1000e/e1000.h\n+++ b/drivers/net/ethernet/intel/e1000e/e1000.h\n@@ -452,6 +452,7 @@ s32 e1000e_get_base_timinca(struct e1000_adapter *adapter, u32 *timinca);\n #define FLAG2_PCIM2PCI_ARBITER_WA         BIT(11)\n #define FLAG2_DFLT_CRC_STRIPPING          BIT(12)\n #define FLAG2_CHECK_RX_HWTSTAMP           BIT(13)\n+#define FLAG2_CHECK_SYSTIM_OVERFLOW       BIT(14)\n \n #define E1000_RX_DESC_PS(R, i)\t    \\\n \t(&(((union e1000_rx_desc_packet_split *)((R).desc))[i]))\ndiff --git a/drivers/net/ethernet/intel/e1000e/ich8lan.c b/drivers/net/ethernet/intel/e1000e/ich8lan.c\nindex 3e11322..395ca26 100644\n--- a/drivers/net/ethernet/intel/e1000e/ich8lan.c\n+++ b/drivers/net/ethernet/intel/e1000e/ich8lan.c\n@@ -5885,7 +5885,8 @@ const struct e1000_info e1000_pch_lpt_info = {\n \t\t\t\t  | FLAG_HAS_JUMBO_FRAMES\n \t\t\t\t  | FLAG_APME_IN_WUC,\n \t.flags2\t\t\t= FLAG2_HAS_PHY_STATS\n-\t\t\t\t  | FLAG2_HAS_EEE,\n+\t\t\t\t  | FLAG2_HAS_EEE\n+\t\t\t\t  | FLAGS2_CHECK_SYSTIM_OVERFLOW,\n \t.pba\t\t\t= 26,\n \t.max_hw_frame_size\t= 9022,\n \t.get_variants\t\t= e1000_get_variants_ich8lan,\ndiff --git a/drivers/net/ethernet/intel/e1000e/netdev.c b/drivers/net/ethernet/intel/e1000e/netdev.c\nindex 206bd6a..1b2df11 100644\n--- a/drivers/net/ethernet/intel/e1000e/netdev.c\n+++ b/drivers/net/ethernet/intel/e1000e/netdev.c\n@@ -4371,15 +4371,9 @@ static cycle_t e1000e_cyclecounter_read(const struct cyclecounter *cc)\n \tsystim = (cycle_t)systimel;\n \tsystim |= (cycle_t)systimeh << 32;\n \n-\tswitch (hw->mac.type) {\n-\tcase e1000_82574:\n-\tcase e1000_82583:\n-\tcase e1000_pch_lpt:\n+\tif (adapter->flags2 & FLAG2_CHECK_SYSTIM_OVERFLOW)\n \t\tsystim = e1000e_sanitize_systim(hw, systim);\n-\t\tbreak;\n-\tdefault:\n-\t\tbreak;\n-\t}\n+\n \treturn systim;\n }\n \n",
    "prefixes": [
        "net-next",
        "3/2"
    ]
}