Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/2195235/?format=api
{ "id": 2195235, "url": "http://patchwork.ozlabs.org/api/patches/2195235/?format=api", "web_url": "http://patchwork.ozlabs.org/project/intel-wired-lan/patch/20260210155810.135577-1-kohei@enjuk.jp/", "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": "<20260210155810.135577-1-kohei@enjuk.jp>", "list_archive_url": null, "date": "2026-02-10T15:57:14", "name": "[v1,iwl-net] iavf: fix netdev->max_mtu to respect actual hardware limit", "commit_ref": null, "pull_url": null, "state": "under-review", "archived": false, "hash": "a66035389b556f0cc34034316046315fca7e8807", "submitter": { "id": 92459, "url": "http://patchwork.ozlabs.org/api/people/92459/?format=api", "name": "Kohei Enju", "email": "kohei@enjuk.jp" }, "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/20260210155810.135577-1-kohei@enjuk.jp/mbox/", "series": [ { "id": 491696, "url": "http://patchwork.ozlabs.org/api/series/491696/?format=api", "web_url": "http://patchwork.ozlabs.org/project/intel-wired-lan/list/?series=491696", "date": "2026-02-10T15:57:14", "name": "[v1,iwl-net] iavf: fix netdev->max_mtu to respect actual hardware limit", "version": 1, "mbox": "http://patchwork.ozlabs.org/series/491696/mbox/" } ], "comments": "http://patchwork.ozlabs.org/api/patches/2195235/comments/", "check": "pending", "checks": "http://patchwork.ozlabs.org/api/patches/2195235/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=xt3cD3LN;\n\tdkim-atps=neutral", "legolas.ozlabs.org;\n spf=pass (sender SPF authorized) smtp.mailfrom=osuosl.org\n (client-ip=140.211.166.137; helo=smtp4.osuosl.org;\n envelope-from=intel-wired-lan-bounces@osuosl.org;\n receiver=patchwork.ozlabs.org)" ], "Received": [ "from smtp4.osuosl.org (smtp4.osuosl.org [140.211.166.137])\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 4f9R7b43rgz1xtr\n\tfor <incoming@patchwork.ozlabs.org>; Wed, 11 Feb 2026 02:58:49 +1100 (AEDT)", "from localhost (localhost [127.0.0.1])\n\tby smtp4.osuosl.org (Postfix) with ESMTP id 6D03541165;\n\tTue, 10 Feb 2026 15:58:47 +0000 (UTC)", "from smtp4.osuosl.org ([127.0.0.1])\n by localhost (smtp4.osuosl.org [127.0.0.1]) (amavis, port 10024) with ESMTP\n id lc1Uq-J3w3gh; Tue, 10 Feb 2026 15:58:46 +0000 (UTC)", "from lists1.osuosl.org (lists1.osuosl.org [140.211.166.142])\n\tby smtp4.osuosl.org (Postfix) with ESMTP id A3EA341166;\n\tTue, 10 Feb 2026 15:58:46 +0000 (UTC)", "from smtp4.osuosl.org (smtp4.osuosl.org [140.211.166.137])\n by lists1.osuosl.org (Postfix) with ESMTP id 55D23219\n for <intel-wired-lan@lists.osuosl.org>; Tue, 10 Feb 2026 15:58:45 +0000 (UTC)", "from localhost (localhost [127.0.0.1])\n by smtp4.osuosl.org (Postfix) with ESMTP id 536824116A\n for <intel-wired-lan@lists.osuosl.org>; Tue, 10 Feb 2026 15:58:45 +0000 (UTC)", "from smtp4.osuosl.org ([127.0.0.1])\n by localhost (smtp4.osuosl.org [127.0.0.1]) (amavis, port 10024) with ESMTP\n id gWItU6neShTG for <intel-wired-lan@lists.osuosl.org>;\n Tue, 10 Feb 2026 15:58:44 +0000 (UTC)", "from www2881.sakura.ne.jp (www2881.sakura.ne.jp [49.212.198.91])\n by smtp4.osuosl.org (Postfix) with ESMTPS id 4D6A541166\n for <intel-wired-lan@lists.osuosl.org>; Tue, 10 Feb 2026 15:58:43 +0000 (UTC)", "from ms-a2 (227.25.31.150.dy.iij4u.or.jp [150.31.25.227])\n (authenticated bits=0)\n by www2881.sakura.ne.jp (8.16.1/8.16.1) with ESMTPSA id 61AFwBhg052279\n (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO);\n Wed, 11 Feb 2026 00:58:12 +0900 (JST) (envelope-from kohei@enjuk.jp)" ], "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 smtp4.osuosl.org A3EA341166", "OpenDKIM Filter v2.11.0 smtp4.osuosl.org 4D6A541166" ], "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed; d=osuosl.org;\n\ts=default; t=1770739126;\n\tbh=AV99yFS6N2XH5Ncq0/NTS/CftT+Jd2zuUBJxQTuidFU=;\n\th=From:To:Cc:Date:Subject:List-Id:List-Unsubscribe:List-Archive:\n\t List-Post:List-Help:List-Subscribe:From;\n\tb=xt3cD3LNoee73BWrjiI2vwAeZePVgbeslz227zmf1RweBbzK9c3v1ETqZ/WbZ0ISt\n\t s+3M7g/rJ/mmV+gV3Wd4JV7D6yYJBdNYKp2Ug7piLQY3JaxZdhizLkDcjxvB+gK052\n\t 6KQ8tTBpNJovceaNIPK05yh4/KIHXLr0dHDRqIh9q/EN6wgSOKK+eOKpkoPNOre/P5\n\t nYVRP8BXjWsHGCEFZ3Y4wlF2fq7Ma8vxO8SBDUyXlCGLYqC0hUGGpPVsQPtxW5DHYM\n\t OsFvNTBNKdkDysMNY8IIz0klqiOpPP/8ImnFxPNxOjKjEPFB+D/m7haGIsT6xwD0yv\n\t 49TY0NfvQqTVQ==", "Received-SPF": "Pass (mailfrom) identity=mailfrom; client-ip=49.212.198.91;\n helo=www2881.sakura.ne.jp; envelope-from=kohei@enjuk.jp; receiver=<UNKNOWN>", "DMARC-Filter": "OpenDMARC Filter v1.4.2 smtp4.osuosl.org 4D6A541166", "From": "Kohei Enju <kohei@enjuk.jp>", "To": "intel-wired-lan@lists.osuosl.org, netdev@vger.kernel.org", "Cc": "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>,\n Alexander Lobakin <aleksander.lobakin@intel.com>, kohei.enju@gmail.com,\n Kohei Enju <kohei@enjuk.jp>", "Date": "Tue, 10 Feb 2026 15:57:14 +0000", "Message-ID": "<20260210155810.135577-1-kohei@enjuk.jp>", "X-Mailer": "git-send-email 2.51.0", "MIME-Version": "1.0", "Content-Transfer-Encoding": "8bit", "X-Mailman-Original-DKIM-Signature": "a=rsa-sha256;\n bh=AV99yFS6N2XH5Ncq0/NTS/CftT+Jd2zuUBJxQTuidFU=;\n c=relaxed/relaxed; d=enjuk.jp;\n h=From:To:Subject:Date:Message-ID;\n s=rs20251215; t=1770739093; v=1;\n b=P43r5surwhqNi1X2pF7KN9sf678WyvqiBOt8ni5kpFQ4GKnZETg+JekWTNSJ7+FV\n EgDjDm6LKXpYK0C9GSIKOzLBHo1JIhgP7yfhZ2ik2sZEEpkbDBhnkw8j71ioJjmL\n P8dFILQgn1c/eB0LNdjWgNopbZeRKPmb3rFzmREIml3QRM6oHQ54Dq9d6rtDghJX\n sYiUXa1Vy3sjDpEKKyePCfdbzlMTeDgqoW8v+vFBsAxRMMdDE/M8gtAtkchxGzqU\n SImjiTgYYm6XOi5/Ebhmrg1xBkg0SJmuRyab3DUsqmc04X25wIe4SkMRQHZnYDc/\n 7X1Ra4NaeKSpCTN4tVtMdw==", "X-Mailman-Original-Authentication-Results": [ "smtp4.osuosl.org;\n dmarc=pass (p=none dis=none)\n header.from=enjuk.jp", "smtp4.osuosl.org;\n dkim=pass (2048-bit key,\n unprotected) header.d=enjuk.jp header.i=@enjuk.jp header.a=rsa-sha256\n header.s=rs20251215 header.b=P43r5sur" ], "Subject": "[Intel-wired-lan] [PATCH v1 iwl-net] iavf: fix netdev->max_mtu to\n respect actual hardware limit", "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": "iavf sets LIBIE_MAX_MTU as netdev->max_mtu, ignoring vf_res->max_mtu\nfrom PF [1]. This allows setting an MTU beyond the actual hardware\nlimit, causing TX queue timeouts [2].\n\nSet correct netdev->max_mtu using vf_res->max_mtu from the PF.\n\nNote that currently PF drivers such as ice/i40e set the frame size in\nvf_res->max_mtu, not MTU. Convert vf_res->max_mtu to MTU before setting\nnetdev->max_mtu.\n\n[1]\n # ip -j -d link show $DEV | jq '.[0].max_mtu'\n 16356\n\n[2]\n iavf 0000:00:05.0 enp0s5: NETDEV WATCHDOG: CPU: 1: transmit queue 0 timed out 5692 ms\n iavf 0000:00:05.0 enp0s5: NIC Link is Up Speed is 10 Gbps Full Duplex\n iavf 0000:00:05.0 enp0s5: NETDEV WATCHDOG: CPU: 6: transmit queue 3 timed out 5312 ms\n iavf 0000:00:05.0 enp0s5: NIC Link is Up Speed is 10 Gbps Full Duplex\n ...\n\nFixes: 5fa4caff59f2 (\"iavf: switch to Page Pool\")\nSigned-off-by: Kohei Enju <kohei@enjuk.jp>\n---\nIdeally we may fix ice/i40e to set max MTU (not frame size) in\nvf_res->max_mtu on the PF side, but this would break PF/VF API\ncompatibility between different kernel versions and would need\nmodifications on code that treats vf_res->max_mtu as the frame size.\n\nIf it's acceptable to change the PF/VF API, this patch would be simply:\n netdev->max_mtu = min_not_zero(adapter->vf_res->max_mtu, \n LIBIE_MAX_MTU);\n---\n drivers/net/ethernet/intel/iavf/iavf_main.c | 17 ++++++++++++++++-\n 1 file changed, 16 insertions(+), 1 deletion(-)", "diff": "diff --git a/drivers/net/ethernet/intel/iavf/iavf_main.c b/drivers/net/ethernet/intel/iavf/iavf_main.c\nindex b625ce00b836..d911c634596a 100644\n--- a/drivers/net/ethernet/intel/iavf/iavf_main.c\n+++ b/drivers/net/ethernet/intel/iavf/iavf_main.c\n@@ -2772,7 +2772,22 @@ static void iavf_init_config_adapter(struct iavf_adapter *adapter)\n \tnetdev->watchdog_timeo = 5 * HZ;\n \n \tnetdev->min_mtu = ETH_MIN_MTU;\n-\tnetdev->max_mtu = LIBIE_MAX_MTU;\n+\n+\t/* PF/VF API: vf_res->max_mtu is max frame size (not MTU).\n+\t * Convert to MTU.\n+\t */\n+\tif (!adapter->vf_res->max_mtu) {\n+\t\tnetdev->max_mtu = LIBIE_MAX_MTU;\n+\t} else if (adapter->vf_res->max_mtu < LIBETH_RX_LL_LEN + ETH_MIN_MTU ||\n+\t\t adapter->vf_res->max_mtu >\n+\t\t\t LIBETH_RX_LL_LEN + LIBIE_MAX_MTU) {\n+\t\tnetdev_warn_once(adapter->netdev,\n+\t\t\t\t \"invalid max frame size %d from PF, using default MTU %d\",\n+\t\t\t\t adapter->vf_res->max_mtu, LIBIE_MAX_MTU);\n+\t\tnetdev->max_mtu = LIBIE_MAX_MTU;\n+\t} else {\n+\t\tnetdev->max_mtu = adapter->vf_res->max_mtu - LIBETH_RX_LL_LEN;\n+\t}\n \n \tif (!is_valid_ether_addr(adapter->hw.mac.addr)) {\n \t\tdev_info(&pdev->dev, \"Invalid MAC address %pM, using random\\n\",\n", "prefixes": [ "v1", "iwl-net" ] }