All of lore.kernel.org
 help / color / mirror / Atom feed
* [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
@ 2026-12-02 21:12 bugzilla
  0 siblings, 0 replies; only message in thread
From: bugzilla @ 2026-12-02 21:12 UTC (permalink / raw)
  To: dev

https://bugs.dpdk.org/show_bug.cgi?id=2167

            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=0000: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=false.

## 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 = !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/<netdev>/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=pmd.common.mlx5:debug --log-level=pmd.net.mlx5:debug).

Reproduced on 3 hosts (2 ConnectX-6, 1 ConnectX-4), AMD and Intel platforms.

-- 
You are receiving this mail because:
You are the assignee for the bug.

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2026-12-02 21:12 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-12-02 21:12 [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 bugzilla

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.