Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/1161189/?format=api
{ "id": 1161189, "url": "http://patchwork.ozlabs.org/api/patches/1161189/?format=api", "web_url": "http://patchwork.ozlabs.org/project/intel-wired-lan/patch/20190911172435.21042-3-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-3-ciara.loftus@intel.com>", "list_archive_url": null, "date": "2019-09-11T17:24:35", "name": "[bpf-next,3/3] samples/bpf: fix xdpsock l2fwd tx for unaligned mode", "commit_ref": null, "pull_url": null, "state": "awaiting-upstream", "archived": false, "hash": "38257a69e27b59cfadac60c3dca10fd24d74544b", "submitter": { "id": 67255, "url": "http://patchwork.ozlabs.org/api/people/67255/?format=api", "name": "Ciara Loftus", "email": "ciara.loftus@intel.com" }, "delegate": null, "mbox": "http://patchwork.ozlabs.org/project/intel-wired-lan/patch/20190911172435.21042-3-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/1161189/comments/", "check": "pending", "checks": "http://patchwork.ozlabs.org/api/patches/1161189/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.138; helo=whitealder.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 whitealder.osuosl.org (smtp1.osuosl.org [140.211.166.138])\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 46T9122fC7z9s4Y\n\tfor <incoming@patchwork.ozlabs.org>;\n\tThu, 12 Sep 2019 04:10:13 +1000 (AEST)", "from localhost (localhost [127.0.0.1])\n\tby whitealder.osuosl.org (Postfix) with ESMTP id 558E483079;\n\tWed, 11 Sep 2019 18:10:11 +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 PUmHgFQVrLDj; Wed, 11 Sep 2019 18:10:10 +0000 (UTC)", "from ash.osuosl.org (ash.osuosl.org [140.211.166.34])\n\tby whitealder.osuosl.org (Postfix) with ESMTP id 620C886B17;\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 69A921BF59B\n\tfor <intel-wired-lan@lists.osuosl.org>;\n\tWed, 11 Sep 2019 17:26:48 +0000 (UTC)", "from localhost (localhost [127.0.0.1])\n\tby whitealder.osuosl.org (Postfix) with ESMTP id 6657B860D6\n\tfor <intel-wired-lan@lists.osuosl.org>;\n\tWed, 11 Sep 2019 17:26:48 +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 YQZwO-js-JAV for <intel-wired-lan@lists.osuosl.org>;\n\tWed, 11 Sep 2019 17:26:48 +0000 (UTC)", "from mga01.intel.com (mga01.intel.com [192.55.52.88])\n\tby whitealder.osuosl.org (Postfix) with ESMTPS id ED543815E3\n\tfor <intel-wired-lan@lists.osuosl.org>;\n\tWed, 11 Sep 2019 17:26:47 +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:47 -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:45 -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=\"384772720\"", "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:35 +0000", "Message-Id": "<20190911172435.21042-3-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 3/3] samples/bpf: fix xdpsock\n\tl2fwd tx for unaligned mode", "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": "Preserve the offset of the address of the received descriptor, and include\nit in the address set for the tx descriptor, so the kernel can correctly\nlocate the start of the packet data.\n\nFixes: 03895e63ff97 (\"samples/bpf: add buffer recycling for unaligned chunks to xdpsock\")\nSigned-off-by: Ciara Loftus <ciara.loftus@intel.com>\n---\n samples/bpf/xdpsock_user.c | 2 +-\n 1 file changed, 1 insertion(+), 1 deletion(-)", "diff": "diff --git a/samples/bpf/xdpsock_user.c b/samples/bpf/xdpsock_user.c\nindex 102eace22956..df011ac33402 100644\n--- a/samples/bpf/xdpsock_user.c\n+++ b/samples/bpf/xdpsock_user.c\n@@ -685,7 +685,7 @@ static void l2fwd(struct xsk_socket_info *xsk, struct pollfd *fds)\n \tfor (i = 0; i < rcvd; i++) {\n \t\tu64 addr = xsk_ring_cons__rx_desc(&xsk->rx, idx_rx)->addr;\n \t\tu32 len = xsk_ring_cons__rx_desc(&xsk->rx, idx_rx++)->len;\n-\t\tu64 orig = xsk_umem__extract_addr(addr);\n+\t\tu64 orig = addr;\n \n \t\taddr = xsk_umem__add_offset_to_addr(addr);\n \t\tchar *pkt = xsk_umem__get_data(xsk->umem->buffer, addr);\n", "prefixes": [ "bpf-next", "3/3" ] }