From patchwork Wed Jun 14 14:00:33 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Chuck Lever X-Patchwork-Id: 13280089 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id F0879EB64D8 for ; Wed, 14 Jun 2023 14:00:42 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S245293AbjFNOAl (ORCPT ); Wed, 14 Jun 2023 10:00:41 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33332 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S245317AbjFNOAg (ORCPT ); Wed, 14 Jun 2023 10:00:36 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 292591FEB for ; Wed, 14 Jun 2023 07:00:36 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id B2A4E63F79 for ; Wed, 14 Jun 2023 14:00:35 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id C0137C433C9; Wed, 14 Jun 2023 14:00:34 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1686751235; bh=7p02cS1LLFFF7aMk1kwT7IdV5SzXxqI7eEArpWdDdZM=; h=Subject:From:To:Cc:Date:From; b=kU1WXwxelk3bt2ALtMMT3PnHETaok8FOyBwd1MmHvN3b7v1qxWms3+FgX37/HCuCf 3iqj/FCHc1xB87h99SEmRbC04POMMRuG7SiBr4m8jUpqDZTFqAfHVakc5ypFfyrEkQ e+6s8q260lJMJwsPOhdlSZI7aHOH+YS5c7oqLK2n9ScnUPisqIr34FR6V2oN7KZkRu QtFw4uTtgEJpOR42b/i1Bx1oz2aGWoAroRtaR6O709xomtIxfqSMOPBBbRdTHnhrr2 V2NVZhf6LpMAeZPJY5apbCmrWCOfhW4vlo/jfUZnhfdIhlAN3XvrdoZud7N2SjcrvO Qc50tKPIB+jPg== Subject: [PATCH v3 0/4] Handle ARPHRD_NONE devices for siw From: Chuck Lever To: jgg@nvidia.com Cc: Tom Talpey , Chuck Lever , linux-rdma@vger.kernel.org, tom@talpey.com, BMT@zurich.ibm.com Date: Wed, 14 Jun 2023 10:00:33 -0400 Message-ID: <168675101993.2279.4985978457935843722.stgit@manet.1015granger.net> User-Agent: StGit/1.5 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-rdma@vger.kernel.org Here's a series that implements support for siw on tunnel devices, based on suggestions from Jason Gunthorpe and Tom Talpey. This series does not address a similar issue with rxe because RoCE GID resolution behaves differently than it does for iWARP devices. An independent solution is likely to be required for rxe. Changes since v2: - Split into multiple patches - Pre-initialize gid_attr::ndev for iWARP devices --- Chuck Lever (4): RDMA/siw: Fabricate a GID on tun and loopback devices RDMA/core: Set gid_attr.ndev for iWARP devices RDMA/cma: Deduplicate error flow in cma_validate_port() RDMA/cma: Avoid GID lookups on iWARP devices drivers/infiniband/core/cache.c | 12 ++++++++++++ drivers/infiniband/core/cma.c | 24 +++++++++++++++++++----- drivers/infiniband/sw/siw/siw.h | 1 + drivers/infiniband/sw/siw/siw_main.c | 22 ++++++++-------------- drivers/infiniband/sw/siw/siw_verbs.c | 4 ++-- 5 files changed, 42 insertions(+), 21 deletions(-) -- Chuck Lever