From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796300396; b=M7A/QCn5j2ZTMkwUEjLq/VACUm6/JrkrZJrvxW/ynqOEW2vJ2pRkH5OZYkbTzrMOEm40 rOD5IT39ZF8IXIHXxWqLOjJEdoeXfrVQxzz6mTM1G8Yq6ChM7XZloOqsqmWUFBUS8F1+G yIG6QyezqNzWObHCWAj44SZwJR1vzU+fNs4k58LuS6MYk2W0GaUmxnOvqep/r/h6bQGNE 0wiM1nGn37WPuIg4cSEAeKVQb4iqVjosYeDWpqwHPk00ezkfCel0t3H9sWIHU9oh9v/1Z vP2kUDFo1WafoRYIhC8EGCMtLdU62jdEFtWPeJbZB2ucW9x9fDuK72MMGtDYoQ6MzYw== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796300396; h=Received:DKIM-Signature:Date:From:To:Cc:Subject:Message-ID: References:MIME-Version:Content-Type:Content-Disposition: Content-Transfer-Encoding:In-Reply-To; bh=udFDwbOaVsMi4lxdonu9V5Rkx6JnMAFTAVkKVAv2rqI=; b=bZ05cXXCY+t3QyEDc5kWmcHvAn1ICkm+WRVQQKQD6sEhlpsVxPGSKuW03T/UZBba815N tMlCrIPgcSsZco/TOLQmnoRAvpC3+PKffwDQ0sFDY00Jw8Fc8+PY0zwufi9cBHfqpt6a3 ybIqNvwcDAu8UkznRp36K+kCd4qPMI+ZZ6UttJQhb9ZvvMmaLRD77yq/8U+gzNpWUOq9m 06WXLYDk8eK4xUmwstf5SzlxnfHYUgCnhcfMzleagf0tDKh2yVm/0AV2LG/YlSlMY3xiP oQHrG2uwu0kaRtcbKQCaZf8gijWjtyWydaC3EKgRwXNgK5AAZBjr64kc+nIc84rPd0g== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=DwZcrds3; arc=none smtp.remote-ip=100.103.45.18 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 84FEE606A32D; Thu, 3 Dec 2026 12:19:56 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=DwZcrds3 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 805DF1F0089B; Thu, 3 Dec 2026 12:19:55 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1796300396; bh=udFDwbOaVsMi4lxdonu9V5Rkx6JnMAFTAVkKVAv2rqI=; h=Date:From:To:Cc:Subject:References:In-Reply-To; b=DwZcrds3vhRTgDu1tH5q4JipV58sSP+OuKSV7EuwwK5/nHlCogS0NfUXYnWkpgvhT 08UFAV58QhkYPrLA5rBFg3do527wMXw8K/phj9e4Q6ppp04r9KXPYYdK0SNNKN1xEq sxOlupJo4CLQIItG0guY/ZkAzUYujP65YDG+p8FgD7KgH3il/5qhGsE38Fx9MY3tl1 Vq04NbZ1veDx+52A+3GqJE9oSL7WNuBX2XRu5YrLAUGvVjwUc19Nuu5dKyfq3HHECT fm2F2pWsEpYmSUAceHwlPJ9eQsodbYgFbSBZ/sym+VLy5iPvhJlCM8Hjlf56F1VNOb qOwKNeA6GSsvA== Date: Thu, 3 Dec 2026 14:19:52 +0200 From: Leon Romanovsky 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 Message-ID: <20261203121952.GR31440@unreal> References: <20261202111828.GL31440@unreal> <20261202144342.840594-1-tmenninger@everpuredata.com> X-Mailing-List: netdev@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit 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 >