From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=209.85.128.97 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796341697; b=QHHdZ/qna266iUP3cOXvvQcRs8e1xRSQj3xJAsSa81+DAs4mcwIhxNEbxXK03v6/oue2 GEUw5C66D70i1PDLK5kOOd7NbmNwqF05oo7CzdWYTyWJLTK8/q5y/uZFa9ojfBdrwWM/j jLTBhck8CZWEQjjsxNsvfz69bFSB0RjDRh0gmASFD8P4lcw3igdnmD0Owr7Z5VYwkTpkW 0cjsTZnSJN0WNzKIxvDKWvMnbjd0bucVvcOGkdGtw/tPxRgK+BRkpPJz/ywWB1AXKJfyu 6qwy1FeXkhm9eUI1iFKNh0jCxkfwO32tFbfySA3yfQpIgPfFtiiwvWjSsfanmmwRpVQ== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796341697; 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:MIME-Version:Content-Transfer-Encoding; bh=O8xFOa40RCEykdyB2pxWOHmDb6mUlvaLZlrcaW3DoJQ=; b=xhFxW55L+FBzoxmdU9MmMySBwi3ZxTAGT8LVDg3tPiTpZqvV0dHb1B5LYdFjZjtc3OaB wk7lflLjZjiaavWdEShyof/b36YswCfjH2dEIPVyXfda8dNsY1MWjDWYDeqOPHixFlfBi 2jb38tiXUaB+dMfw4aQK4v9extDqblY4zo2fGnoe9eiJZ4HwcHybAuGIGUvKIqejd/zlV GdKAuEYrNecvnRX2unLglrBgfA52XXyfansDNrxxSmuxtUa10w+U6LcytUTq5NtNI0BpH rcqTy38A4TmgUj6yrU+t1ujfyYOYhnLAx5KLxT4eHT49tFxEIxlahlnl8L81TeQihRg== 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=l0RtYJyT; arc=none smtp.remote-ip=209.85.128.97 Received: from mail-wm1-f97.google.com (mail-wm1-f97.google.com [209.85.128.97]) (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 E9182606A32F for ; Thu, 3 Dec 2026 23:48:15 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org E9182606A32F 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) header.d=everpuredata.com header.i=@everpuredata.com header.a=rsa-sha256 header.s=google header.b=l0RtYJyT Received: by mail-wm1-f97.google.com with SMTP id 5b1f17b1804b1-4b467581b98so2261405e9.0 for ; Thu, 03 Dec 2026 15:48:15 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=everpuredata.com; s=google; t=1796341694; x=1796946494; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to:content-type; bh=O8xFOa40RCEykdyB2pxWOHmDb6mUlvaLZlrcaW3DoJQ=; b=l0RtYJyTPPV+rkSbA5Y7qjfuhUcpw+NIAjKT/oHXt/L/qTVRZxMjRjvAZG0IMni3Gy 4HJGgPDY0rDvEohD5u+9Y2hRCh7sf3gEiSPL6nfKB56Ya68Ktzx2CQ6OGvdqskylQdVR GktGhNpEjoYrqM/gtvHB/m8H4fRKnlNoKJ4nnTDbTm9Uu2euhruPF4EAXAr+yDSY9Cdt fgtSmPwzwLqnAdVRa1rjtfxHaprdwVFEC4aLX4DgILIfQkHKTsrIiMLY9jn5YoPFlmAp 0eZNXHzsl0VobtxN+aOuOfj9ifflqtqFHobCGcX10C4Syc4EPEFPNvsmtrzgqcC1QfOg 4BXw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1796341694; x=1796946494; h=content-transfer-encoding:mime-version: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=O8xFOa40RCEykdyB2pxWOHmDb6mUlvaLZlrcaW3DoJQ=; b=OzQO4W9qC/uDWo1IbBjS8O8nxhOFL+0iRJMKXIU52rF/FYjePNZi95R3Nxa2fffsS9 gRFSrZbm2StduzPUPIvoawsQTAamvfJ6MMtIloY2jGCDWO5H5NE8CVrt2GUXjTkci2/E iyYJWPNMv8uuQyohrmnRtj4H7uFDB3oDEXJQ01eVUyOIUwlfZeBK1651e64/s0auYKue xOcywhJFk6nc8EjjixW4XA2NIu1Jn9FoE+b+wYYliz8W5stRIzvyZYPdmZX2MkPkGrNY EX9qtEdk2k+AKBcgvMk49WUOSeQq4LA+rdtLyGI8MW1bdd2GDw7+P6nG9eBDwXUaBtxh HdPg== X-Forwarded-Encrypted: i=1; AL+hErHveqLGrM4oRdmLJy7iM2lAx+oft0xoaRkndCH5ctMbtaWl26SNf+61QRWtMT70lf0R0GpnS8JtiedFGRA=@vger.kernel.org X-Gm-Message-State: APuU4Z/U40KSc7wX1NbDhj7ROmOuGBgS3+jV0DNZ1TsCs+QmIaw6uoHN 3GkOoV8WomvbthrpI6XCQLIbxSes9GXcTAyucJe6hJL7ZVnEO2sZRGR443gOpjwMIS4BRED2uD2 WAMBUUzZxYnKkzWFskthL3QdPk1a94+W3mCJI X-Gm-Gg: AZFdTZcZKiyL5U/yV71w7MsJo91Tu+c2paIiZrtvvT2jzd7U4LDjF6TVvvrEtAaGLeI 5051kLDpxzEat7dZPjVi9oLqsHMhfsCLklX2LXe0uGg+DhYJCcmSloEnUXV36nGbdKzRqNG9I7a KcUQcTDQJsNIbRT4vNRN1eci7lvoNo0yxv1uZFTXxpcrOc45MEqBblcds+BVbKHRUv7gfTsI11T TXllLP+Bi0a6V8S2C+Imeo4GkE8PBZc+3pOP5vKWehzCMmaaDroNtGNOYR52GqkeKjGepL4O/zY xGketIJbHN1JdrRSRpo/fTwPkr8qtO9AfVWksHkDcNceo0WSHmeeAweU35TNC59sjsqRjoHFP4F SNOCOfxKGl8rektN3JOzGI2YDVtN2XAKSsxzfTgQ= X-Received: by 2002:a05:600c:4692:b0:4bb:7347:d5c0 with SMTP id 5b1f17b1804b1-4bbeb8cf4acmr3681565e9.9.1796341694436; Thu, 03 Dec 2026 15:48:14 -0800 (PST) Received: from c14-smtp-2023.dev.purestorage.com ([208.88.158.129]) by smtp-relay.gmail.com with ESMTPS id 5b1f17b1804b1-4bbeb6cba6asm115105e9.4.2026.12.03.15.48.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 03 Dec 2026 15:48: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 CB47334050C; Thu, 3 Dec 2026 15:48:12 -0800 (PST) From: Tim Menninger To: leon@kernel.org Cc: jgg@ziepe.ca, bharat@chelsio.com, dsahern@kernel.org, idosch@nvidia.com, davem@davemloft.net, edumazet@kernel.org, kuba@kernel.org, pabeni@redhat.com, horms@kernel.org, shuah@kernel.org, slingappa@everpuredata.com, rpatil@everpuredata.com, linux-rdma@vger.kernel.org, netdev@vger.kernel.org, linux-kselftest@vger.kernel.org, linux-kernel@vger.kernel.org, Tim Menninger Subject: [PATCH v2 0/3] Spread rdma_cm connections across ECMP paths Date: Thu, 3 Dec 2026 23:47:17 +0000 Message-ID: <20261203234720.2428689-1-tmenninger@everpuredata.com> X-Mailer: git-send-email 2.53.0 X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Transfer-Encoding: 8bit rdma_cm resolves routes with the flow's source port left zero, so every connection to one destination takes the same ECMP nexthop, even when the multipath hash includes L4 ports. On a client with two 400G ports and one NFS data server, that leaves one port idle and halves read throughput. Patch 3 fills in the CM source port for IPv4 and IPv6, as in v1. Leon pointed out two problems with v1. For a multipath nexthop group, IPv6 picks the source address for the group's first nexthop rather than the path the lookup selected, so RoCE address resolution can fail with -ENODEV. This already happens without the series whenever the hash picks another member, and v1 exposed it per connection. Patch 1 fixes it in IPv6 source address selection, matching IPv6 legacy multipath and IPv4 nexthop groups, and patch 2 adds a selftest for it. Leon also reported that Chelsio iWARP can fail with -EHOSTUNREACH when its own route lookup picks a different adapter than rdma_cm. That already happens without this series, and as agreed on the v1 thread it will be handled separately, since none of us can test on Chelsio hardware. Patches 1 and 2 also stand on their own. Changes in v2: - Add patches 1 and 2, the IPv6 source address fix and its selftest (Leon) - Patch 3 commit message notes the dependency on patch 1 and adds the IPv6 results v1: https://lore.kernel.org/all/20261130193648.3170657-1-tmenninger@everpuredata.com/ Shiva Lingappa (1): RDMA/core: Use the CM source port in IP route lookups Tim Menninger (2): ipv6: Use the selected nexthop for source address selection selftests: fib_nexthops: Check the IPv6 multipath source address drivers/infiniband/core/addr.c | 2 ++ include/net/ip6_route.h | 9 ++++-- net/ipv6/ip6_output.c | 3 +- net/ipv6/route.c | 2 +- tools/testing/selftests/net/fib_nexthops.sh | 35 +++++++++++++++++++++ 5 files changed, 47 insertions(+), 4 deletions(-) base-commit: aebb7274476403040d582c61478df8f4a7bf9cd3 -- 2.53.0