[PATCH v2 0/3] Spread rdma_cm connections across ECMP paths

From: Tim Menninger

Date: Thu Dec 03 2026 - 18:48:28 EST


rdma_cm resolves routes with the flow's source port left zero, so every
connection to one destination takes the same ECMP nexthop, even when the
multipath hash includes L4 ports. On a client with two 400G ports and one
NFS data server, that leaves one port idle and halves read throughput.
Patch 3 fills in the CM source port for IPv4 and IPv6, as in v1.

Leon pointed out two problems with v1.

For a multipath nexthop group, IPv6 picks the source address for the
group's first nexthop rather than the path the lookup selected, so RoCE
address resolution can fail with -ENODEV. This already happens without
the series whenever the hash picks another member, and v1 exposed it per
connection. Patch 1 fixes it in IPv6 source address selection, matching
IPv6 legacy multipath and IPv4 nexthop groups, and patch 2 adds a
selftest for it.

Leon also reported that Chelsio iWARP can fail with -EHOSTUNREACH when
its own route lookup picks a different adapter than rdma_cm. That
already happens without this series, and as agreed on the v1 thread it
will be handled separately, since none of us can test on Chelsio
hardware.

Patches 1 and 2 also stand on their own.

Changes in v2:
- Add patches 1 and 2, the IPv6 source address fix and its selftest
(Leon)
- Patch 3 commit message notes the dependency on patch 1 and adds the
IPv6 results

v1: https://lore.kernel.org/all/20261130193648.3170657-1-tmenninger@xxxxxxxxxxxxxxxx/

Shiva Lingappa (1):
RDMA/core: Use the CM source port in IP route lookups

Tim Menninger (2):
ipv6: Use the selected nexthop for source address selection
selftests: fib_nexthops: Check the IPv6 multipath source address

drivers/infiniband/core/addr.c | 2 ++
include/net/ip6_route.h | 9 ++++--
net/ipv6/ip6_output.c | 3 +-
net/ipv6/route.c | 2 +-
tools/testing/selftests/net/fib_nexthops.sh | 35 +++++++++++++++++++++
5 files changed, 47 insertions(+), 4 deletions(-)


base-commit: aebb7274476403040d582c61478df8f4a7bf9cd3
--
2.53.0