mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH v2 0/3] Spread rdma_cm connections across ECMP paths
@ 2026-12-03 23:47 Tim Menninger
  2026-12-03 23:47 ` [PATCH v2 1/3] ipv6: Use the selected nexthop for source address selection Tim Menninger
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Tim Menninger @ 2026-12-03 23:47 UTC (permalink / raw)
  To: leon
  Cc: jgg, bharat, dsahern, idosch, davem, edumazet, kuba, pabeni,
	horms, shuah, slingappa, rpatil, linux-rdma, netdev,
	linux-kselftest, linux-kernel, Tim Menninger

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@everpuredata.com/

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


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2026-12-03 23:48 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-12-03 23:47 [PATCH v2 0/3] Spread rdma_cm connections across ECMP paths Tim Menninger
2026-12-03 23:47 ` [PATCH v2 1/3] ipv6: Use the selected nexthop for source address selection Tim Menninger
2026-12-03 23:47 ` [PATCH v2 2/3] selftests: fib_nexthops: Check the IPv6 multipath source address Tim Menninger
2026-12-03 23:47 ` [PATCH v2 3/3] RDMA/core: Use the CM source port in IP route lookups Tim Menninger

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®