From: Tim Menninger <tmenninger@everpuredata.com>
To: leon@kernel.org
Cc: jgg@ziepe.ca, bharat@chelsio.com, dsahern@kernel.org,
idosch@nvidia.com, davem@davemloft.net, edumazet@kernel.org,
kuba@kernel.org, pabeni@redhat.com, horms@kernel.org,
shuah@kernel.org, slingappa@everpuredata.com,
rpatil@everpuredata.com, linux-rdma@vger.kernel.org,
netdev@vger.kernel.org, linux-kselftest@vger.kernel.org,
linux-kernel@vger.kernel.org,
Tim Menninger <tmenninger@everpuredata.com>
Subject: [PATCH v2 0/3] Spread rdma_cm connections across ECMP paths
Date: Thu, 3 Dec 2026 23:47:17 +0000 [thread overview]
Message-ID: <20261203234720.2428689-1-tmenninger@everpuredata.com> (raw)
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
next reply other threads:[~2026-12-03 23:48 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-12-03 23:47 Tim Menninger [this message]
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20261203234720.2428689-1-tmenninger@everpuredata.com \
--to=tmenninger@everpuredata.com \
--cc=bharat@chelsio.com \
--cc=davem@davemloft.net \
--cc=dsahern@kernel.org \
--cc=edumazet@kernel.org \
--cc=horms@kernel.org \
--cc=idosch@nvidia.com \
--cc=jgg@ziepe.ca \
--cc=kuba@kernel.org \
--cc=leon@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-kselftest@vger.kernel.org \
--cc=linux-rdma@vger.kernel.org \
--cc=netdev@vger.kernel.org \
--cc=pabeni@redhat.com \
--cc=rpatil@everpuredata.com \
--cc=shuah@kernel.org \
--cc=slingappa@everpuredata.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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®