get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 718666,
    "url": "http://patchwork.ozlabs.org/api/patches/718666/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/intel-wired-lan/patch/20170123165813.13402.29431.stgit@localhost.localdomain/",
    "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": "<20170123165813.13402.29431.stgit@localhost.localdomain>",
    "list_archive_url": null,
    "date": "2017-01-23T16:58:24",
    "name": "[next,v3,2/9] igb: Use length to determine if descriptor is done",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": false,
    "hash": "16f3430aa6b0aceed8d6ed5d6e58ac442800d752",
    "submitter": {
        "id": 252,
        "url": "http://patchwork.ozlabs.org/api/people/252/?format=api",
        "name": "Alexander Duyck",
        "email": "alexander.duyck@gmail.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/20170123165813.13402.29431.stgit@localhost.localdomain/mbox/",
    "series": [],
    "comments": "http://patchwork.ozlabs.org/api/patches/718666/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/718666/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 whitealder.osuosl.org (smtp1.osuosl.org [140.211.166.138])\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 3v6cvp6vvfz9s3T\n\tfor <incoming@patchwork.ozlabs.org>;\n\tTue, 24 Jan 2017 03:58:30 +1100 (AEDT)",
            "from localhost (localhost [127.0.0.1])\n\tby whitealder.osuosl.org (Postfix) with ESMTP id 2DBA687B37;\n\tMon, 23 Jan 2017 16:58:29 +0000 (UTC)",
            "from whitealder.osuosl.org ([127.0.0.1])\n\tby localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024)\n\twith ESMTP id TuPVngamNDC1; Mon, 23 Jan 2017 16:58:28 +0000 (UTC)",
            "from ash.osuosl.org (ash.osuosl.org [140.211.166.34])\n\tby whitealder.osuosl.org (Postfix) with ESMTP id 2C40987B14;\n\tMon, 23 Jan 2017 16:58:28 +0000 (UTC)",
            "from whitealder.osuosl.org (smtp1.osuosl.org [140.211.166.138])\n\tby ash.osuosl.org (Postfix) with ESMTP id 0BB681C07B7\n\tfor <intel-wired-lan@lists.osuosl.org>;\n\tMon, 23 Jan 2017 16:58:27 +0000 (UTC)",
            "from localhost (localhost [127.0.0.1])\n\tby whitealder.osuosl.org (Postfix) with ESMTP id 09CE887AEF\n\tfor <intel-wired-lan@lists.osuosl.org>;\n\tMon, 23 Jan 2017 16:58:27 +0000 (UTC)",
            "from whitealder.osuosl.org ([127.0.0.1])\n\tby localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024)\n\twith ESMTP id AY3SFqXpADNf for <intel-wired-lan@lists.osuosl.org>;\n\tMon, 23 Jan 2017 16:58:26 +0000 (UTC)",
            "from mail-pf0-f194.google.com (mail-pf0-f194.google.com\n\t[209.85.192.194])\n\tby whitealder.osuosl.org (Postfix) with ESMTPS id 7B87787B14\n\tfor <intel-wired-lan@lists.osuosl.org>;\n\tMon, 23 Jan 2017 16:58:26 +0000 (UTC)",
            "by mail-pf0-f194.google.com with SMTP id 19so10326528pfo.3\n\tfor <intel-wired-lan@lists.osuosl.org>;\n\tMon, 23 Jan 2017 08:58:26 -0800 (PST)",
            "from localhost.localdomain ([2001:470:b:9c3:9e5c:8eff:fe4f:f2d0])\n\tby smtp.gmail.com with ESMTPSA id\n\tn8sm38562307pgc.0.2017.01.23.08.58.25\n\t(version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);\n\tMon, 23 Jan 2017 08:58:25 -0800 (PST)"
        ],
        "Authentication-Results": "ozlabs.org;\n\tdkim=fail reason=\"signature verification failed\" (2048-bit key;\n\tunprotected) header.d=gmail.com header.i=@gmail.com\n\theader.b=\"jqGJpenS\"; dkim-atps=neutral",
        "X-Virus-Scanned": [
            "amavisd-new at osuosl.org",
            "amavisd-new at osuosl.org"
        ],
        "X-Greylist": "domain auto-whitelisted by SQLgrey-1.7.6",
        "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;\n\th=subject:from:to:date:message-id:in-reply-to:references:user-agent\n\t:mime-version:content-transfer-encoding;\n\tbh=YF8QNKy9QKui0AYvdEvDeD3NA2GpuXbgcnkOjW46jVI=;\n\tb=jqGJpenSRm0qqSu4iL+JprbGmHyKf1cN9c1r/D/Gv3EGZRPrGiYqbqMDOeJHUnsZtz\n\t3SsrjT8au7Ocy9vfTMySYRUiXY7dlI3AXQg9VuO7AYHt6QVvxNUKWy23vKw26N3Mexhm\n\tw5jzWbWB4/arlof6OnrBAu1iqLUUCkt1ye6UQiUMxktDd32DeKEKcMxLykSmT6MDRK4x\n\tTViaEY5rM31nSuiHh4jukQA97TZCLoXjVu6VVqnf48zy+mRbgHB+p+IuauEa+BQizAdk\n\tdJAR+ftDPqZMd423oPm/UecW6vtJJF60l+yUMijdBr9HeOl8N1yyIcCsUE7bYhp9lCn6\n\tWKkA==",
        "X-Google-DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n\td=1e100.net; s=20161025;\n\th=x-gm-message-state:subject:from:to:date:message-id:in-reply-to\n\t:references:user-agent:mime-version:content-transfer-encoding;\n\tbh=YF8QNKy9QKui0AYvdEvDeD3NA2GpuXbgcnkOjW46jVI=;\n\tb=sHC9SOpPzhHrRtRQzy3TLMS0ZOLu/wywokpiqOOvSbfOSjMu6QjPGvMoRbwkoHFiRX\n\t7WJNLhsqWJDGiYEpnibcpX8qZ3pgJXcGxNLTRERhU7xvd0mX5AgSoo9tyqwVzAjrYmj8\n\tFESArtcZzwsYUcw5KbSup1bXmBmAWkmSTz1qCBzPDYTzf4ite6QTU7KZo1T4X/qgDfIc\n\thozERwrt0IcgTxk+zRwuL0m2Glavvj8Dyt5i8XZOngPav/y15nyXOR49VXnkZf1XZhxG\n\tfPm7kCx+7pwlmdXNIeD4bNsUfFv/hpTnVLt10MltBHQjtQ0iN7cnsKkyL9RGTEQDEJlc\n\tntrg==",
        "X-Gm-Message-State": "AIkVDXJeq2YZ19/xrjC0kLEEl0Z4lFBrMJKgsQmnr2tZhhK5JH4f98GMAS0rF8OGN3cLGQ==",
        "X-Received": "by 10.84.138.165 with SMTP id 34mr44695299plp.37.1485190706114; \n\tMon, 23 Jan 2017 08:58:26 -0800 (PST)",
        "From": "Alexander Duyck <alexander.duyck@gmail.com>",
        "To": "intel-wired-lan@lists.osuosl.org, jeffrey.t.kirsher@intel.com",
        "Date": "Mon, 23 Jan 2017 08:58:24 -0800",
        "Message-ID": "<20170123165813.13402.29431.stgit@localhost.localdomain>",
        "In-Reply-To": "<20170123165647.13402.1254.stgit@localhost.localdomain>",
        "References": "<20170123165647.13402.1254.stgit@localhost.localdomain>",
        "User-Agent": "StGit/0.17.1-dirty",
        "MIME-Version": "1.0",
        "Subject": "[Intel-wired-lan] [next PATCH v3 2/9] igb: Use length to determine\n\tif descriptor is done",
        "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>",
        "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": "From: Alexander Duyck <alexander.h.duyck@intel.com>\n\nThis change makes it so that we use the length of the packet instead of the\nDD status bit to determine if a new descriptor is ready to be processed.\nThe obvious advantage is that it cuts down on reads as we don't really even\nneed the DD bit if going from a 0 to a non-zero value on size is enough to\ninform us that the packet has been completed.\n\nIn addition I have updated the code so that we only reset the Rx descriptor\nlength for descriptor zero when resetting a ring instead of having to do a\nmemset with 0 over the entire ring.  By doing this we can save some time on\ninitialization.\n\nSigned-off-by: Alexander Duyck <alexander.h.duyck@intel.com>\n---\n\nv2: Update ethtool loopback test to use length check instead of DD check\n\n drivers/net/ethernet/intel/igb/igb_ethtool.c |    2 +-\n drivers/net/ethernet/intel/igb/igb_main.c    |   14 ++++++++------\n 2 files changed, 9 insertions(+), 7 deletions(-)",
    "diff": "diff --git a/drivers/net/ethernet/intel/igb/igb_ethtool.c b/drivers/net/ethernet/intel/igb/igb_ethtool.c\nindex 737b664d004c..3f5f7744c90f 100644\n--- a/drivers/net/ethernet/intel/igb/igb_ethtool.c\n+++ b/drivers/net/ethernet/intel/igb/igb_ethtool.c\n@@ -1811,7 +1811,7 @@ static int igb_clean_test_rings(struct igb_ring *rx_ring,\n \ttx_ntc = tx_ring->next_to_clean;\n \trx_desc = IGB_RX_DESC(rx_ring, rx_ntc);\n \n-\twhile (igb_test_staterr(rx_desc, E1000_RXD_STAT_DD)) {\n+\twhile (rx_desc->wb.upper.length) {\n \t\t/* check Rx buffer */\n \t\trx_buffer_info = &rx_ring->rx_buffer_info[rx_ntc];\n \ndiff --git a/drivers/net/ethernet/intel/igb/igb_main.c b/drivers/net/ethernet/intel/igb/igb_main.c\nindex eede6db6037c..91a524b155ce 100644\n--- a/drivers/net/ethernet/intel/igb/igb_main.c\n+++ b/drivers/net/ethernet/intel/igb/igb_main.c\n@@ -3720,6 +3720,7 @@ void igb_configure_rx_ring(struct igb_adapter *adapter,\n \t\t\t   struct igb_ring *ring)\n {\n \tstruct e1000_hw *hw = &adapter->hw;\n+\tunion e1000_adv_rx_desc *rx_desc;\n \tu64 rdba = ring->dma;\n \tint reg_idx = ring->reg_idx;\n \tu32 srrctl = 0, rxdctl = 0;\n@@ -3758,6 +3759,10 @@ void igb_configure_rx_ring(struct igb_adapter *adapter,\n \trxdctl |= IGB_RX_HTHRESH << 8;\n \trxdctl |= IGB_RX_WTHRESH << 16;\n \n+\t/* initialize Rx descriptor 0 */\n+\trx_desc = IGB_RX_DESC(ring, 0);\n+\trx_desc->wb.upper.length = 0;\n+\n \t/* enable receive descriptor fetching */\n \trxdctl |= E1000_RXDCTL_QUEUE_ENABLE;\n \twr32(E1000_RXDCTL(reg_idx), rxdctl);\n@@ -3973,9 +3978,6 @@ static void igb_clean_rx_ring(struct igb_ring *rx_ring)\n \tsize = sizeof(struct igb_rx_buffer) * rx_ring->count;\n \tmemset(rx_ring->rx_buffer_info, 0, size);\n \n-\t/* Zero out the descriptor ring */\n-\tmemset(rx_ring->desc, 0, rx_ring->size);\n-\n \trx_ring->next_to_alloc = 0;\n \trx_ring->next_to_clean = 0;\n \trx_ring->next_to_use = 0;\n@@ -7174,7 +7176,7 @@ static int igb_clean_rx_irq(struct igb_q_vector *q_vector, const int budget)\n \n \t\trx_desc = IGB_RX_DESC(rx_ring, rx_ring->next_to_clean);\n \n-\t\tif (!rx_desc->wb.upper.status_error)\n+\t\tif (!rx_desc->wb.upper.length)\n \t\t\tbreak;\n \n \t\t/* This memory barrier is needed to keep us from reading\n@@ -7314,8 +7316,8 @@ void igb_alloc_rx_buffers(struct igb_ring *rx_ring, u16 cleaned_count)\n \t\t\ti -= rx_ring->count;\n \t\t}\n \n-\t\t/* clear the status bits for the next_to_use descriptor */\n-\t\trx_desc->wb.upper.status_error = 0;\n+\t\t/* clear the length for the next_to_use descriptor */\n+\t\trx_desc->wb.upper.length = 0;\n \n \t\tcleaned_count--;\n \t} while (cleaned_count);\n",
    "prefixes": [
        "next",
        "v3",
        "2/9"
    ]
}