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=1796328629; b=S3ueopnbcMK4PMb3GLEf8Ttg+rhBHGbGtFgDbmKfNSSxdq3uS1FRfpz8MYAsro/oLDIz PCigvw572JItL9kXNXVi9IkskjBT+eXQLc8iIcVbbgVNCo7WcnboJwaCmK2Ra702VBEno fDFF4h9Usea59Qd+Ez0frf04bfhP5wLrM525VWvtyvHFnni4rPBXOjMhMCt9iHACItXGY KfweYC/EL0KGaX0OKOiOuaKqRj19BVMDpYia5Nfr82+Lx0RTaDVb0uXgsCajb7qSDqwdI dwP2n7BZOEcaAp3czvxvJt6gjRJ0mdEbi83ITtD9ZpsRFbK0WcqK1fc+DqVXm3Av7oA== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796328629; h=Received:DKIM-Signature:Date:From:To:Cc:Subject:Message-ID: References:MIME-Version:Content-Type:Content-Disposition:In-Reply-To; bh=0rX+IPUq/0UbeS2Wdo8OH0NM4OQxkaF6TnfDhxTERJs=; b=y/UMCbvBgDApUMaS4bCZpIP2KCpRIyvybmJ7bQukXLVFEOVjFz/KwNQ2xAOJo1CKGaa8 tacGyB7x1mRCH1uAeH7IzrJv67D7rnPRpSVAPU6WTpi6fLzOC7vXdmtAWFBylaWv8J3xI RJb2cdJ/g8E3ah8GsJ+KciF1hnofkwfByWV1siVXjOfImbFd5hD1Dc3JvZf7hE10X7rmt 8B6Rw8f228vLCBNI1ecQCoblUnzEc7vVo4cXil+Khp6VuacRnfxjcxo8FlTWb5rYUm1gl mIO2bC/0kw7p0nCzhqHTfRjTEIWFTjR+pRcatCVZj/HuP4XgDp+KUaqkns9hvYJwUfw== 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=XccnK9Zh; 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 C9FF4606A322; Thu, 3 Dec 2026 20:10:29 +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=XccnK9Zh Received: by smtp.kernel.org (Postfix) with ESMTPSA id B3AF51F000CE; Thu, 3 Dec 2026 20:10:28 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1796328629; bh=0rX+IPUq/0UbeS2Wdo8OH0NM4OQxkaF6TnfDhxTERJs=; h=Date:From:To:Cc:Subject:References:In-Reply-To; b=XccnK9ZhUUwRA//mctk8hlU0Z6/orGSMw/E5/u/sfKRxEMSadE16ODj4JVezRme3h vtli1G0kKJaE0/xQBZAqMQwJjr4F/vgYLzbmrUGOxhdtq/RoyDn19mLqPpPOFjS5U5 6T/Ev9b0UIqjTQdc29z3YyzUwjWwNKOzivL5X9BpBOuqgy1X69r/Ge2wvb1FJyurJy 8cA3V9x13GoKwQor13krxhGErNuC4y00U35p78k63VcaQ4kgT5grkVSpWMow1cCWjI 24HXkUvG08cc5NrGIvmPUa+5YiMSnGhBbQSgoCnyarmq3vdi1I9OIUs+QW5whBmNKG 30nQUgSMLMqxw== Date: Thu, 3 Dec 2026 22:10:26 +0200 From: Leon Romanovsky To: Tim Menninger Cc: bharat@chelsio.com, jgg@ziepe.ca, linux-rdma@vger.kernel.org, netdev@vger.kernel.org, dsahern@kernel.org, idosch@nvidia.com, slingappa@everpuredata.com, rpatil@everpuredata.com Subject: Re: [PATCH] RDMA/core: Use the CM source port in IP route lookups Message-ID: <20261203201026.GB31440@unreal> References: <20261203121952.GR31440@unreal> <20261203151704.2171727-1-tmenninger@everpuredata.com> X-Mailing-List: linux-rdma@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=us-ascii Content-Disposition: inline In-Reply-To: <20261203151704.2171727-1-tmenninger@everpuredata.com> On Thu, Dec 03, 2026 at 03:17:04PM +0000, Tim Menninger wrote: > Hi Leon, > > > 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 > > ----------- > > I looked into the Chelsio mismatch further, and it is a pre-existing > issue rather than something specific to the source-port change. > Replaying both lookups with "ip route get" over two-way ECMP, treating > each port as a separate adapter, the IPv4 lookups disagreed for 93 of > 200 connections before the change and 97 of 200 after. The IPv6 lookups > were all or nothing per destination before, with some destinations > disagreeing for every connection, and the source port makes it per > connection. So I understand the regression concern for IPv6. > > I have a candidate fix that retries the lookup restricted to the > adapter's own ports, but it raises questions around policy routing, VLAN > interfaces and the iSCSI target, which shares the libcxgb helpers. I > also don't have Chelsio hardware to test it. > > Would you be open to handling the Chelsio lookup separately? If so, I'll > send v2 with the IPv6 source address fix, a selftest for it and the > source port change. Yes, let's handle Chelsio separately, since none of us can test it. Thanks > > Adding Bharat for the Chelsio side. > > Thanks, > Tim >