From: Leon Romanovsky <leon@kernel.org>
To: tmenninger@everpuredata.com
Cc: dsahern@kernel.org, idosch@nvidia.com, jgg@ziepe.ca,
linux-rdma@vger.kernel.org, netdev@vger.kernel.org,
rpatil@everpuredata.com, slingappa@everpuredata.com
Subject: Re: [PATCH] RDMA/core: Use the CM source port in IP route lookups
Date: Thu, 3 Dec 2026 14:19:52 +0200 [thread overview]
Message-ID: <20261203121952.GR31440@unreal> (raw)
In-Reply-To: <20261202144342.840594-1-tmenninger@everpuredata.com>
On Wed, Dec 02, 2026 at 02:43:42PM +0000, tmenninger@everpuredata.com wrote:
> > I asked AI to see if it breaks something and it claims that the commit broke
> > IPv6 RoCE address resolution on ECMP nexthop groups by selecting an outgoing
> > interface while using another interface’s source address. Chelsio is also
> > broken with this change.
> >
> > Thanks
>
> Hi Leon,
>
> Thanks, I reproduced the IPv6 case. For a nexthop group, the source address
> comes from the group's first member, not the selected path. That already
> fails on v7.4-rc3 when the port-0 hash picks another member, and this patch
> exposes it per connection. Would it be acceptable to fix that first in
> addr6_resolve()? For a wildcard source only, when the chosen address isn't
> on the egress device, it would pick one there with ipv6_dev_get_saddr().
> That made every ID resolve in my testing.
>
> I can also drop the fl6_sport change in v2, keeping this patch IPv4-only, and
> send the IPv6 fix separately. IPv4 picks the source after the nexthop, so it
> isn't affected.
It would be good for the IPv4 and IPv6 paths to behave consistently. Please
send all fixes together.
>
> For Chelsio, could you share a reproducer, including the address family
> and whether the source address was bound? c4iw_connect() does its own
> route lookup on the TCP 4-tuple, but rdma_cm's lookup still picks the
> device, so I may be missing a case. I don't have Chelsio hardware to test.
I don't have either.
---- from AI :
Chelsio IPv6 iWARP has a separate connect-time failure path. With two separate adapters,
CM can select one adapter using the source port. cxgb_find_route6() repeats the lookup
with port zero and rejects an egress belonging to the other adapter. c4iw_connect()
then returns -EHOSTUNREACH. I reproduced the routing mismatch in a network namespace
and verified the error path in source. A hardware connect test remains outstanding
-----------
>
> Thanks,
> Tim
>
next prev parent reply other threads:[~2026-12-03 12:19 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-30 19:36 [PATCH] RDMA/core: Use the CM source port in IP route lookups Tim Menninger
2026-12-02 11:18 ` Leon Romanovsky
2026-12-02 14:43 ` tmenninger
2026-12-03 12:19 ` Leon Romanovsky [this message]
2026-12-03 15:17 ` Tim Menninger
2026-12-03 20:10 ` Leon Romanovsky
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=20261203121952.GR31440@unreal \
--to=leon@kernel.org \
--cc=dsahern@kernel.org \
--cc=idosch@nvidia.com \
--cc=jgg@ziepe.ca \
--cc=linux-rdma@vger.kernel.org \
--cc=netdev@vger.kernel.org \
--cc=rpatil@everpuredata.com \
--cc=slingappa@everpuredata.com \
--cc=tmenninger@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