Netdev List
 help / color / mirror / Atom feed
From: tmenninger@everpuredata.com
To: leon@kernel.org
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,
	tmenninger@everpuredata.com
Subject: Re: [PATCH] RDMA/core: Use the CM source port in IP route lookups
Date: Wed,  2 Dec 2026 14:43:42 +0000	[thread overview]
Message-ID: <20261202144342.840594-1-tmenninger@everpuredata.com> (raw)
In-Reply-To: <20261202111828.GL31440@unreal>

> 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.

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.

Thanks,
Tim

  reply	other threads:[~2026-12-02 14:44 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 [this message]
2026-12-03 12:19     ` Leon Romanovsky
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=20261202144342.840594-1-tmenninger@everpuredata.com \
    --to=tmenninger@everpuredata.com \
    --cc=dsahern@kernel.org \
    --cc=idosch@nvidia.com \
    --cc=jgg@ziepe.ca \
    --cc=leon@kernel.org \
    --cc=linux-rdma@vger.kernel.org \
    --cc=netdev@vger.kernel.org \
    --cc=rpatil@everpuredata.com \
    --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