Received: by 2002:a05:7412:2a8c:b0:e2:908c:2ebd with SMTP id u12csp2045234rdh; Tue, 26 Sep 2023 10:35:33 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFHftvqlkFhriBK/h1lq9kwpyVVJKSf4J8riWseMnYMx/xV2K0CbZ9ip6e6nANEJqcIETYO X-Received: by 2002:a17:903:32c7:b0:1c3:3461:75b5 with SMTP id i7-20020a17090332c700b001c3346175b5mr14300835plr.0.1695749732879; Tue, 26 Sep 2023 10:35:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695749732; cv=none; d=google.com; s=arc-20160816; b=FnPjScTqBhVo7OyPmwbmkiiJQRw2t9+GjqohClPZ6oGz/Y9b32pMaAkI2iZd/HTf1J ThCzNZwn3xS/q00+frOFzpRSDUdJZX4fM5wTrYvZ6f8SKVEi1UvruCne5yqYQtTx7RFr w4LC+Bkn1Wv4ZWN2KY1ZlXTlwvsHZadj5r7vS6bJmHr+1T5uAUpmlONH6Zopv7HZryLl +uy4kO+08g7Ts4Gwyr0ISoAfzT1EIHDiu8U/kvc5awAk6WytszZ6zE09yHqIaYunVhHh uyfyFItKn3XFPicd6wTxzOUN9EKBna+le7DugL4DIH313+MMXPGuN6CD2UugTagcQ1DK W9mA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=45laIPyXSMFqt5/55ujs9sritV6SaW+hvUiwKpaCz2s=; fh=Jeidm41o8XVA/EBW1cSKE+kdf1z2/sGDDurGvnpBIok=; b=diWM+ZAYPFanghqqSzwmoCwCsWvjcJ1CoGPQCLJtYamou/PWNOv0qtFjxcdqKWdzQx t44wqQDUt0160g9B6Q3nQjXtQ0MjW5Dh0h6+y8is/3B3Z115K43Azz0wo9L6FXVmep2D SlSXfX+xt3JG4AzJI7ixC1tiNPQO5zItKobSBeBCC31tXnzEcz1tD5YLe0KtbeDL3E9z YAC6wt75gfX1pXsSCH8DrVKLsROqn6VCGQ2geHl6y4S4GpZrX3XmE899kgyuRPzx7tt+ 9LDsTMZdoWKctNiIzugYIZ/j5dWbEhZwq8Y8wZ9/T0coo2IK65eSZI29mO+0QlxbKqSE F8Qg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=pxTD8f9R; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from lipwig.vger.email (lipwig.vger.email. [2620:137:e000::3:3]) by mx.google.com with ESMTPS id x18-20020a170902ec9200b001b7ea20dbf2si13928222plg.224.2023.09.26.10.35.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 26 Sep 2023 10:35:32 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) client-ip=2620:137:e000::3:3; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=pxTD8f9R; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by lipwig.vger.email (Postfix) with ESMTP id 9D8798043C20; Tue, 26 Sep 2023 10:30:17 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at lipwig.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234453AbjIZRaT (ORCPT + 99 others); Tue, 26 Sep 2023 13:30:19 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48778 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233857AbjIZRaR (ORCPT ); Tue, 26 Sep 2023 13:30:17 -0400 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0A435124; Tue, 26 Sep 2023 10:30:11 -0700 (PDT) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 27C84C433C8; Tue, 26 Sep 2023 17:30:09 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1695749410; bh=4BCR5+ia34bKjgZ3WQ5jOW0HdAcDUewCNvoaxlZIikg=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=pxTD8f9RFgHUxrpUlPk3ZJXa9TAqzdd3SLKBcMb0ooRvgr9o3kknjmYA96UZpArs1 LTIXntUVgKRlOTp+yshSgN680kRTkJLGLH7d9DEeCMec4v3cKy0yInZwDZmnwUW4z3 LpcHkNDg5WaY8Xn053Vn/43gHTuP1DAloEtIqw4gIZL/ci8MIdve7WSREPTcJDT4Uo frAcf2Vhf/pLCbKztN2kGy+PFRWjfQQv/YVrkW5Yt/y8kru9GTHATd08dIT5JekphW uPmJT3Kxavr6RO1McwcNjAW478UC3tUYsKKNX1RObSMDBVhssk/dYRtvCfzYspZByL FI5VE1kDNVxQg== Date: Tue, 26 Sep 2023 20:30:06 +0300 From: Leon Romanovsky To: Dust Li Cc: Alexandra Winter , Albert Huang , Karsten Graul , Wenjia Zhang , Jan Karcher , "D. Wythe" , Tony Lu , Wen Gu , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , linux-s390@vger.kernel.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, RDMA mailing list , Jason Gunthorpe Subject: Re: [PATCH net-next] net/smc: add support for netdevice in containers. Message-ID: <20230926173006.GN1642130@unreal> References: <20230925023546.9964-1-huangjie.albert@bytedance.com> <20230926104831.GJ1642130@unreal> <76a74084-a900-d559-1f63-deff84e5848a@linux.ibm.com> <20230926114104.GL1642130@unreal> <20230926120903.GD92403@linux.alibaba.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230926120903.GD92403@linux.alibaba.com> X-Spam-Status: No, score=-1.2 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lipwig.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (lipwig.vger.email [0.0.0.0]); Tue, 26 Sep 2023 10:30:17 -0700 (PDT) On Tue, Sep 26, 2023 at 08:09:03PM +0800, Dust Li wrote: > On Tue, Sep 26, 2023 at 02:41:04PM +0300, Leon Romanovsky wrote: > >On Tue, Sep 26, 2023 at 01:14:04PM +0200, Alexandra Winter wrote: > >> > >> > >> On 26.09.23 12:48, Leon Romanovsky wrote: > >> > This patch made me wonder, why doesn't SMC use RDMA-CM like all other > >> > in-kernel ULPs which work over RDMA? > >> > > >> > Thanks > >> > >> The idea behind SMC is that it should look an feel to the applications > >> like TCP sockets. So for connection management it uses TCP over IP; > >> RDMA is just used for the data transfer. > > > >I think that it is not different from other ULPs. For example, RDS works > >over sockets and doesn't touch or reimplement GID management logic. > > I think the difference is SMC socket need to be compatible with TCP > socket, so it need a tcp socket to fallback when something is not working. > > If SMC works with rdmacm, it still need a fallback-to-tcp socket, and > the tcp connection has to be established for each SMC socket before the > SMC socket got established, that would make rdmacm meaningless. You still need to perform device-GID-route translations [1], which sounds to me very RDMA-CM. I'm not asking you to rewrite the code, but trying to get rationale behind reimplementing part of RDMA subsystem. Thanks [1] 24fb68111d45 ("net/smc: retrieve v2 gid from IB device") > > Best regards, > Dust > > > > >Thanks