Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/1161191/?format=api
{ "id": 1161191, "url": "http://patchwork.ozlabs.org/api/patches/1161191/?format=api", "web_url": "http://patchwork.ozlabs.org/project/intel-wired-lan/patch/20190911172435.21042-1-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-1-ciara.loftus@intel.com>", "list_archive_url": null, "date": "2019-09-11T17:24:33", "name": "[bpf-next,1/3] i40e: fix xdp handle calculations", "commit_ref": null, "pull_url": null, "state": "superseded", "archived": false, "hash": "35dccb20a2b67dfb2c9778dede3aaf5d1c3ec7a5", "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-1-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/1161191/comments/", "check": "pending", "checks": "http://patchwork.ozlabs.org/api/patches/1161191/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 46T91253xmz9sNF\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 D116D85FB2;\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 n7hCMt-jXGKY; Wed, 11 Sep 2019 18:10:09 +0000 (UTC)", "from ash.osuosl.org (ash.osuosl.org [140.211.166.34])\n\tby fraxinus.osuosl.org (Postfix) with ESMTP id 1212B85F8F;\n\tWed, 11 Sep 2019 18:09:42 +0000 (UTC)", "from fraxinus.osuosl.org (smtp4.osuosl.org [140.211.166.137])\n\tby ash.osuosl.org (Postfix) with ESMTP id 9C7951BF59B\n\tfor <intel-wired-lan@lists.osuosl.org>;\n\tWed, 11 Sep 2019 17:26:35 +0000 (UTC)", "from localhost (localhost [127.0.0.1])\n\tby fraxinus.osuosl.org (Postfix) with ESMTP id 98A8383616\n\tfor <intel-wired-lan@lists.osuosl.org>;\n\tWed, 11 Sep 2019 17:26:35 +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 t2yC2LHuiedb for <intel-wired-lan@lists.osuosl.org>;\n\tWed, 11 Sep 2019 17:26:35 +0000 (UTC)", "from mga09.intel.com (mga09.intel.com [134.134.136.24])\n\tby fraxinus.osuosl.org (Postfix) with ESMTPS id E5A7C83604\n\tfor <intel-wired-lan@lists.osuosl.org>;\n\tWed, 11 Sep 2019 17:26:34 +0000 (UTC)", "from fmsmga005.fm.intel.com ([10.253.24.32])\n\tby orsmga102.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384;\n\t11 Sep 2019 10:26:34 -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:31 -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=\"384772689\"", "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:33 +0000", "Message-Id": "<20190911172435.21042-1-ciara.loftus@intel.com>", "X-Mailer": "git-send-email 2.17.1", "X-Mailman-Approved-At": "Wed, 11 Sep 2019 18:09:15 +0000", "Subject": "[Intel-wired-lan] [PATCH bpf-next 1/3] i40e: 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 4c5d9a7fa149 (\"i40e: fix xdp handle calculations\") reintroduced\nthe addition of the umem headroom to the xdp handle in the i40e_zca_free,\ni40e_alloc_buffer_slow_zc and i40e_alloc_buffer_zc functions. However,\nthe headroom is already added to the handle in the function i40_run_xdp_zc.\nThis commit removes the latter addition and fixes the case where the\nheadroom is non-zero.\n\nFixes: 4c5d9a7fa149 (\"i40e: fix xdp handle calculations\")\nSigned-off-by: Ciara Loftus <ciara.loftus@intel.com>\n---\n drivers/net/ethernet/intel/i40e/i40e_xsk.c | 4 ++--\n 1 file changed, 2 insertions(+), 2 deletions(-)", "diff": "diff --git a/drivers/net/ethernet/intel/i40e/i40e_xsk.c b/drivers/net/ethernet/intel/i40e/i40e_xsk.c\nindex 0373bc6c7e61..5f285ba1f1f9 100644\n--- a/drivers/net/ethernet/intel/i40e/i40e_xsk.c\n+++ b/drivers/net/ethernet/intel/i40e/i40e_xsk.c\n@@ -192,7 +192,7 @@ static int i40e_run_xdp_zc(struct i40e_ring *rx_ring, struct xdp_buff *xdp)\n {\n \tstruct xdp_umem *umem = rx_ring->xsk_umem;\n \tint err, result = I40E_XDP_PASS;\n-\tu64 offset = umem->headroom;\n+\tu64 offset;\n \tstruct i40e_ring *xdp_ring;\n \tstruct bpf_prog *xdp_prog;\n \tu32 act;\n@@ -203,7 +203,7 @@ static int i40e_run_xdp_zc(struct i40e_ring *rx_ring, struct xdp_buff *xdp)\n \t */\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", "1/3" ] }