get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 2171497,
    "url": "http://patchwork.ozlabs.org/api/patches/2171497/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/intel-wired-lan/patch/20251204155133.2437621-3-aleksander.lobakin@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": "<20251204155133.2437621-3-aleksander.lobakin@intel.com>",
    "list_archive_url": null,
    "date": "2025-12-04T15:51:30",
    "name": "[iwl-next,v2,2/5] libeth: handle creating pools with unreadable buffers",
    "commit_ref": null,
    "pull_url": null,
    "state": "under-review",
    "archived": false,
    "hash": "d06c52830916c1292eedf6a2bf64cce5ad9536b1",
    "submitter": {
        "id": 85827,
        "url": "http://patchwork.ozlabs.org/api/people/85827/?format=api",
        "name": "Alexander Lobakin",
        "email": "aleksander.lobakin@intel.com"
    },
    "delegate": {
        "id": 109701,
        "url": "http://patchwork.ozlabs.org/api/users/109701/?format=api",
        "username": "anguy11",
        "first_name": "Anthony",
        "last_name": "Nguyen",
        "email": "anthony.l.nguyen@intel.com"
    },
    "mbox": "http://patchwork.ozlabs.org/project/intel-wired-lan/patch/20251204155133.2437621-3-aleksander.lobakin@intel.com/mbox/",
    "series": [
        {
            "id": 484409,
            "url": "http://patchwork.ozlabs.org/api/series/484409/?format=api",
            "web_url": "http://patchwork.ozlabs.org/project/intel-wired-lan/list/?series=484409",
            "date": "2025-12-04T15:51:29",
            "name": "ice: add support for devmem/io_uring Rx and Tx",
            "version": 2,
            "mbox": "http://patchwork.ozlabs.org/series/484409/mbox/"
        }
    ],
    "comments": "http://patchwork.ozlabs.org/api/patches/2171497/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/2171497/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@legolas.ozlabs.org",
            "intel-wired-lan@lists.osuosl.org"
        ],
        "Authentication-Results": [
            "legolas.ozlabs.org;\n\tdkim=pass (2048-bit key;\n unprotected) header.d=osuosl.org header.i=@osuosl.org header.a=rsa-sha256\n header.s=default header.b=IqSkM1ka;\n\tdkim-atps=neutral",
            "legolas.ozlabs.org;\n spf=pass (sender SPF authorized) smtp.mailfrom=osuosl.org\n (client-ip=2605:bc80:3010::136; helo=smtp3.osuosl.org;\n envelope-from=intel-wired-lan-bounces@osuosl.org;\n receiver=patchwork.ozlabs.org)"
        ],
        "Received": [
            "from smtp3.osuosl.org (smtp3.osuosl.org [IPv6:2605:bc80:3010::136])\n\t(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)\n\t key-exchange x25519 server-signature ECDSA (secp384r1) server-digest SHA384)\n\t(No client certificate requested)\n\tby legolas.ozlabs.org (Postfix) with ESMTPS id 4dMfC44RQXz1xq8\n\tfor <incoming@patchwork.ozlabs.org>; Fri, 05 Dec 2025 02:52:00 +1100 (AEDT)",
            "from localhost (localhost [127.0.0.1])\n\tby smtp3.osuosl.org (Postfix) with ESMTP id 5A7B96179A;\n\tThu,  4 Dec 2025 15:51:58 +0000 (UTC)",
            "from smtp3.osuosl.org ([127.0.0.1])\n by localhost (smtp3.osuosl.org [127.0.0.1]) (amavis, port 10024) with ESMTP\n id N3mXB4TgC5BP; Thu,  4 Dec 2025 15:51:56 +0000 (UTC)",
            "from lists1.osuosl.org (lists1.osuosl.org [140.211.166.142])\n\tby smtp3.osuosl.org (Postfix) with ESMTP id 3FCF261549;\n\tThu,  4 Dec 2025 15:51:56 +0000 (UTC)",
            "from smtp3.osuosl.org (smtp3.osuosl.org [IPv6:2605:bc80:3010::136])\n by lists1.osuosl.org (Postfix) with ESMTP id 4C428E7\n for <intel-wired-lan@lists.osuosl.org>; Thu,  4 Dec 2025 15:51:55 +0000 (UTC)",
            "from localhost (localhost [127.0.0.1])\n by smtp3.osuosl.org (Postfix) with ESMTP id 3E24161549\n for <intel-wired-lan@lists.osuosl.org>; Thu,  4 Dec 2025 15:51:55 +0000 (UTC)",
            "from smtp3.osuosl.org ([127.0.0.1])\n by localhost (smtp3.osuosl.org [127.0.0.1]) (amavis, port 10024) with ESMTP\n id mi8klyVai1yf for <intel-wired-lan@lists.osuosl.org>;\n Thu,  4 Dec 2025 15:51:54 +0000 (UTC)",
            "from mgamail.intel.com (mgamail.intel.com [192.198.163.7])\n by smtp3.osuosl.org (Postfix) with ESMTPS id 4241B61030\n for <intel-wired-lan@lists.osuosl.org>; Thu,  4 Dec 2025 15:51:54 +0000 (UTC)",
            "from fmviesa007.fm.intel.com ([10.60.135.147])\n by fmvoesa101.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384;\n 04 Dec 2025 07:51:54 -0800",
            "from newjersey.igk.intel.com ([10.102.20.203])\n by fmviesa007.fm.intel.com with ESMTP; 04 Dec 2025 07:51:51 -0800"
        ],
        "X-Virus-Scanned": [
            "amavis at osuosl.org",
            "amavis at osuosl.org"
        ],
        "X-Comment": "SPF check N/A for local connections - client-ip=140.211.166.142;\n helo=lists1.osuosl.org; envelope-from=intel-wired-lan-bounces@osuosl.org;\n receiver=<UNKNOWN> ",
        "DKIM-Filter": [
            "OpenDKIM Filter v2.11.0 smtp3.osuosl.org 3FCF261549",
            "OpenDKIM Filter v2.11.0 smtp3.osuosl.org 4241B61030"
        ],
        "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed; d=osuosl.org;\n\ts=default; t=1764863516;\n\tbh=rPhDl1rM+ea2t8fSzxjz4Dv5XGGddSsDa9b9wisEdEA=;\n\th=From:To:Cc:Date:In-Reply-To:References:Subject:List-Id:\n\t List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe:\n\t From;\n\tb=IqSkM1kay1IXYpOInyRKkpKmcXI7kUXoYPHOTdKxXAWbYPlQbs4EcTR8tEUpgxUce\n\t vMrzZ+SvnH5F7mvrNX7dU8e8nq0T75XWq9WsBFKuhcZ/6eWSZZ7GMBnrU0HWlaGYBT\n\t wWDW6rjZ4SMjS3zYLnmzua/6SzYF2d+fMaDkPlUjulNsjGJdE79r/K1KyfKaZoDzXn\n\t ll4ed3Cl9wXJdNiuKqeZrHxJIoLtAYu73jQLhbZVIc1ZJWSg5dE2KVisY4Yy6PRBXV\n\t Lm2P8mQ/1qX3eUx1NT12QJ47AaMaBiEinRPqwU/2LPPCwL9vdSKj5HOMFGpoqZaUEV\n\t ZHOvGmmuuHRCA==",
        "Received-SPF": "Pass (mailfrom) identity=mailfrom; client-ip=192.198.163.7;\n helo=mgamail.intel.com; envelope-from=aleksander.lobakin@intel.com;\n receiver=<UNKNOWN>",
        "DMARC-Filter": "OpenDMARC Filter v1.4.2 smtp3.osuosl.org 4241B61030",
        "X-CSE-ConnectionGUID": [
            "VB7o6SqVRBmfVLo8+pENdg==",
            "R5UzEMHEQgW0sxAPMd0OeQ=="
        ],
        "X-CSE-MsgGUID": [
            "bWbLvNglTgmwwagRXSgtOQ==",
            "5ei7+SQ4Ty6ytCEl+C5d6w=="
        ],
        "X-IronPort-AV": [
            "E=McAfee;i=\"6800,10657,11632\"; a=\"92365122\"",
            "E=Sophos;i=\"6.20,249,1758610800\"; d=\"scan'208\";a=\"92365122\"",
            "E=Sophos;i=\"6.20,249,1758610800\"; d=\"scan'208\";a=\"194677273\""
        ],
        "X-ExtLoop1": "1",
        "From": "Alexander Lobakin <aleksander.lobakin@intel.com>",
        "To": "intel-wired-lan@lists.osuosl.org",
        "Cc": "Alexander Lobakin <aleksander.lobakin@intel.com>,\n Tony Nguyen <anthony.l.nguyen@intel.com>,\n Przemek Kitszel <przemyslaw.kitszel@intel.com>,\n Andrew Lunn <andrew+netdev@lunn.ch>,\n \"David S. Miller\" <davem@davemloft.net>,\n Eric Dumazet <edumazet@google.com>, Jakub Kicinski <kuba@kernel.org>,\n Paolo Abeni <pabeni@redhat.com>, Simon Horman <horms@kernel.org>,\n Jacob Keller <jacob.e.keller@intel.com>,\n Aleksandr Loktionov <aleksandr.loktionov@intel.com>,\n nxne.cnse.osdt.itp.upstreaming@intel.com, netdev@vger.kernel.org,\n linux-kernel@vger.kernel.org",
        "Date": "Thu,  4 Dec 2025 16:51:30 +0100",
        "Message-ID": "<20251204155133.2437621-3-aleksander.lobakin@intel.com>",
        "X-Mailer": "git-send-email 2.52.0",
        "In-Reply-To": "<20251204155133.2437621-1-aleksander.lobakin@intel.com>",
        "References": "<20251204155133.2437621-1-aleksander.lobakin@intel.com>",
        "MIME-Version": "1.0",
        "Content-Transfer-Encoding": "8bit",
        "X-Mailman-Original-DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/simple;\n d=intel.com; i=@intel.com; q=dns/txt; s=Intel;\n t=1764863514; x=1796399514;\n h=from:to:cc:subject:date:message-id:in-reply-to:\n references:mime-version:content-transfer-encoding;\n bh=L3OiQcHDPaq3/WHNiZqPxGXFgCaFXawWIxwJ16AU97w=;\n b=nb0SPnxXp0cVb+Uf6fLVn3c9H0u7W+vqsQkgbLC7PSYAXC2BJmknB79G\n n2jOfoP3R2R8LwZB5Pmn9L6KUtuKh2l43THuNAZRXxVpLZb7PNKfpf911\n F8+CVS0Y8mO7DK/5TTKTdpdhRuuKvtVDfDN6o0vbW3WoGL2QJY1b5FOZZ\n jt5S9jUPmd+yjLVD6BotE3ilXe7Ps1hwSsHjmpKuYtug0GSu2hlzVuBCV\n Jt99vIH9hFzwT/p1qnTDjDYN8GJOmfS1rGaDGoGbWCUzB1jlbHymDYMox\n FAK9QVXSbniEs/Xk6Hm2xz8C9yE8ch2a5qi0eidxe12FS3uD8/QLFM7bA\n Q==;",
        "X-Mailman-Original-Authentication-Results": [
            "smtp3.osuosl.org;\n dmarc=pass (p=none dis=none)\n header.from=intel.com",
            "smtp3.osuosl.org;\n dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com\n header.a=rsa-sha256 header.s=Intel header.b=nb0SPnxX"
        ],
        "Subject": "[Intel-wired-lan] [PATCH iwl-next v2 2/5] libeth: handle creating\n pools with unreadable buffers",
        "X-BeenThere": "intel-wired-lan@osuosl.org",
        "X-Mailman-Version": "2.1.30",
        "Precedence": "list",
        "List-Id": "Intel Wired Ethernet Linux Kernel Driver Development\n <intel-wired-lan.osuosl.org>",
        "List-Unsubscribe": "<https://lists.osuosl.org/mailman/options/intel-wired-lan>,\n <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 <mailto:intel-wired-lan-request@osuosl.org?subject=subscribe>",
        "Errors-To": "intel-wired-lan-bounces@osuosl.org",
        "Sender": "\"Intel-wired-lan\" <intel-wired-lan-bounces@osuosl.org>"
    },
    "content": "libeth uses netmems for quite some time already, so in order to\nsupport unreadable frags / memory providers, it only needs to set\nPP_FLAG_ALLOW_UNREADABLE_NETMEM when needed.\nAlso add a couple sanity checks to make sure the driver didn't mess\nup the configuration options and, in case when an MP is installed,\nreturn the truesize always equal to PAGE_SIZE, so that\nlibeth_rx_alloc() will never try to allocate frags. Memory providers\nmanage buffers on their own and expect 1:1 buffer / HW Rx descriptor\nassociation.\n\nBonus: mention in the libeth_sqe_type description that\nLIBETH_SQE_EMPTY should also be used for netmem Tx SQEs -- they\ndon't need DMA unmapping.\n\nReviewed-by: Jacob Keller <jacob.e.keller@intel.com>\nReviewed-by: Aleksandr Loktionov <aleksandr.loktionov@intel.com>\nSigned-off-by: Alexander Lobakin <aleksander.lobakin@intel.com>\n---\n include/net/libeth/tx.h                |  2 +-\n drivers/net/ethernet/intel/libeth/rx.c | 45 ++++++++++++++++++++++++++\n 2 files changed, 46 insertions(+), 1 deletion(-)",
    "diff": "diff --git a/include/net/libeth/tx.h b/include/net/libeth/tx.h\nindex c3db5c6f1641..a66fc2b3a114 100644\n--- a/include/net/libeth/tx.h\n+++ b/include/net/libeth/tx.h\n@@ -12,7 +12,7 @@\n \n /**\n  * enum libeth_sqe_type - type of &libeth_sqe to act on Tx completion\n- * @LIBETH_SQE_EMPTY: unused/empty OR XDP_TX/XSk frame, no action required\n+ * @LIBETH_SQE_EMPTY: empty OR netmem/XDP_TX/XSk frame, no action required\n  * @LIBETH_SQE_CTX: context descriptor with empty SQE, no action required\n  * @LIBETH_SQE_SLAB: kmalloc-allocated buffer, unmap and kfree()\n  * @LIBETH_SQE_FRAG: mapped skb frag, only unmap DMA\ndiff --git a/drivers/net/ethernet/intel/libeth/rx.c b/drivers/net/ethernet/intel/libeth/rx.c\nindex 9ac3a1448b2f..9b45c9cdd599 100644\n--- a/drivers/net/ethernet/intel/libeth/rx.c\n+++ b/drivers/net/ethernet/intel/libeth/rx.c\n@@ -6,6 +6,7 @@\n #include <linux/export.h>\n \n #include <net/libeth/rx.h>\n+#include <net/netdev_queues.h>\n \n /* Rx buffer management */\n \n@@ -139,9 +140,50 @@ static bool libeth_rx_page_pool_params_zc(struct libeth_fq *fq,\n \tfq->buf_len = clamp(mtu, LIBETH_RX_BUF_STRIDE, max);\n \tfq->truesize = fq->buf_len;\n \n+\t/*\n+\t * Allow frags only for kernel pages. `fq->truesize == pp->max_len`\n+\t * will always fall back to regular page_pool_alloc_netmems()\n+\t * regardless of the MTU / FQ buffer size.\n+\t */\n+\tif (pp->flags & PP_FLAG_ALLOW_UNREADABLE_NETMEM)\n+\t\tfq->truesize = pp->max_len;\n+\n \treturn true;\n }\n \n+/**\n+ * libeth_rx_page_pool_check_unread - check input params for unreadable MPs\n+ * @fq: buffer queue to check\n+ * @pp: &page_pool_params for the queue\n+ *\n+ * Make sure we don't create an invalid pool with full-frame unreadable\n+ * buffers, bidirectional unreadable buffers or so, and configure the\n+ * ZC payload pool accordingly.\n+ *\n+ * Return: true on success, false on invalid input params.\n+ */\n+static bool libeth_rx_page_pool_check_unread(const struct libeth_fq *fq,\n+\t\t\t\t\t     struct page_pool_params *pp)\n+{\n+\tif (!pp->netdev)\n+\t\treturn true;\n+\n+\tif (!netif_rxq_has_unreadable_mp(pp->netdev, pp->queue_idx))\n+\t\treturn true;\n+\n+\t/* For now, the core stack doesn't allow XDP with unreadable frags */\n+\tif (fq->xdp)\n+\t\treturn false;\n+\n+\t/* It should be either a header pool or a ZC payload pool */\n+\tif (fq->type == LIBETH_FQE_HDR)\n+\t\treturn !fq->hsplit;\n+\n+\tpp->flags |= PP_FLAG_ALLOW_UNREADABLE_NETMEM;\n+\n+\treturn fq->hsplit;\n+}\n+\n /**\n  * libeth_rx_fq_create - create a PP with the default libeth settings\n  * @fq: buffer queue struct to fill\n@@ -166,6 +208,9 @@ int libeth_rx_fq_create(struct libeth_fq *fq, void *napi_dev)\n \tstruct page_pool *pool;\n \tint ret;\n \n+\tif (!libeth_rx_page_pool_check_unread(fq, &pp))\n+\t\treturn -EINVAL;\n+\n \tpp.dma_dir = fq->xdp ? DMA_BIDIRECTIONAL : DMA_FROM_DEVICE;\n \n \tif (!fq->hsplit)\n",
    "prefixes": [
        "iwl-next",
        "v2",
        "2/5"
    ]
}