Article View: linux.kernel.netdev
Article #26364Re: [PATCH] RDMA/core: Use the CM source port in IP route lookups
From: Leon Romanovsky
Date: Thu, 03 Dec 2026 12:19
Date: Thu, 03 Dec 2026 12:19
45 lines
9813 bytes
9813 bytes
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 >
Technical Details
Message-ID:
<20261203121952.GR31440@unreal>Path:
mbox-mo1.pugleaf.net!srv.newsdeef.eu.MISMATCH!feed-us-txt.newsdeef.eu!feed-us-ny.newsdeef.eu!srv.newsdeef.eu!feed-eu-txt.newsdeef.eu!feed-eu-ch.newsdeef.eu!srl.newsdeef.eu!news.mb-net.net!open-news-network.org!news.nntp4.net!nntp.xenet.de!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-376589-linux-kernel-netdev=dewy.ruReferences:
<20261202111828.GL31440@unreal> <20261202144342.840594-1-tmenninger@everpuredata.com>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!srv.newsdeef.eu.MISMATCH!feed-us-txt.newsdeef.eu!feed-us-ny.newsdeef.eu!srv.newsdeef.eu!feed-eu-txt.newsdeef.eu!feed-eu-ch.newsdeef.eu!srl.newsdeef.eu!news.mb-net.net!open-news-network.org!news.nntp4.net!nntp.xenet.de!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-376589-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 14:19:52 +0200 Organization: Usenet Network Message-ID: <20261203121952.GR31440@unreal> References: <20261202111828.GL31440@unreal> <20261202144342.840594-1-tmenninger@everpuredata.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: usenet.network; logging-data="2485128"; mail-complaints-to="abuse@usenet.network" Cancel-Lock: sha1:+b/REsZHUy8L3S1RT0tEchuvZFY= sha256:7yLOTtBZVJZ4+c1fXlXwa4GF7OSHWRDhKHxtWBzJXjI= sha1:Y3GuvAoZx8ODeaMdNAeMr6AfPOU= sha256:v37pRs8Bdgld2SZyls2k5hHXIRyxxaz69sP/omowknI= 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 B70AA117933; Thu, 3 Dec 2026 15:20:13 +0300 (MSK) X-Virus-Scanned: Debian amavisd-new at usenet.network X-Spam-Flag: NO X-Spam-Score: -3.64 X-Spam-Status: No, score=-3.64 tagged_above=-9999 required=6.31 tests=[DCC_REPUT_70_89=0.1, 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 2yhnDGpeIGMC; Thu, 3 Dec 2026 15:20:11 +0300 (MSK) X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.234.253.10; helo=sea.lore.kernel.org; envelope-from=netdev+bounces-376589-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 sea.lore.kernel.org (sea.lore.kernel.org [172.234.253.10]) by mail.dewy.ru (Postfix) with ESMTPS id A828811792D; Thu, 3 Dec 2026 15:20:02 +0300 (MSK) X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.77.114.92]) by sea.lore.kernel.org (Postfix) with ESMTP id 1DECD2DB7F; Thu, 3 Dec 2026 12:19:58 +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=1796300397; b=0JemoVOUtiSFkkPeA75jR9x180g1UwZ0NPfmLDLEyr39WhdTU6zA3LrvGFS9av3aI2Z8 jOAW9biGnqa/+ARv0fFP51fS2eQuhlG/VMCdXy4GJ8f7otNZ4JCA8gJ6mvVfMJrc4lHVe 9+Nn5TTOVNC5dkjZ2e9bLS1Rf7zwzpVTCBuYdDdrqwEHp0mHJlJcORXobU7a3SFLNbfi3 3UqlNbDCj/a1a0gjoVFCKVRoxm6MceWcJP2Y1ge7GCuu65i2h3TsEqoc4C26+4IhhydSJ fqbsdKl6uuZNALKALNRXFCFiHscybC5JbIdcpZagPEqUWF+FCWOZWXfNjLPu9dhUR1A== X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796300397; 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: Content-Transfer-Encoding:In-Reply-To; bh=udFDwbOaVsMi4lxdonu9V5Rkx6JnMAFTAVkKVAv2rqI=; b=D5RlFxZZ5I9s7pYHWTds+eL09/Zmox4cBMBoFlo9vFvemjCAEu5yhTpTXvcpXtyZmT3n 7uQnAyJduj/5QegaNT5EvQdyAuw6qlufXeuroelik/s2uj14Fhevia9YCBA6JtKPU8O2V 2ykPNthE2kKpxutcFceuPU0P8JN4nIUNoFA66s7/jjEdm+egKNWCqhjeU3wkqxbQa3nYv lhV4QJhtxd0QVG2sqNH54OMSOyBnqoq4aheVZFwH1Gl7CVrGZ80pT8KwZH3prxhle/qJN NLu/9g2aDvZ/Uv4PUFbwoEHPgLOdeoKcIEvuvXtNQj4sgOMsd7RNXEavjBR3VSUZXZA== 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=DwZcrds3; 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 62C42606A337; Thu, 3 Dec 2026 12:19:57 +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=DwZcrds3 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=1796300396; b=M7A/QCn5j2ZTMkwUEjLq/VACUm6/JrkrZJrvxW/ynqOEW2vJ2pRkH5OZYkbTzrMOEm40 rOD5IT39ZF8IXIHXxWqLOjJEdoeXfrVQxzz6mTM1G8Yq6ChM7XZloOqsqmWUFBUS8F1+G yIG6QyezqNzWObHCWAj44SZwJR1vzU+fNs4k58LuS6MYk2W0GaUmxnOvqep/r/h6bQGNE 0wiM1nGn37WPuIg4cSEAeKVQb4iqVjosYeDWpqwHPk00ezkfCel0t3H9sWIHU9oh9v/1Z vP2kUDFo1WafoRYIhC8EGCMtLdU62jdEFtWPeJbZB2ucW9x9fDuK72MMGtDYoQ6MzYw== X-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== 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=DwZcrds3; 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 84FEE606A32D; Thu, 3 Dec 2026 12:19:56 +0000 (UTC) X-Received: by smtp.kernel.org (Postfix) with ESMTPSA id 805DF1F0089B; Thu, 3 Dec 2026 12:19:55 +0000 (UTC) X-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== X-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 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: <20261202144342.840594-1-tmenninger@everpuredata.com>