On Wed, Dec 02, 2026 at 02:43:42PM +0000, tmen…@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 >