{"id":2230134,"url":"http://patchwork.ozlabs.org/api/1.2/covers/2230134/?format=json","web_url":"http://patchwork.ozlabs.org/project/intel-wired-lan/cover/20260429102426.210750-1-jtornosm@redhat.com/","project":{"id":46,"url":"http://patchwork.ozlabs.org/api/1.2/projects/46/?format=json","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":"<20260429102426.210750-1-jtornosm@redhat.com>","list_archive_url":null,"date":"2026-04-29T10:24:22","name":"[net,v5,0/4] Fix i40e/ice/iavf VF bonding after netdev lock changes","submitter":{"id":93070,"url":"http://patchwork.ozlabs.org/api/1.2/people/93070/?format=json","name":"Jose Ignacio Tornos Martinez","email":"jtornosm@redhat.com"},"mbox":"http://patchwork.ozlabs.org/project/intel-wired-lan/cover/20260429102426.210750-1-jtornosm@redhat.com/mbox/","series":[{"id":502034,"url":"http://patchwork.ozlabs.org/api/1.2/series/502034/?format=json","web_url":"http://patchwork.ozlabs.org/project/intel-wired-lan/list/?series=502034","date":"2026-04-29T10:24:22","name":"Fix i40e/ice/iavf VF bonding after netdev lock changes","version":5,"mbox":"http://patchwork.ozlabs.org/series/502034/mbox/"}],"comments":"http://patchwork.ozlabs.org/api/covers/2230134/comments/","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=bKc/YZMP;\n\tdkim-atps=neutral","legolas.ozlabs.org;\n spf=pass (sender SPF authorized) smtp.mailfrom=osuosl.org\n (client-ip=140.211.166.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 [140.211.166.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 4g5D2G2KjGz1xqf\n\tfor <incoming@patchwork.ozlabs.org>; Wed, 29 Apr 2026 20:24:52 +1000 (AEST)","from localhost (localhost [127.0.0.1])\n\tby smtp3.osuosl.org (Postfix) with ESMTP id F341A6134B;\n\tWed, 29 Apr 2026 10:24:49 +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 J4VqWzdcPoXN; Wed, 29 Apr 2026 10:24:49 +0000 (UTC)","from lists1.osuosl.org (lists1.osuosl.org [140.211.166.142])\n\tby smtp3.osuosl.org (Postfix) with ESMTP id 1EB7A61533;\n\tWed, 29 Apr 2026 10:24:49 +0000 (UTC)","from smtp3.osuosl.org (smtp3.osuosl.org [140.211.166.136])\n by lists1.osuosl.org (Postfix) with ESMTP id 2779A1B8\n for <intel-wired-lan@lists.osuosl.org>; Wed, 29 Apr 2026 10:24:48 +0000 (UTC)","from localhost (localhost [127.0.0.1])\n by smtp3.osuosl.org (Postfix) with ESMTP id 1761461533\n for <intel-wired-lan@lists.osuosl.org>; Wed, 29 Apr 2026 10:24:48 +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 CZc5ogt2qYR8 for <intel-wired-lan@lists.osuosl.org>;\n Wed, 29 Apr 2026 10:24:47 +0000 (UTC)","from us-smtp-delivery-124.mimecast.com\n (us-smtp-delivery-124.mimecast.com [170.10.129.124])\n by smtp3.osuosl.org (Postfix) with ESMTPS id 01BA26134B\n for <intel-wired-lan@lists.osuosl.org>; Wed, 29 Apr 2026 10:24:46 +0000 (UTC)","from mx-prod-mc-06.mail-002.prod.us-west-2.aws.redhat.com\n (ec2-35-165-154-97.us-west-2.compute.amazonaws.com [35.165.154.97]) by\n relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3,\n cipher=TLS_AES_256_GCM_SHA384) id us-mta-663-VWiKo8V7O2CwKrTqlLZ0vg-1; Wed,\n 29 Apr 2026 06:24:40 -0400","from mx-prod-int-08.mail-002.prod.us-west-2.aws.redhat.com\n (mx-prod-int-08.mail-002.prod.us-west-2.aws.redhat.com [10.30.177.111])\n (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)\n key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest\n SHA256)\n (No client certificate requested)\n by mx-prod-mc-06.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS\n id D2341180049F; Wed, 29 Apr 2026 10:24:38 +0000 (UTC)","from fedora.redhat.com (unknown [10.44.32.45])\n by mx-prod-int-08.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTP\n id 1F6EA1800347; Wed, 29 Apr 2026 10:24:32 +0000 (UTC)"],"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 1EB7A61533","OpenDKIM Filter v2.11.0 smtp3.osuosl.org 01BA26134B"],"DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/relaxed; d=osuosl.org;\n\ts=default; t=1777458289;\n\tbh=s4/ocltsdKGrNok+Bb2drR6q6Frk6P/w/JMLntC0yx4=;\n\th=From:To:Cc:Date:Subject:List-Id:List-Unsubscribe:List-Archive:\n\t List-Post:List-Help:List-Subscribe:From;\n\tb=bKc/YZMP1VTwnmbMpuZxkacPfzwdkVcmBeqfD6w5jJWPCgodyjJn2QamhD+W0jWvS\n\t sd1/F+883H/P5J+S3HSHLz/yrNFJfaSBPdTWXvLJ9tzVr0qivVJWO49p9TS17dQUuX\n\t KQ+26d4TonEuP1p9IY780MsL/iTxKaTtDa01O+Y8LKxGqqVAQl6mwaBmVDv3daF6Sz\n\t TKlcmZIJCP73NQ4kVL1DRdlwMxUxVjfGLMiEzGsJuRrsfd90fb77CcGoJK/RGKh7Cd\n\t zIXfv6HYYU79575H03n7NIGcvreEycJeb3qnkddgugZ/COlqctvUHm59esfUtm+Qbs\n\t A0fSNZGuA6u7g==","Received-SPF":"Pass (mailfrom) identity=mailfrom; client-ip=170.10.129.124;\n helo=us-smtp-delivery-124.mimecast.com; envelope-from=jtornosm@redhat.com;\n receiver=<UNKNOWN>","DMARC-Filter":"OpenDMARC Filter v1.4.2 smtp3.osuosl.org 01BA26134B","X-MC-Unique":"VWiKo8V7O2CwKrTqlLZ0vg-1","X-Mimecast-MFC-AGG-ID":"VWiKo8V7O2CwKrTqlLZ0vg_1777458279","From":"Jose Ignacio Tornos Martinez <jtornosm@redhat.com>","To":"netdev@vger.kernel.org","Cc":"intel-wired-lan@lists.osuosl.org, przemyslaw.kitszel@intel.com,\n aleksandr.loktionov@intel.com, jacob.e.keller@intel.com, horms@kernel.org,\n jesse.brandeburg@intel.com, anthony.l.nguyen@intel.com,\n davem@davemloft.net, edumazet@google.com, kuba@kernel.org,\n pabeni@redhat.com, Jose Ignacio Tornos Martinez <jtornosm@redhat.com>","Date":"Wed, 29 Apr 2026 12:24:22 +0200","Message-ID":"<20260429102426.210750-1-jtornosm@redhat.com>","MIME-Version":"1.0","X-Scanned-By":"MIMEDefang 3.4.1 on 10.30.177.111","X-Mimecast-MFC-PROC-ID":"2Z0bpH9ezeJPbvt-bHhvnC7qynUfgPl0Uz-dEMMNmRc_1777458279","X-Mimecast-Originator":"redhat.com","Content-Transfer-Encoding":"8bit","content-type":"text/plain; charset=\"US-ASCII\"; x-default=true","X-Mailman-Original-DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=redhat.com;\n s=mimecast20190719; t=1777458284;\n h=from:from:reply-to:subject:subject:date:date:message-id:message-id:\n to:to:cc:cc:mime-version:mime-version:content-type:content-type:\n content-transfer-encoding:content-transfer-encoding;\n bh=s4/ocltsdKGrNok+Bb2drR6q6Frk6P/w/JMLntC0yx4=;\n b=aFPOu0Vz0anlY6/jyx4oCWQEzCqr40pv/H3KndP5akoaXnvWC7GVcytW5ZbfMLOt1i1+UF\n xQ6x5dJDCH1tGTQvlf3qhcG7kmq+mww4tFmdvzGOimc4qGIb2G73yjsrOlZl7nTBlk/7cg\n H8oOJEVOoJemvO/lTAqiQSdsU6Er9cM=","X-Mailman-Original-Authentication-Results":["smtp3.osuosl.org;\n dmarc=pass (p=quarantine dis=none)\n header.from=redhat.com","smtp3.osuosl.org;\n dkim=pass (1024-bit key,\n unprotected) header.d=redhat.com header.i=@redhat.com header.a=rsa-sha256\n header.s=mimecast20190719 header.b=aFPOu0Vz"],"Subject":"[Intel-wired-lan] [PATCH net v5 0/4] Fix i40e/ice/iavf VF bonding\n after netdev lock changes","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":"This series fixes VF bonding failures introduced by commit ad7c7b2172c3\n(\"net: hold netdev instance lock during sysfs operations\").\n\nWhen adding VFs to a bond immediately after setting trust mode, MAC\naddress changes fail with -EAGAIN, preventing bonding setup. This\naffects both i40e (700-series) and ice (800-series) Intel NICs.\n\nThe core issue is lock contention: iavf_set_mac() is now called with the\nnetdev lock held and waits for MAC change completion while holding it.\nHowever, both the watchdog task that sends the request and the adminq_task\nthat processes PF responses also need this lock, creating a deadlock where\nneither can run, causing timeouts.\n\nAdditionally, setting VF trust triggers an unnecessary ~10 second VF reset\nin i40e driver that delays bonding setup, even though filter\nsynchronization happens naturally during normal VF operation. For ice\ndriver, the delay is not so big, but in the same way the operation is not\nnecessary.\n\nThis series:\n1. Adds safety guard to prevent MAC changes during reset or early\n   initialization (before VF is ready)\n2. Eliminates unnecessary VF reset when setting trust in i40e (reset only\n   if revoking trust and VF has advanced features configured).\n3. Fixes lock contention by polling admin queue synchronously\n4. Eliminates unnecessary VF reset when setting trust in ice, (reset only\n   if revoking trust and VF has advanced features configured).\n\nThe key fix (patch 3/4) implements a synchronous MAC change operation\nsimilar to the approach used for ndo_change_mtu deadlock fix:\nhttps://lore.kernel.org/intel-wired-lan/20260211191855.1532226-1-poros@redhat.com/ \nInstead of scheduling work and waiting, it:\n\n- Sends the virtchnl message directly (not via watchdog)\n- Polls the admin queue hardware directly for responses\n- Processes all messages inline (including non-MAC messages)\n- Returns when complete or times out\n\nThis allows the operation to complete synchronously while holding\nnetdev_lock, without relying on watchdog or adminq_task.\n\nThe function can sleep for up to 2.5 seconds polling hardware, but this\nis acceptable since netdev_lock is per-device and only serializes\noperations on the same interface.\n\nTesting shows VF bonding now works reliably in ~5 seconds vs 15+ seconds\nbefore (i40e), without timeouts or errors (i40e and ice).\n\nTested on Intel 700-series (i40e) and 800-series (ice) dual-port NICs\nwith iavf driver.\n\nThanks to Jan Tluka <jtluka@redhat.com> and Yuying Ma <yuma@redhat.com> for\nreporting the issues.\n\nJose Ignacio Tornos Martinez (4):\n  iavf: return EBUSY if reset in progress or not ready during MAC change\n  i40e: skip unnecessary VF reset when setting trust\n  iavf: send MAC change request synchronously\n  ice: skip unnecessary VF reset when setting trust\n---\nv5:\n  - No changes to patch 1 from v4\n  - For the new functions or with changes in the prototypes, kdoc should end\n    with '*/' not '**/', patch 2, 3 and 4\n  - For patch 2 and patch 4, after the comments from  AI review (sashiko.dev)\n    from Simon Horman, adopt a conservative approach checking multiple\n    conditions before skipping the reset\n  - Complete patch 3 with the comments from Przemek Kitszel and AI review\n    from Simon Horman.\nv4: https://lore.kernel.org/all/20260423130405.139568-1-jtornosm@redhat.com/\n\n drivers/net/ethernet/intel/i40e/i40e_virtchnl_pf.c |  38 ++++++++++++++++++++++++++++----------\n drivers/net/ethernet/intel/iavf/iavf.h             |  10 ++++++++--\n drivers/net/ethernet/intel/iavf/iavf_main.c        |  74 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++------------------\n drivers/net/ethernet/intel/iavf/iavf_virtchnl.c    | 100 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++----------\n drivers/net/ethernet/intel/ice/ice_sriov.c         |  33 +++++++++++++++++++++++++++++----\n 5 files changed, 211 insertions(+), 44 deletions(-)\n--\n2.43.0"}