get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 1161190,
    "url": "http://patchwork.ozlabs.org/api/patches/1161190/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/intel-wired-lan/patch/20190911172435.21042-2-ciara.loftus@intel.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": "<20190911172435.21042-2-ciara.loftus@intel.com>",
    "list_archive_url": null,
    "date": "2019-09-11T17:24:34",
    "name": "[bpf-next,2/3] ixgbe: fix xdp handle calculations",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": false,
    "hash": "b762906ee07fb3a9c02ea27c9726c037260ca0fd",
    "submitter": {
        "id": 67255,
        "url": "http://patchwork.ozlabs.org/api/people/67255/?format=api",
        "name": "Ciara Loftus",
        "email": "ciara.loftus@intel.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/20190911172435.21042-2-ciara.loftus@intel.com/mbox/",
    "series": [
        {
            "id": 130267,
            "url": "http://patchwork.ozlabs.org/api/series/130267/?format=api",
            "web_url": "http://patchwork.ozlabs.org/project/intel-wired-lan/list/?series=130267",
            "date": "2019-09-11T17:24:35",
            "name": "[bpf-next,1/3] i40e: fix xdp handle calculations",
            "version": 1,
            "mbox": "http://patchwork.ozlabs.org/series/130267/mbox/"
        }
    ],
    "comments": "http://patchwork.ozlabs.org/api/patches/1161190/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/1161190/checks/",
    "tags": {},
    "related": [],
    "headers": {
        "Return-Path": "<intel-wired-lan-bounces@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"
        ],
        "Authentication-Results": [
            "ozlabs.org;\n\tspf=pass (mailfrom) smtp.mailfrom=osuosl.org\n\t(client-ip=140.211.166.137; helo=fraxinus.osuosl.org;\n\tenvelope-from=intel-wired-lan-bounces@osuosl.org;\n\treceiver=<UNKNOWN>)",
            "ozlabs.org;\n\tdmarc=fail (p=none dis=none) header.from=intel.com"
        ],
        "Received": [
            "from fraxinus.osuosl.org (smtp4.osuosl.org [140.211.166.137])\n\t(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256\n\tbits)) (No client certificate requested)\n\tby ozlabs.org (Postfix) with ESMTPS id 46T91258p9z9sNT\n\tfor <incoming@patchwork.ozlabs.org>;\n\tThu, 12 Sep 2019 04:10:14 +1000 (AEST)",
            "from localhost (localhost [127.0.0.1])\n\tby fraxinus.osuosl.org (Postfix) with ESMTP id E92A684471;\n\tWed, 11 Sep 2019 18:10:11 +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 j79cpfFoz4Cq; Wed, 11 Sep 2019 18:10:10 +0000 (UTC)",
            "from ash.osuosl.org (ash.osuosl.org [140.211.166.34])\n\tby fraxinus.osuosl.org (Postfix) with ESMTP id 26CF785FC9;\n\tWed, 11 Sep 2019 18:10:10 +0000 (UTC)",
            "from whitealder.osuosl.org (smtp1.osuosl.org [140.211.166.138])\n\tby ash.osuosl.org (Postfix) with ESMTP id 2CED91BF59B\n\tfor <intel-wired-lan@lists.osuosl.org>;\n\tWed, 11 Sep 2019 17:26:46 +0000 (UTC)",
            "from localhost (localhost [127.0.0.1])\n\tby whitealder.osuosl.org (Postfix) with ESMTP id 29804860D6\n\tfor <intel-wired-lan@lists.osuosl.org>;\n\tWed, 11 Sep 2019 17:26:46 +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 mXgyjljp645g for <intel-wired-lan@lists.osuosl.org>;\n\tWed, 11 Sep 2019 17:26:44 +0000 (UTC)",
            "from mga01.intel.com (mga01.intel.com [192.55.52.88])\n\tby whitealder.osuosl.org (Postfix) with ESMTPS id 27608815E3\n\tfor <intel-wired-lan@lists.osuosl.org>;\n\tWed, 11 Sep 2019 17:26:44 +0000 (UTC)",
            "from fmsmga005.fm.intel.com ([10.253.24.32])\n\tby fmsmga101.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384;\n\t11 Sep 2019 10:26:43 -0700",
            "from silpixa00399839.ir.intel.com (HELO localhost.localdomain)\n\t([10.237.223.65])\n\tby fmsmga005.fm.intel.com with ESMTP; 11 Sep 2019 10:26:41 -0700"
        ],
        "X-Virus-Scanned": [
            "amavisd-new at osuosl.org",
            "amavisd-new at osuosl.org"
        ],
        "X-Greylist": "domain auto-whitelisted by SQLgrey-1.7.6",
        "X-Amp-Result": "SKIPPED(no attachment in message)",
        "X-Amp-File-Uploaded": "False",
        "X-ExtLoop1": "1",
        "X-IronPort-AV": "E=Sophos;i=\"5.64,489,1559545200\"; d=\"scan'208\";a=\"384772712\"",
        "From": "Ciara Loftus <ciara.loftus@intel.com>",
        "To": "netdev@vger.kernel.org, ast@kernel.org, daniel@iogearbox.net,\n\tbjorn.topel@intel.com, magnus.karlsson@intel.com,\n\tjonathan.lemon@gmail.com",
        "Date": "Wed, 11 Sep 2019 17:24:34 +0000",
        "Message-Id": "<20190911172435.21042-2-ciara.loftus@intel.com>",
        "X-Mailer": "git-send-email 2.17.1",
        "In-Reply-To": "<20190911172435.21042-1-ciara.loftus@intel.com>",
        "References": "<20190911172435.21042-1-ciara.loftus@intel.com>",
        "X-Mailman-Approved-At": "Wed, 11 Sep 2019 18:09:15 +0000",
        "Subject": "[Intel-wired-lan] [PATCH bpf-next 2/3] ixgbe: fix xdp handle\n\tcalculations",
        "X-BeenThere": "intel-wired-lan@osuosl.org",
        "X-Mailman-Version": "2.1.29",
        "Precedence": "list",
        "List-Id": "Intel Wired Ethernet Linux Kernel Driver Development\n\t<intel-wired-lan.osuosl.org>",
        "List-Unsubscribe": "<https://lists.osuosl.org/mailman/options/intel-wired-lan>, \n\t<mailto:intel-wired-lan-request@osuosl.org?subject=unsubscribe>",
        "List-Archive": "<http://lists.osuosl.org/pipermail/intel-wired-lan/>",
        "List-Post": "<mailto:intel-wired-lan@osuosl.org>",
        "List-Help": "<mailto:intel-wired-lan-request@osuosl.org?subject=help>",
        "List-Subscribe": "<https://lists.osuosl.org/mailman/listinfo/intel-wired-lan>, \n\t<mailto:intel-wired-lan-request@osuosl.org?subject=subscribe>",
        "Cc": "bruce.richardson@intel.com, bpf@vger.kernel.org,\n\tintel-wired-lan@lists.osuosl.org, Ciara Loftus <ciara.loftus@intel.com>, \n\tkevin.laatz@intel.com",
        "MIME-Version": "1.0",
        "Content-Type": "text/plain; charset=\"us-ascii\"",
        "Content-Transfer-Encoding": "7bit",
        "Errors-To": "intel-wired-lan-bounces@osuosl.org",
        "Sender": "\"Intel-wired-lan\" <intel-wired-lan-bounces@osuosl.org>"
    },
    "content": "Commit 7cbbf9f1fa23 (\"ixgbe: fix xdp handle calculations\") reintroduced\nthe addition of the umem headroom to the xdp handle in the ixgbe_zca_free,\nixgbe_alloc_buffer_slow_zc and ixgbe_alloc_buffer_zc functions. However,\nthe headroom is already added to the handle in the function\nixgbe_run_xdp_zc. This commit removes the latter addition and fixes the\ncase where the headroom is non-zero.\n\nFixes: 7cbbf9f1fa23 (\"ixgbe: fix xdp handle calculations\")\nSigned-off-by: Ciara Loftus <ciara.loftus@intel.com>\n---\n drivers/net/ethernet/intel/ixgbe/ixgbe_xsk.c | 4 ++--\n 1 file changed, 2 insertions(+), 2 deletions(-)",
    "diff": "diff --git a/drivers/net/ethernet/intel/ixgbe/ixgbe_xsk.c b/drivers/net/ethernet/intel/ixgbe/ixgbe_xsk.c\nindex ad802a8909e0..5ed8b5a257cf 100644\n--- a/drivers/net/ethernet/intel/ixgbe/ixgbe_xsk.c\n+++ b/drivers/net/ethernet/intel/ixgbe/ixgbe_xsk.c\n@@ -145,7 +145,7 @@ static int ixgbe_run_xdp_zc(struct ixgbe_adapter *adapter,\n {\n \tstruct xdp_umem *umem = rx_ring->xsk_umem;\n \tint err, result = IXGBE_XDP_PASS;\n-\tu64 offset = umem->headroom;\n+\tu64 offset;\n \tstruct bpf_prog *xdp_prog;\n \tstruct xdp_frame *xdpf;\n \tu32 act;\n@@ -153,7 +153,7 @@ static int ixgbe_run_xdp_zc(struct ixgbe_adapter *adapter,\n \trcu_read_lock();\n \txdp_prog = READ_ONCE(rx_ring->xdp_prog);\n \tact = bpf_prog_run_xdp(xdp_prog, xdp);\n-\toffset += xdp->data - xdp->data_hard_start;\n+\toffset = xdp->data - xdp->data_hard_start;\n \n \txdp->handle = xsk_umem_adjust_offset(umem, xdp->handle, offset);\n \n",
    "prefixes": [
        "bpf-next",
        "2/3"
    ]
}