Article View: linux.kernel.netdev
Article #26571Re: [PATCH] RDMA/core: Use the CM source port in IP route lookups
From: Leon Romanovsky
Date: Thu, 03 Dec 2026 20:10
Date: Thu, 03 Dec 2026 20:10
41 lines
9390 bytes
9390 bytes
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 >
Technical Details
Message-ID:
<20261203201026.GB31440@unreal>Path:
mbox-mo1.pugleaf.net!news-fra.pugleaf.net!feed-eu-txt.newsdeef.eu!feed-eu-ch.newsdeef.eu!srl.newsdeef.eu!newsfeed.bofh.team!news.nntp4.net!nntp.xenet.de!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-376846-linux-kernel-netdev=dewy.ruReferences:
<20261203121952.GR31440@unreal> <20261203151704.2171727-1-tmenninger@everpuredata.com>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-fra.pugleaf.net!feed-eu-txt.newsdeef.eu!feed-eu-ch.newsdeef.eu!srl.newsdeef.eu!newsfeed.bofh.team!news.nntp4.net!nntp.xenet.de!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-376846-linux-kernel-netdev=dewy.ru From: leon@kernel.org (Leon Romanovsky) Newsgroups: linux.kernel.netdev Subject: Re: [PATCH] RDMA/core: Use the CM source port in IP route lookups Date: Thu, 3 Dec 2026 22:10:26 +0200 Organization: Usenet Network Message-ID: <20261203201026.GB31440@unreal> References: <20261203121952.GR31440@unreal> <20261203151704.2171727-1-tmenninger@everpuredata.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Injection-Info: usenet.network; logging-data="2584658"; mail-complaints-to="abuse@usenet.network" Cancel-Lock: sha1:tjDHyBtCBZti+J40SoaHSojoBco= sha256:gT0QZTdrzx/6nH2vN8WnbWWlhOY9xZgXG8R7WCPY+cQ= sha1:l/UjZtIVll7n7kx3WQJFjM+1Azo= sha256:t8DXVIQDLLO3BCNxfauf7IF92Jm5VK4YPINHhv73wmk= Content-Disposition: inline List-ID: <netdev.vger.kernel.org> X-Mailpost-Empty-Hdrs: X-Spam-Level X-Received: from localhost (localhost [127.0.0.1]) by mail.dewy.ru (Postfix) with ESMTP id 52523117A26; Thu, 3 Dec 2026 23:10:45 +0300 (MSK) X-Virus-Scanned: Debian amavisd-new at usenet.network X-Spam-Flag: NO X-Spam-Score: -3.74 X-Spam-Status: No, score=-3.74 tagged_above=-9999 required=6.31 tests=[DKIMWL_WL_HIGH=-0.24, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, MAILING_LIST_MULTI=-1, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001, SPF_PASS=-0.001] autolearn=ham autolearn_force=no X-Authentication-Results: mail.dewy.ru (amavisd-new); dkim=pass (2048-bit key) header.d=kernel.org X-Received: from mail.dewy.ru ([127.0.0.1]) by localhost (mail.dewy.ru [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id Azub3cMtPcIO; Thu, 3 Dec 2026 23:10:43 +0300 (MSK) X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.232.135.74; helo=sto.lore.kernel.org; envelope-from=netdev+bounces-376846-linux-kernel-netdev=dewy.ru@vger.kernel.org; receiver=<UNKNOWN> X-Authentication-Results: OpenDMARC; dmarc=pass (p=quarantine dis=none) header.from=kernel.org X-Received: from sto.lore.kernel.org (sto.lore.kernel.org [172.232.135.74]) by mail.dewy.ru (Postfix) with ESMTPS id DA5681179D5; Thu, 3 Dec 2026 23:10:33 +0300 (MSK) X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.77.114.92]) by sto.lore.kernel.org (Postfix) with ESMTP id 3A6146018EE; Thu, 3 Dec 2026 20:10:33 +0000 (UTC) X-Authentication-Results: smtp.subspace.kernel.org; arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1 X-ARC-Seal: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=pass; t=1796328630; b=5ITiUEme/5UHfAVlOscRml+druiSnpjkEUKgZZ1HobzQJsw4MF+ubQss4mf8agbbSKEl n0dqXb1Xh4g5BrgAOt2S5qO1JsnfxljT1uq+8ly6wz31ZwxlKIXCG0l67GKZmjh7rMGxQ sNyBByLVpjL5fdE55Q1m1Y1JBdeGvSidkJSLHViB+Y1Ddh2wMLJsw51g0N9xaW0djiW7m CgxyB2O9OQQuWgLqsrtZk+s1wTUJgGLKKB/ftaiN0R+YPE5rmjCF2Ir9OLl3xmMaj4vtZ Qh8qE590r/e+P5qE1JY5wMyjpKIYYJ8Gmb41D+VRhJ3KOeQmMSaMZJJgFtrahZYiryw== X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796328630; h=X-Original-To:Received:Received:DKIM-Signature:Date:From:To:Cc: Subject:Message-ID:References:X-Mailing-List:List-Id:List-Post: List-Help:List-Subscribe:List-Unsubscribe:List-Owner:Precedence: MIME-Version:Content-Type:Content-Disposition:In-Reply-To; bh=0rX+IPUq/0UbeS2Wdo8OH0NM4OQxkaF6TnfDhxTERJs=; b=U8KXpf42Pbzsuz5/z2CO3oizLShqKvZZ/qrQKkc5DGvFlat0m8IL7T/Hu/BPVuj6btWx 2npwAZEUGM6gEaceWiiCScvPTK99SqQuUOfg3gpsQTF4jU5DeYfo4dxsGvrGPqT8zDh+7 m+C+6Q98ObS9JbMd4jfLfVlbSQv0lTK0lP1A0NPV1tsawUmwK2/0eLnXmgoqqxlKPZGwj GJ/x2hG7SHdXzclYwSuVCRezaHgUgqDa6kb+5K1S1EVCSDY6CpMLBqky5dpvdUYJksj7O CkpzDsSvW02RwHRo/6tqqv8pkjQk3II3u+voWdp5YC0O2sRePTOTblDj10yjuVzMZDA== X-ARC-Authentication-Results: i=2; 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=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1 X-Received: from localhost.localdomain (localhost [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id AE1AD606A338; Thu, 3 Dec 2026 20:10:30 +0000 (UTC) X-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 X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 X-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== X-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== X-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 X-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) X-Received: by smtp.kernel.org (Postfix) with ESMTPSA id B3AF51F000CE; Thu, 3 Dec 2026 20:10:28 +0000 (UTC) X-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== X-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 X-Mailing-List: netdev@vger.kernel.org X-List-Post: <mailto:netdev@vger.kernel.org> X-List-Help: <mailto:netdev+help@vger.kernel.org> X-List-Subscribe: <mailto:netdev+subscribe@vger.kernel.org> X-List-Unsubscribe: <mailto:netdev+unsubscribe@vger.kernel.org> X-List-Owner: <mailto:netdev+owner@vger.kernel.org> X-Precedence: list X-In-Reply-To: <20261203151704.2171727-1-tmenninger@everpuredata.com>