Received: by 2002:a05:7412:2a8c:b0:e2:908c:2ebd with SMTP id u12csp1833638rdh; Tue, 26 Sep 2023 05:10:52 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHHCi75IDgBPepelMLmdqNSS0BRP4D86rDWajmz/DPkONOUvf4yoZQlzcUUdF5RdVN7Dwep X-Received: by 2002:a9d:5f15:0:b0:6c4:81d6:171b with SMTP id f21-20020a9d5f15000000b006c481d6171bmr10544634oti.21.1695730251953; Tue, 26 Sep 2023 05:10:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695730251; cv=none; d=google.com; s=arc-20160816; b=OUJFd82jXxAh+kEsK7DZZIy7ubDESvkLv1StHIcHHz6RoS+yAsoVvJKOv7xZxkuSrp ibo68dn+f8CtmUCp02R4npqq3nvS4mu1MR5xXLe2tTvlGtu6hIYaBaxp9RmU5ZRjSt3/ u8hjW/y9kqBBZJfxlPobIlt660nRCBpfjtKi5wU/xLk0v6LyrIXgZbWXWkIHMwyzMi9Q 18KrOayp0aSKpGP0YMJMpNmHXytY4FKTRQ6NjMefhOtKMLrvZ1tPuScfZqKIoFb90sa8 XIWPJQR7PQot3y99yaT/vk1OxW3tKZHioU4m/9lpQl0ZNc97i0PoPhvIFcnZMEtflvWe mEEQ== 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:reply-to:message-id:subject:cc:to:from:date; bh=03vC1tw99PtKAYrKiBk6iZd2V/8JaCyrHSEjRgXirTs=; fh=X6hJnNHo8APm7bS89Y9+nSaKAjEwrM9LNu1Oo8t0pLo=; b=0QzCEjKyq48cSPasv+YMDEJn0VFBubDjLs3QEYD/Ti22ZLP4A8a9v7Zz0iZP9WULmI dcjOeL1zp5Jp+7s1T8T62vw9klatI3UI1kyd19/tvZ4lrdFpt+8fvhVYTXP/hqWjiTe3 z7dpcpOYuZI9KTNWWhQGGC2hCMG4pRRJtBxRV8jAiIp4QEmEEx2O4qhV0lVaaFQaOLBT EzdTJWemdqll4Gxpn4davcxoT/lUL9aQM6uCQxJQNh/e3AVTsixivXIcf1K9p6hTS2VW SgeP03IMr8/I1Jzb6inotGl00PRtZM36EItYZj0qsWT6I2tI3cr850TQHwYzlARWwNkn BNng== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Return-Path: Received: from lipwig.vger.email (lipwig.vger.email. [2620:137:e000::3:3]) by mx.google.com with ESMTPS id a35-20020a631a63000000b00578b40703bcsi12130786pgm.885.2023.09.26.05.10.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 26 Sep 2023 05:10:51 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by lipwig.vger.email (Postfix) with ESMTP id 21E028027F7A; Tue, 26 Sep 2023 05:09:19 -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 S234511AbjIZMJP (ORCPT + 99 others); Tue, 26 Sep 2023 08:09:15 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42344 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230231AbjIZMJO (ORCPT ); Tue, 26 Sep 2023 08:09:14 -0400 Received: from out30-97.freemail.mail.aliyun.com (out30-97.freemail.mail.aliyun.com [115.124.30.97]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6DF89E6; Tue, 26 Sep 2023 05:09:07 -0700 (PDT) X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R721e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=ay29a033018045192;MF=dust.li@linux.alibaba.com;NM=1;PH=DS;RN=18;SR=0;TI=SMTPD_---0VswpDWa_1695730143; Received: from localhost(mailfrom:dust.li@linux.alibaba.com fp:SMTPD_---0VswpDWa_1695730143) by smtp.aliyun-inc.com; Tue, 26 Sep 2023 20:09:04 +0800 Date: Tue, 26 Sep 2023 20:09:03 +0800 From: Dust Li To: Leon Romanovsky , Alexandra Winter Cc: 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: <20230926120903.GD92403@linux.alibaba.com> Reply-To: dust.li@linux.alibaba.com References: <20230925023546.9964-1-huangjie.albert@bytedance.com> <20230926104831.GJ1642130@unreal> <76a74084-a900-d559-1f63-deff84e5848a@linux.ibm.com> <20230926114104.GL1642130@unreal> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230926114104.GL1642130@unreal> X-Spam-Status: No, score=-0.8 required=5.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,UNPARSEABLE_RELAY 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 05:09:19 -0700 (PDT) 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. Best regards, Dust > >Thanks