From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=209.85.217.99 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796222660; b=gXCXFhAyDFSbhzgcVRmRL3oVZzR/cgXVkgBEGbktzWsdB7jARiABZ+OyMC6A1jaTODM4 PhIf9GZa2OxR00T2eMvIzYNH0qKg7BXQH3PCMDr1niU5b3JAsIFP/cPRh9wPRCIiPD8oA LAx4NeufkWio7dhuEiyF4E6uurJyFWF0GN3+sOHNfCAb0C7akwQlcBhYcGJPheyDWnvx7 /Mvr+/bDtumR0MgkYRFfuO/oBvWj5CpjJthyCOemHr7YighgbHAFswkLVDjG29COpMRiN EuHMW8Wfo7SRFDHF36PCQ0qN9P20wUYQL1jFJDSzsoCvW4PpoFLV4ophPiNAPGYDH6Q== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796222660; h=DMARC-Filter:Received:DKIM-Signature:X-Google-DKIM-Signature: X-Forwarded-Encrypted:X-Gm-Message-State:X-Gm-Gg:X-Received:Received: X-Relaying-Domain:Received:From:To:Cc:Subject:Date:Message-ID: X-Mailer:In-Reply-To:References:MIME-Version:Content-Type: Content-Transfer-Encoding; bh=RUr8BQis8BoylNwZK+edVFOFZlfz3CnolPJek01ojaI=; b=kAox0X1R+kwrn0c7RWgTkO3XO5lFfgc1/QKrwYxreQ2j6hi9ORzYRAB3WmfXFtTJPNV7 6OgqI4gVBCGL16GM9xprDazEef0ar8gy4hU3XNvdVIjs/a4n+WXRNa/f6oV2BYRqt6nz3 CWjvyuovo3Vb9iZYG4M876IX2FGKOuaCPc/pVXoCc5Os5B+wZ2kmrynZPKBqxf6BGqE1I JqOSwVZ/0g1yRnL2VHiTemZ3a+4wmAsmmHBI4eZ4/iImAMZ0OkTpeDgJcW9njMDqZWCD7 48sJmbt9JV7ct8SNHub8gXkxK22Ka6/RcOFRTiguIidIlcibHFxXq69Rv4MbRzWxEbQ== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=everpuredata.com; spf=pass smtp.mailfrom=everpuredata.com; dkim=pass header.d=everpuredata.com header.i=@everpuredata.com header.a=rsa-sha256 header.s=google header.b=egcftyXL; arc=none smtp.remote-ip=209.85.217.99 Received: from mail-vs1-f99.google.com (mail-vs1-f99.google.com [209.85.217.99]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 498BA606A32D for ; Wed, 2 Dec 2026 14:44:15 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 498BA606A32D Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=everpuredata.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=everpuredata.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key, unprotected) header.d=everpuredata.com header.i=@everpuredata.com header.a=rsa-sha256 header.s=google header.b=egcftyXL Received: by mail-vs1-f99.google.com with SMTP id ada2fe7eead31-7cc013095d4so5337518137.2 for ; Wed, 02 Dec 2026 06:44:15 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=everpuredata.com; s=google; t=1796222654; x=1796827454; darn=vger.kernel.org; h=content-transfer-encoding:content-type:mime-version:references :in-reply-to:message-id:date:subject:cc:to:from:from:to:cc:subject :date:message-id:reply-to:content-type; bh=RUr8BQis8BoylNwZK+edVFOFZlfz3CnolPJek01ojaI=; b=egcftyXLt6xKo0WdaijF7W2ycTZWnxKAI4h/F2JNs27UlR67w+eoNSKSmeKKXmbg74 w6PTBVe6FP6fFrpw/TJ01KWDz+qNkon7Kj5olmV7so6lYXe/g9dETE2UmFiYSoZeLi3d 4g/2Zcm/IrkTdnj4h/C/CkyL3+8ZThBrWZDvtSE7aevU7Ec2boFLyH8XyyHbMZFhQrut NgrDDPZP/0igIVaFG7rwOvHH714S9DiQ8N0N92Rt44pXbZx+4wLboY7JlGKbkaIrCVlb 7uaIm+QMqxK9Raq1JTISER0rnb5YweRXhNVf6MAu0vk6s1FfHfcm2ZzyYLfhWWSBc8Pd 86jA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1796222654; x=1796827454; h=content-transfer-encoding:content-type:mime-version:references :in-reply-to:message-id:date:subject:cc:to:from:x-gm-gg :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to :content-type; bh=RUr8BQis8BoylNwZK+edVFOFZlfz3CnolPJek01ojaI=; b=jJpTTYgptZ2nqpBnD/vXdg5JJ6cWv6V5zKpwJ+eqEP5L3e5OhTPXaIinHGtWvK+wAa EbyfQRx2iqo58OxNaDmltW0N3WHvXtw5WSY7rKyHjgTsALCCJVGNWrd+Vdm0wmIlBxWB wV0BKZxgGqrAXAKfcjbaVDiK2aEGggu08KPT38cvha+oOCaaryF2dK4L2XpEH5UUTs/Q a9O0FnYoaEH+6lnhszhezmh8InhA873+DzSpze6Aol2D7tb1ebRxkBeWedZG/xRm3wjj oty9rCQZd++M16PhZQrPuGSRtSeeGLx54poFLA1k9gK1OQC3O+Y8OyjzBAUEb138Cx+W ZStw== X-Forwarded-Encrypted: i=1; AL+hErHrr7keD5z5IjITxQ7anedshFTrGukP9fm/DZJFed+C/Jqtpld7HcMP/rGVCE9nAk9x6TFQB2s=@vger.kernel.org X-Gm-Message-State: APuU4Z+/B/h5c6VAk4jPs8x9hewWsxz95+r+m54K6tfjYzb7pAfM33Wq kPcDvi8tDyj+YUEXPRE6WXk8sYr5vhmvgOVVDaBksG6RqmflQ5cn0hVLe7qBs51VP0PgZIG0lyc 6itUpSlJvvWy4LwL4aN8pB/kXiNpODRm9tesr X-Gm-Gg: AZFdTZenqXkeW3I/TSQ9QyQa4TdbybyExHBI01qVoP+zkZn7Squ0KhyX/WiuiCNjorg YkStOf+EIT23X3Fiuno+8V/c6V2jptxXLpbqHlEpbF/dKCu4yr2z1JlAXrxSF08YY53egx2//89 IGKv6pOlJoTOJx0Bs7B1DWNqCt117A0Mu6V662+inl/UeGWjA8hgkfF4hkDeFMwSLQh7JhqPHum T9r1Ehkub/PKupSfLyAT71EcJBbQZeeMRMZMf4FSP2QFMLq1kj3q1sxN4tNs95k0WVkbWFdEZ1F q36W8APSrBPtcbzXgby6NESctN8XyJw5L5X4MAyN8ZRb6jhZzHi1tCl6EGftC627ejffL2g/1Wp sFgwo/AVBtA6UEACtoCMk8iwwC9lOa5xbHMSlWyk= X-Received: by 2002:a05:6102:580b:b0:7b2:7490:fd75 with SMTP id ada2fe7eead31-7d7393c670emr26694677137.7.1796222654068; Wed, 02 Dec 2026 06:44:14 -0800 (PST) Received: from c14-smtp-2023.dev.purestorage.com ([208.88.158.129]) by smtp-relay.gmail.com with ESMTPS id a1e0cc1a2514c-99e6e0fe353sm2952176241.6.2026.12.02.06.44.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 02 Dec 2026 06:44:14 -0800 (PST) X-Relaying-Domain: everpuredata.com Received: from irdv-tmenninger.dev.purestorage.com (irdv-tmenninger.dev.purestorage.com [10.32.149.15]) by c14-smtp-2023.dev.purestorage.com (Postfix) with ESMTPS id 1C9783405E8; Wed, 2 Dec 2026 06:43:43 -0800 (PST) From: tmenninger@everpuredata.com To: leon@kernel.org 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, tmenninger@everpuredata.com Subject: Re: [PATCH] RDMA/core: Use the CM source port in IP route lookups Date: Wed, 2 Dec 2026 14:43:42 +0000 Message-ID: <20261202144342.840594-1-tmenninger@everpuredata.com> X-Mailer: git-send-email 2.53.0 In-Reply-To: <20261202111828.GL31440@unreal> References: <20261202111828.GL31440@unreal> 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-Transfer-Encoding: 8bit > 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. 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. Thanks, Tim