Received: by 2002:a05:7412:d8a:b0:e2:908c:2ebd with SMTP id b10csp871034rdg; Wed, 11 Oct 2023 07:48:39 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHAXCshWbt2dAZc399Oa9EYqviYLkar+tIcrlRavBPw9VOdqWmDJ0pCC8W7bIqk38J2NoLR X-Received: by 2002:a05:6358:52c5:b0:135:85ec:a080 with SMTP id z5-20020a05635852c500b0013585eca080mr25800490rwz.32.1697035718761; Wed, 11 Oct 2023 07:48:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697035718; cv=none; d=google.com; s=arc-20160816; b=nVKfCcR4xPhUFtkLQfcGRU7L+d6OYjyOBaUjBxItYixoQZk73DN1q29WJIOLbC81OY 076zcTVFJhk9o6wy05l1K4ItxY+StfrSqz/igjDIVlYxfVcvsqOBVZT9nU8FYbOE2CXO pce9zSaxkUGKZe2NpUrWEwb/+epanv1C1SilEhoRufqhieeubtkHZ9DgYehV/rSVreBd iG73J52xkCzZ1j37Ia6/5kVt1Jl0EZqFqZHfq6iZWovPgcKNRKLe2jGZXHRnLA0eS4Zk WFs0ym7oBvZL1RAS6YgEyYkRM8+80SbST/BoP4z5s1zg+SHpzrwDpHFH/AMDrgMDn783 FvLw== 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-transfer-encoding :content-disposition:mime-version:references:reply-to:message-id :subject:cc:to:from:date; bh=EewbhgWWqbjVPvmHq+10F6pylqTfS3M55jgbFj/CZCk=; fh=C+U8xiWm5YLy1TD20YXXzkXfqFkBfQaOOzDpPYRQNBU=; b=YLSDRKfWCQvih7kggZ57xLSx1KC58YgzAoImJOZquCNIXK98sLSfbNyBF8TKUwjzrl OW8fF8+oonoq2Jk7k34pE0OmcIHF3tE6Q6iIDbuioOP9yNjoM3fS6fN8CayuPealUPfA GjFJxihkcY5/h1lb9w4GqebrUQkO5TOTu574YR1J3om3LkT70+H18Jsy2f/SJUOqVCst QXXp6zKkwcjYBR29C7k9X2F6qtcBkxa5v1XFH/sB9Zwz8gvEZenhZ/y8HFqhsAGB6lhP 3EPQ47283tvK8g4yswqMeeMEqbcwecCuf1kZ+LgDa87L7elgtnQQ5Ua8/1L7/dSXrruN AxnA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 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 howler.vger.email (howler.vger.email. [23.128.96.34]) by mx.google.com with ESMTPS id g18-20020a056a0023d200b0069102c864c5si12614232pfc.218.2023.10.11.07.48.37 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 11 Oct 2023 07:48:38 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) client-ip=23.128.96.34; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 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 howler.vger.email (Postfix) with ESMTP id 7587680F4E1E; Wed, 11 Oct 2023 07:48:35 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at howler.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235044AbjJKOs0 (ORCPT + 99 others); Wed, 11 Oct 2023 10:48:26 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40076 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232246AbjJKOsZ (ORCPT ); Wed, 11 Oct 2023 10:48:25 -0400 Received: from out30-101.freemail.mail.aliyun.com (out30-101.freemail.mail.aliyun.com [115.124.30.101]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 266DF90; Wed, 11 Oct 2023 07:48:19 -0700 (PDT) X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R121e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=ay29a033018045170;MF=dust.li@linux.alibaba.com;NM=1;PH=DS;RN=15;SR=0;TI=SMTPD_---0VtxFJ45_1697035696; Received: from localhost(mailfrom:dust.li@linux.alibaba.com fp:SMTPD_---0VtxFJ45_1697035696) by smtp.aliyun-inc.com; Wed, 11 Oct 2023 22:48:17 +0800 Date: Wed, 11 Oct 2023 22:48:16 +0800 From: Dust Li To: Niklas Schnelle , Albert Huang , Karsten Graul , Wenjia Zhang , Jan Karcher Cc: "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 Subject: Re: [PATCH net-next] net/smc: add support for netdevice in containers. Message-ID: <20231011144816.GO92403@linux.alibaba.com> Reply-To: dust.li@linux.alibaba.com References: <20230925023546.9964-1-huangjie.albert@bytedance.com> <00bbbf48440c1889ecd16a590ebb746b820a4f48.camel@linux.ibm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <00bbbf48440c1889ecd16a590ebb746b820a4f48.camel@linux.ibm.com> X-Spam-Status: No, score=2.8 required=5.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RCVD_IN_SBL_CSS,SPF_HELO_NONE,SPF_PASS, UNPARSEABLE_RELAY autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on howler.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 (howler.vger.email [0.0.0.0]); Wed, 11 Oct 2023 07:48:35 -0700 (PDT) X-Spam-Level: ** On Thu, Sep 28, 2023 at 05:04:21PM +0200, Niklas Schnelle wrote: >On Mon, 2023-09-25 at 10:35 +0800, Albert Huang wrote: >> If the netdevice is within a container and communicates externally >> through network technologies like VXLAN, we won't be able to find >> routing information in the init_net namespace. To address this issue, >> we need to add a struct net parameter to the smc_ib_find_route function. >> This allow us to locate the routing information within the corresponding >> net namespace, ensuring the correct completion of the SMC CLC interaction. >> >> Signed-off-by: Albert Huang >> --- >> net/smc/af_smc.c | 3 ++- >> net/smc/smc_ib.c | 7 ++++--- >> net/smc/smc_ib.h | 2 +- >> 3 files changed, 7 insertions(+), 5 deletions(-) >> > >I'm trying to test this patch on s390x but I'm running into the same >issue I ran into with the original SMC namespace >support:https://lore.kernel.org/netdev/8701fa4557026983a9ec687cfdd7ac5b3b85fd39.camel@linux.ibm.com/ > >Just like back then I'm using a server and a client network namespace >on the same system with two ConnectX-4 VFs from the same card and port. >Both TCP/IP traffic as well as user-space RDMA via "qperf … rc_bw" and >`qperf … rc_lat` work between namespaces and definitely go via the >card. > >I did use "rdma system set netns exclusive" then moved the RDMA devices >into the namespaces with "rdma dev set netns ". I >also verified with "ip netns exec rdma dev" >that the RDMA devices are in the network namespace and as seen by the >qperf runs normal RDMA does work. > >For reference the smc_chck tool gives me the following output: > >Server started on port 37373 >[DEBUG] Interfaces to check: eno4378 >Test with target IP 10.10.93.12 and port 37373 > Live test (SMC-D and SMC-R) >[DEBUG] Running client: smc_run /tmp/echo-clt.x0q8iO 10.10.93.12 -p >37373 >[DEBUG] Client result: TCP 0x05000000/0x03030000 > Failed (TCP fallback), reasons: > Client: 0x05000000 Peer declined during handshake > Server: 0x03030000 No SMC devices found (R and D) > >I also checked that SMC is generally working, once I add an ISM device >I do get SMC-D between the namespaces. Any ideas what could break SMC-R >here? I missed the email :( Are you running SMC-Rv2 or v1 ? Best regards, Dust > >Thanks, >Niklas