From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 9B1A3606A330 for ; Wed, 2 Dec 2026 21:12:08 +0000 (UTC) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 49D04402D5; Wed, 2 Dec 2026 22:12:07 +0100 (CET) Received: from inbox.dpdk.org (inbox.dpdk.org [95.142.172.178]) by mails.dpdk.org (Postfix) with ESMTPS id B1532402D1 for ; Wed, 2 Dec 2026 22:12:05 +0100 (CET) Received: by inbox.dpdk.org (Postfix, from userid 33) id 8D15B4D34B; Wed, 2 Dec 2026 22:12:05 +0100 (CET) From: bugzilla@dpdk.org To: dev@dpdk.org Subject: [DPDK/ethdev Bug 2167] net/mlx5: regression since 24.11.5: Linux software bond on sibling PF misdetected as LAG, PMD binds to sibling PF's IB device Date: Wed, 02 Dec 2026 21:12:05 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: DPDK X-Bugzilla-Component: ethdev X-Bugzilla-Version: 24.11 X-Bugzilla-Keywords: X-Bugzilla-Severity: major X-Bugzilla-Who: prezhdarov@alfaromeo-bg.com X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: Normal X-Bugzilla-Assigned-To: dev@dpdk.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter target_milestone Message-ID: Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=UTF-8 X-Bugzilla-URL: https://bugs.dpdk.org/ Auto-Submitted: auto-generated X-Auto-Response-Suppress: All X-Archived-By: MIME-Version: 1.0 X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Archive: List-Post: List-Help: List-Subscribe: , X-Spam-Status: No, score=-4.0 required=3.0 tests=BAYES_00,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=4.0.1 X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-26) on aws-us-west-2-korg-listserv-alma10-1 https://bugs.dpdk.org/show_bug.cgi?id=3D2167 Bug ID: 2167 Summary: net/mlx5: regression since 24.11.5: Linux software bond on sibling PF misdetected as LAG, PMD binds to sibling PF's IB device Product: DPDK Version: 24.11 Hardware: All OS: Linux Status: UNCONFIRMED Severity: major Priority: Normal Component: ethdev Assignee: dev@dpdk.org Reporter: prezhdarov@alfaromeo-bg.com Target Milestone: --- Since 24.11.5, starting an mlx5 port on PF0 steers away the RX traffic of PF1 on the same ConnectX card when PF1's netdev is a member of a plain Linux (software) bond. No HW LAG exists in this setup. 24.11.4 is not affected. Reproduced on three hosts. Downgrading ONLY librte-common-mlx5-25 and librte-net-mlx5-25 to 24.11.4 (rest of DPDK left at 24.11.8) fixes it. ## Environment - Debian 13 (trixie), DPDK 24.11.8 (Debian 24.11.8-0+deb13u1), OVS 3.5 - Kernel: 7.3.4+deb13-amd64 - 2x ConnectX-6 Lx (15b3:101f), FW 26.50.10.02, legacy E-Switch mode card 1: 0000:c4:00.0 (ens1f0np0), 0000:c4:00.1 (ens1f1np1) card 2: 0000:81:00.0 (ens2f0np0), 0000:81:00.1 (ens2f1np1) - PF1 of both cards (ens1f1np1 + ens2f1np1) in a Linux 802.3ad bond (LACP rate fast), spanning both cards, so no HW LAG / no mlx5_bond IB device. Carries iSCSI (root filesystem, dm-multipath). - PF0 of both cards used by OVS-DPDK (userspace bond), EAL args: -a 0000:81:00.0 -a 0000:c4:00.0 ## Steps to reproduce 1. Linux bond over the PF1 netdevs of two ConnectX cards, traffic flowing. 2. Start a DPDK port on a PF0 (OVS: add-bond-iface with dpdk-devargs=3D0000:81:00.0; also reproduces at vswitchd start). ## Actual - ens2f1np1 (kernel netdev, bond member) immediately stops receiving traffic. Link stays up, addresses unchanged. - LACPDUs still reach the kernel, so the Linux bond keeps the slave in sync and the switch keeps hashing flows to it -> traffic black-holed, no failover. In our case iSCSI sessions time out, root fs is lost, host dies. - Not affected by EAL allowlist (-a), nor by OVS hw-offload=3Dfalse. ## Expected - A Linux software bond on a sibling PF, not offloaded as HW LAG, must not affect probing of an unrelated PF. PF0 should bind to its own IB device. ## Analysis Introduced by the bond-check rework backported to 24.11.5: - common/mlx5: fix bonding check (upstream 2aa207b1144a) - net/mlx5: fix bonding check ``` mlx5_os_get_ibv_device() now accepts bond_match =3D !is_vf_dev && mlx5_os_is_device_bond(ibdev) && (guid_match || pci_partial_match) ``` mlx5_os_is_device_bond() returns true if ANY netdev of the IB device has /sys/class/net//master/bonding -- true for a plain software bond, not just HW LAG. For 0000:81:00.0, the IB device of 0000:81:00.1 then matches via GUID / function-less PCI match and is selected. Previously the "bond" name check only matched real LAG IB devices (mlx5_bond_*), so this setup worked. 24.11.7 "net/mlx5: redirect LACP traffic for legacy E-Switch" then adds the LACP-to-kernel rule on the (misdetected) bond device, which is what keeps the Linux bond from detecting the failure. The same change is in 23.11.7 and 25.11.1. Suggested fix Treat an IB device as a bond only if it is an actual LAG IB device (shared by the bonded PFs), not merely because one of its netdevs is enslaved to a Linux bond. Happy to test patches. Can provide mlx5 debug logs (--log-level=3Dpmd.common.mlx5:debug --log-level=3Dpmd.net.mlx5:debug). Reproduced on 3 hosts (2 ConnectX-6, 1 ConnectX-4), AMD and Intel platforms. --=20 You are receiving this mail because: You are the assignee for the bug.=