get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 636135,
    "url": "http://patchwork.ozlabs.org/api/patches/636135/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/intel-wired-lan/patch/37ccedd746ed932b9d73eff592f324f2a3fc6c6f.1465995724.git.pabeni@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": "<37ccedd746ed932b9d73eff592f324f2a3fc6c6f.1465995724.git.pabeni@redhat.com>",
    "list_archive_url": null,
    "date": "2016-06-15T13:37:59",
    "name": "[net] ixgbe: napi_poll must return the work done",
    "commit_ref": null,
    "pull_url": null,
    "state": "accepted",
    "archived": false,
    "hash": "25110491853a67a317f21bc87a0a328f8c59bf2f",
    "submitter": {
        "id": 67312,
        "url": "http://patchwork.ozlabs.org/api/people/67312/?format=api",
        "name": "Paolo Abeni",
        "email": "pabeni@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/37ccedd746ed932b9d73eff592f324f2a3fc6c6f.1465995724.git.pabeni@redhat.com/mbox/",
    "series": [],
    "comments": "http://patchwork.ozlabs.org/api/patches/636135/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/636135/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 3rVNDc4Nyjz9t0l\n\tfor <incoming@patchwork.ozlabs.org>;\n\tThu, 16 Jun 2016 09:35:44 +1000 (AEST)",
            "from localhost (localhost [127.0.0.1])\n\tby hemlock.osuosl.org (Postfix) with ESMTP id C4AEC957AB;\n\tWed, 15 Jun 2016 23:35:42 +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 Q5gs98Wvjqw3; Wed, 15 Jun 2016 23:35:41 +0000 (UTC)",
            "from ash.osuosl.org (ash.osuosl.org [140.211.166.34])\n\tby hemlock.osuosl.org (Postfix) with ESMTP id D9143957AA;\n\tWed, 15 Jun 2016 23:35:41 +0000 (UTC)",
            "from whitealder.osuosl.org (smtp1.osuosl.org [140.211.166.138])\n\tby ash.osuosl.org (Postfix) with ESMTP id 97C481C150D\n\tfor <intel-wired-lan@lists.osuosl.org>;\n\tWed, 15 Jun 2016 13:38:09 +0000 (UTC)",
            "from localhost (localhost [127.0.0.1])\n\tby whitealder.osuosl.org (Postfix) with ESMTP id 927088723A\n\tfor <intel-wired-lan@lists.osuosl.org>;\n\tWed, 15 Jun 2016 13:38:09 +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 HWTs7owZyGIb for <intel-wired-lan@lists.osuosl.org>;\n\tWed, 15 Jun 2016 13:38:08 +0000 (UTC)",
            "from mx1.redhat.com (mx1.redhat.com [209.132.183.28])\n\tby whitealder.osuosl.org (Postfix) with ESMTPS id E0ADD87643\n\tfor <intel-wired-lan@lists.osuosl.org>;\n\tWed, 15 Jun 2016 13:38:08 +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 0A9D263315;\n\tWed, 15 Jun 2016 13:38:08 +0000 (UTC)",
            "from dhcp-176-88.mxp.redhat.com (dhcp-176-88.mxp.redhat.com\n\t[10.32.176.88])\n\tby int-mx14.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with\n\tESMTP id u5FDc60g027705; Wed, 15 Jun 2016 09:38:06 -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.39]); Wed, 15 Jun 2016 13:38:08 +0000 (UTC)"
        ],
        "From": "Paolo Abeni <pabeni@redhat.com>",
        "To": "netdev@vger.kernel.org",
        "Date": "Wed, 15 Jun 2016 15:37:59 +0200",
        "Message-Id": "<37ccedd746ed932b9d73eff592f324f2a3fc6c6f.1465995724.git.pabeni@redhat.com>",
        "X-Scanned-By": "MIMEDefang 2.68 on 10.5.11.27",
        "X-Mailman-Approved-At": "Wed, 15 Jun 2016 23:35:41 +0000",
        "Cc": "Hannes Frederic Sowa <hannes@redhat.com>,\n\tintel-wired-lan@lists.osuosl.org, \n\t\"David S. Miller\" <davem@davemloft.net>",
        "Subject": "[Intel-wired-lan] [PATCH net] ixgbe: napi_poll must return the work\n\tdone",
        "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": "Currently the function ixgbe_poll() returns 0 when it clean completely\nthe rx rings, but this foul budget accounting in core code.\nFix this returning the actual work done, capped to weight - 1, since\nthe core doesn't allow to return the full budget when the driver modifies\nthe napi status\n\nSigned-off-by: Paolo Abeni <pabeni@redhat.com>\n---\n drivers/net/ethernet/intel/ixgbe/ixgbe_main.c | 2 +-\n 1 file changed, 1 insertion(+), 1 deletion(-)",
    "diff": "diff --git a/drivers/net/ethernet/intel/ixgbe/ixgbe_main.c b/drivers/net/ethernet/intel/ixgbe/ixgbe_main.c\nindex 088c47c..8bebd86 100644\n--- a/drivers/net/ethernet/intel/ixgbe/ixgbe_main.c\n+++ b/drivers/net/ethernet/intel/ixgbe/ixgbe_main.c\n@@ -2887,7 +2887,7 @@ int ixgbe_poll(struct napi_struct *napi, int budget)\n \tif (!test_bit(__IXGBE_DOWN, &adapter->state))\n \t\tixgbe_irq_enable_queues(adapter, BIT_ULL(q_vector->v_idx));\n \n-\treturn 0;\n+\treturn min(work_done, budget - 1);\n }\n \n /**\n",
    "prefixes": [
        "net"
    ]
}