get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 2171499,
    "url": "http://patchwork.ozlabs.org/api/patches/2171499/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/intel-wired-lan/patch/20251204155133.2437621-6-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-6-aleksander.lobakin@intel.com>",
    "list_archive_url": null,
    "date": "2025-12-04T15:51:33",
    "name": "[iwl-next,v2,5/5] ice: add support for transmitting unreadable frags",
    "commit_ref": null,
    "pull_url": null,
    "state": "under-review",
    "archived": false,
    "hash": "536788c8c8de18fc85280f548db69def5a762018",
    "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-6-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/2171499/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/2171499/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=zZ4yINMt;\n\tdkim-atps=neutral",
            "legolas.ozlabs.org;\n spf=pass (sender SPF authorized) smtp.mailfrom=osuosl.org\n (client-ip=2605:bc80:3010::138; helo=smtp1.osuosl.org;\n envelope-from=intel-wired-lan-bounces@osuosl.org;\n receiver=patchwork.ozlabs.org)"
        ],
        "Received": [
            "from smtp1.osuosl.org (smtp1.osuosl.org [IPv6:2605:bc80:3010::138])\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 4dMfCD4Bqwz1xq8\n\tfor <incoming@patchwork.ozlabs.org>; Fri, 05 Dec 2025 02:52:08 +1100 (AEDT)",
            "from localhost (localhost [127.0.0.1])\n\tby smtp1.osuosl.org (Postfix) with ESMTP id 1D85384688;\n\tThu,  4 Dec 2025 15:52:07 +0000 (UTC)",
            "from smtp1.osuosl.org ([127.0.0.1])\n by localhost (smtp1.osuosl.org [127.0.0.1]) (amavis, port 10024) with ESMTP\n id 91XUp_2hk5ma; Thu,  4 Dec 2025 15:52:06 +0000 (UTC)",
            "from lists1.osuosl.org (lists1.osuosl.org [140.211.166.142])\n\tby smtp1.osuosl.org (Postfix) with ESMTP id 4FCB88467A;\n\tThu,  4 Dec 2025 15:52:06 +0000 (UTC)",
            "from smtp3.osuosl.org (smtp3.osuosl.org [140.211.166.136])\n by lists1.osuosl.org (Postfix) with ESMTP id 706BFD3\n for <intel-wired-lan@lists.osuosl.org>; Thu,  4 Dec 2025 15:52:05 +0000 (UTC)",
            "from localhost (localhost [127.0.0.1])\n by smtp3.osuosl.org (Postfix) with ESMTP id 6252061549\n for <intel-wired-lan@lists.osuosl.org>; Thu,  4 Dec 2025 15:52:05 +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 phKG-XBOrMdC for <intel-wired-lan@lists.osuosl.org>;\n Thu,  4 Dec 2025 15:52:04 +0000 (UTC)",
            "from mgamail.intel.com (mgamail.intel.com [192.198.163.7])\n by smtp3.osuosl.org (Postfix) with ESMTPS id A1ABC614D5\n for <intel-wired-lan@lists.osuosl.org>; Thu,  4 Dec 2025 15:52:04 +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:52:04 -0800",
            "from newjersey.igk.intel.com ([10.102.20.203])\n by fmviesa007.fm.intel.com with ESMTP; 04 Dec 2025 07:52:01 -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 smtp1.osuosl.org 4FCB88467A",
            "OpenDKIM Filter v2.11.0 smtp3.osuosl.org A1ABC614D5"
        ],
        "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed; d=osuosl.org;\n\ts=default; t=1764863526;\n\tbh=ptgVARKBA4mo80MMMGenHip0LeStPXhttUG+VvMos/c=;\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=zZ4yINMt3xm/GIKxsziHU+dqAR25LSgvHU/Y3Vl9iz+QB2uLNrPQ7bEz+Rz/dNi5y\n\t L1TJyOuDGMZd5xjSvrI7dEhGlE5LFaGnzlUGBw+BePTn4b7qqVxyrSXYdGT85w3N+I\n\t f4zZSx//Z9tXTglJ/s9DlAhSTez+KDuQK2b9CHKZkfnoRrL64Y7bqnlN9Es/hh1Z8m\n\t y/IU8AeqvCdR4d4kDSmC4BNt93Fe58IfUSDzkSAaMEGkSm7JsOj+GuiZFauR8LCRsC\n\t Gk7gakXsoyT3AGTThY5pOE/XVralhwmlodlELw7RxdUWrSvD8hs7bDlPaQaFe0gjEq\n\t JKfM0/NvJyJ9Q==",
        "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 A1ABC614D5",
        "X-CSE-ConnectionGUID": [
            "aARsbn4WTNa/soWiDgas0A==",
            "ujarOcRDS4G3lmuKhB3dbA=="
        ],
        "X-CSE-MsgGUID": [
            "DfT3xEEPSIaas5VwHTmItg==",
            "uLdY3ruGQOeUew6qxB1+ng=="
        ],
        "X-IronPort-AV": [
            "E=McAfee;i=\"6800,10657,11632\"; a=\"92365162\"",
            "E=Sophos;i=\"6.20,249,1758610800\"; d=\"scan'208\";a=\"92365162\"",
            "E=Sophos;i=\"6.20,249,1758610800\"; d=\"scan'208\";a=\"194677297\""
        ],
        "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:33 +0100",
        "Message-ID": "<20251204155133.2437621-6-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=1764863525; x=1796399525;\n h=from:to:cc:subject:date:message-id:in-reply-to:\n references:mime-version:content-transfer-encoding;\n bh=aHgkVsO3gsi7K2qAzrJew/v3oAF8iandu5cOkJl4aXE=;\n b=QzwMnKz8MiMGUsOVE6xmM9zGgq49lRRSlh3VZOKDDtui5lfntvegWX1Z\n nagJEh9TfnrUliQZ7ah/zwniKIBM3xGd4ztq2T9JMqY64D1yNcr24EQW+\n rIOJznGhO/jeO1xKJ3PDv20xqMERZhUeWb+B+jTb1AFiZAm3v7G9YRrJH\n 4mEbmRnRUl8I4og+YOY8Dx26blG/bjHR2r2GWx/Z73tKfg/DSKifOwuss\n T9tlermzwD0I2hmD4QC2Q2dhY3e1oqh5O6kW7Rloeo1SNi0KDy0W8wo4+\n XxEZOO8DdLYAXRzt5eEGhghpu680qZZ5O+yhL58I12s/ukNjVBT4Yq6ci\n A==;",
        "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=QzwMnKz8"
        ],
        "Subject": "[Intel-wired-lan] [PATCH iwl-next v2 5/5] ice: add support for\n transmitting unreadable frags",
        "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": "Advertise netmem Tx support in ice. The only change needed is to set\nICE_TX_BUF_FRAG conditionally, only when skb_frag_is_net_iov() is\nfalse. Otherwise, the Tx buffer type will be ICE_TX_BUF_EMPTY and\nthe driver will skip the DMA unmapping operation.\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 drivers/net/ethernet/intel/ice/ice_main.c   |  1 +\n drivers/net/ethernet/intel/ice/ice_sf_eth.c |  1 +\n drivers/net/ethernet/intel/ice/ice_txrx.c   | 17 +++++++++++++----\n 3 files changed, 15 insertions(+), 4 deletions(-)",
    "diff": "diff --git a/drivers/net/ethernet/intel/ice/ice_main.c b/drivers/net/ethernet/intel/ice/ice_main.c\nindex 25e9091ca309..66601b1b7fec 100644\n--- a/drivers/net/ethernet/intel/ice/ice_main.c\n+++ b/drivers/net/ethernet/intel/ice/ice_main.c\n@@ -3524,6 +3524,7 @@ static void ice_set_ops(struct ice_vsi *vsi)\n \n \tnetdev->netdev_ops = &ice_netdev_ops;\n \tnetdev->queue_mgmt_ops = &ice_queue_mgmt_ops;\n+\tnetdev->netmem_tx = true;\n \tnetdev->udp_tunnel_nic_info = &pf->hw.udp_tunnel_nic;\n \tnetdev->xdp_metadata_ops = &ice_xdp_md_ops;\n \tice_set_ethtool_ops(netdev);\ndiff --git a/drivers/net/ethernet/intel/ice/ice_sf_eth.c b/drivers/net/ethernet/intel/ice/ice_sf_eth.c\nindex 41e1606a8222..51ad13c9d7f9 100644\n--- a/drivers/net/ethernet/intel/ice/ice_sf_eth.c\n+++ b/drivers/net/ethernet/intel/ice/ice_sf_eth.c\n@@ -59,6 +59,7 @@ static int ice_sf_cfg_netdev(struct ice_dynamic_port *dyn_port,\n \tether_addr_copy(netdev->perm_addr, dyn_port->hw_addr);\n \tnetdev->netdev_ops = &ice_sf_netdev_ops;\n \tnetdev->queue_mgmt_ops = &ice_queue_mgmt_ops;\n+\tnetdev->netmem_tx = true;\n \tSET_NETDEV_DEVLINK_PORT(netdev, devlink_port);\n \n \terr = register_netdev(netdev);\ndiff --git a/drivers/net/ethernet/intel/ice/ice_txrx.c b/drivers/net/ethernet/intel/ice/ice_txrx.c\nindex b6f56cb81f93..e8e1acbd5a7d 100644\n--- a/drivers/net/ethernet/intel/ice/ice_txrx.c\n+++ b/drivers/net/ethernet/intel/ice/ice_txrx.c\n@@ -113,11 +113,17 @@ ice_prgm_fdir_fltr(struct ice_vsi *vsi, struct ice_fltr_desc *fdir_desc,\n static void\n ice_unmap_and_free_tx_buf(struct ice_tx_ring *ring, struct ice_tx_buf *tx_buf)\n {\n-\tif (tx_buf->type != ICE_TX_BUF_XDP_TX && dma_unmap_len(tx_buf, len))\n+\tswitch (tx_buf->type) {\n+\tcase ICE_TX_BUF_DUMMY:\n+\tcase ICE_TX_BUF_FRAG:\n+\tcase ICE_TX_BUF_SKB:\n+\tcase ICE_TX_BUF_XDP_XMIT:\n \t\tdma_unmap_page(ring->dev,\n \t\t\t       dma_unmap_addr(tx_buf, dma),\n \t\t\t       dma_unmap_len(tx_buf, len),\n \t\t\t       DMA_TO_DEVICE);\n+\t\tbreak;\n+\t}\n \n \tswitch (tx_buf->type) {\n \tcase ICE_TX_BUF_DUMMY:\n@@ -337,12 +343,14 @@ static bool ice_clean_tx_irq(struct ice_tx_ring *tx_ring, int napi_budget)\n \t\t\t}\n \n \t\t\t/* unmap any remaining paged data */\n-\t\t\tif (dma_unmap_len(tx_buf, len)) {\n+\t\t\tif (tx_buf->type != ICE_TX_BUF_EMPTY) {\n \t\t\t\tdma_unmap_page(tx_ring->dev,\n \t\t\t\t\t       dma_unmap_addr(tx_buf, dma),\n \t\t\t\t\t       dma_unmap_len(tx_buf, len),\n \t\t\t\t\t       DMA_TO_DEVICE);\n+\n \t\t\t\tdma_unmap_len_set(tx_buf, len, 0);\n+\t\t\t\ttx_buf->type = ICE_TX_BUF_EMPTY;\n \t\t\t}\n \t\t}\n \t\tice_trace(clean_tx_irq_unmap_eop, tx_ring, tx_desc, tx_buf);\n@@ -1493,7 +1501,8 @@ ice_tx_map(struct ice_tx_ring *tx_ring, struct ice_tx_buf *first,\n \t\t\t\t       DMA_TO_DEVICE);\n \n \t\ttx_buf = &tx_ring->tx_buf[i];\n-\t\ttx_buf->type = ICE_TX_BUF_FRAG;\n+\t\tif (!skb_frag_is_net_iov(frag))\n+\t\t\ttx_buf->type = ICE_TX_BUF_FRAG;\n \t}\n \n \t/* record SW timestamp if HW timestamp is not available */\n@@ -2368,7 +2377,7 @@ void ice_clean_ctrl_tx_irq(struct ice_tx_ring *tx_ring)\n \t\t}\n \n \t\t/* unmap the data header */\n-\t\tif (dma_unmap_len(tx_buf, len))\n+\t\tif (tx_buf->type != ICE_TX_BUF_EMPTY)\n \t\t\tdma_unmap_single(tx_ring->dev,\n \t\t\t\t\t dma_unmap_addr(tx_buf, dma),\n \t\t\t\t\t dma_unmap_len(tx_buf, len),\n",
    "prefixes": [
        "iwl-next",
        "v2",
        "5/5"
    ]
}