Received: by 2002:a05:7412:2a8c:b0:e2:908c:2ebd with SMTP id u12csp3403837rdh; Thu, 28 Sep 2023 10:32:02 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFV2C+L+Fh+KymA2y5mL9VLj+ukIWYGtlsn3GjUi4X7Ohnf4T4+ocsw+cEibZsjWqo9DFD0 X-Received: by 2002:a92:c26a:0:b0:34f:e8cd:deb1 with SMTP id h10-20020a92c26a000000b0034fe8cddeb1mr2215177ild.29.1695922322112; Thu, 28 Sep 2023 10:32:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695922322; cv=none; d=google.com; s=arc-20160816; b=IVUF3UqbT/wOmZhenwa7+ZZyrf9MoD3qCKQb1OgMLWL0C8zueA4vrRpXfsneFEP/Qj PhQNxVL2ZBy6CEzn1XfpnZfFMRHM9o4M3iV+deWGiNCUgAEO+hKOUudsE+Lpd7QjLKvt cBOdTpNrcY2o3iv1MLHUKGWIQL8PwAyPB3/XzPYjXJ0NIQKRdlThYJ5ZyDVlchaCQnG0 djHI43xk2XvcSxjLf7rkQ/MxwdonYofUAioA4yaIpIcNyEYZWz0QOdEtmkEdEj+8Bcxe en59OwDU51R6hBggFuC1ZdbHzU0woaP8pgIygNLQ72dm1ddnn1VYDy/lcFlHoQo4lKJO uKGg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:content-transfer-encoding :user-agent:references:in-reply-to:date:cc:to:from:subject :message-id:dkim-signature; bh=vMb+aAFI53ERmvbLOOTAtUBUQQ2YlNOdAoSkYas6PIs=; fh=aD83CAVVkDSbtFCjefnTu0akm5zfJ4PwTzy+w94IT3I=; b=0I7gYx/TaCQfumedl64RwsVaG6wDxKD41tRf1h6gn2E7ssADY4aau5xwLnDQ39jybu +9Mo9mhAG+ut63RDjEQKD5llzbRKit5K18rtiz2jgqcjCi/j8z4TaAcZrXsAyCQgYqDY 2uXqtqLn9i7EfHbcPlW5YngJ88wRQ34ZEWVn9z5BUdAzmt9ZvobVX5SCqF3jPxxbnDO9 0uIzl4W2XwlkV8mBNjOMTlntY6RJeeNcDVn+qI8vV+LhcGNx+pqyIEm2szHnKN6JC96N TFQ9WPK+zTERsgoDPlRNr7T6yLmdKsk6dKuMFHRLIjeBt1BZ23enMT2eRBxOAAR+narz X/rw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ibm.com header.s=pp1 header.b="fqxXj/gG"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=NONE dis=NONE) header.from=ibm.com Return-Path: Received: from pete.vger.email (pete.vger.email. [2620:137:e000::3:6]) by mx.google.com with ESMTPS id k33-20020a634b61000000b00578a084850dsi18597918pgl.720.2023.09.28.10.32.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 28 Sep 2023 10:32:02 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 as permitted sender) client-ip=2620:137:e000::3:6; Authentication-Results: mx.google.com; dkim=pass header.i=@ibm.com header.s=pp1 header.b="fqxXj/gG"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=NONE dis=NONE) header.from=ibm.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by pete.vger.email (Postfix) with ESMTP id B117E83D0E7C; Thu, 28 Sep 2023 08:06:11 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at pete.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231642AbjI1PF6 (ORCPT + 99 others); Thu, 28 Sep 2023 11:05:58 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48610 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231601AbjI1PFz (ORCPT ); Thu, 28 Sep 2023 11:05:55 -0400 Received: from mx0a-001b2d01.pphosted.com (mx0a-001b2d01.pphosted.com [148.163.156.1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 12F961B5; Thu, 28 Sep 2023 08:05:51 -0700 (PDT) Received: from pps.filterd (m0360083.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 38SEk0A1016005; Thu, 28 Sep 2023 15:05:30 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ibm.com; h=message-id : subject : from : to : cc : date : in-reply-to : references : content-type : content-transfer-encoding : mime-version; s=pp1; bh=vMb+aAFI53ERmvbLOOTAtUBUQQ2YlNOdAoSkYas6PIs=; b=fqxXj/gGnysYI56fZBP5xMx1inty/A4K5R5fY99jdQinjZ5cgH5jpPPimvK6mUC1Vn6r ZoKo6oRD1yzduE26+WMRxLKF9pGDAr9VPlnSAnSzN6Wm0ghuFgFv1nq5/XQklxZtbe1J TRqXGf4vauENod9ioPWeMoAKBy9+M5np3v4PlqmUBw5j53nI6Baba41OzsI6gwWycYF1 6HAIClkwOGYUNLmUH6XwlNNeOH6OOIvjirJMa8cpfBNXlUD3bnk+3O5ahU/1iTtseidq nDsreta227ePBS3fWAfd5uzzdo60IqnhDgP04EI6Fe0SpVVCkSpvddXIeBxt1ASKSLE+ Tw== Received: from pps.reinject (localhost [127.0.0.1]) by mx0a-001b2d01.pphosted.com (PPS) with ESMTPS id 3tdbath78n-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 28 Sep 2023 15:05:29 +0000 Received: from m0360083.ppops.net (m0360083.ppops.net [127.0.0.1]) by pps.reinject (8.17.1.5/8.17.1.5) with ESMTP id 38SEWP4Z017327; Thu, 28 Sep 2023 15:05:13 GMT Received: from ppma22.wdc07v.mail.ibm.com (5c.69.3da9.ip4.static.sl-reverse.com [169.61.105.92]) by mx0a-001b2d01.pphosted.com (PPS) with ESMTPS id 3tdbath4rm-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 28 Sep 2023 15:05:12 +0000 Received: from pps.filterd (ppma22.wdc07v.mail.ibm.com [127.0.0.1]) by ppma22.wdc07v.mail.ibm.com (8.17.1.19/8.17.1.19) with ESMTP id 38SDN3Zm008143; Thu, 28 Sep 2023 15:04:26 GMT Received: from smtprelay06.fra02v.mail.ibm.com ([9.218.2.230]) by ppma22.wdc07v.mail.ibm.com (PPS) with ESMTPS id 3taaqywhhd-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 28 Sep 2023 15:04:26 +0000 Received: from smtpav07.fra02v.mail.ibm.com (smtpav07.fra02v.mail.ibm.com [10.20.54.106]) by smtprelay06.fra02v.mail.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id 38SF4Mla40239544 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Thu, 28 Sep 2023 15:04:23 GMT Received: from smtpav07.fra02v.mail.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id CFD662004D; Thu, 28 Sep 2023 15:04:22 +0000 (GMT) Received: from smtpav07.fra02v.mail.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id D54B820040; Thu, 28 Sep 2023 15:04:21 +0000 (GMT) Received: from [9.171.80.248] (unknown [9.171.80.248]) by smtpav07.fra02v.mail.ibm.com (Postfix) with ESMTP; Thu, 28 Sep 2023 15:04:21 +0000 (GMT) Message-ID: <00bbbf48440c1889ecd16a590ebb746b820a4f48.camel@linux.ibm.com> Subject: Re: [PATCH net-next] net/smc: add support for netdevice in containers. From: Niklas Schnelle To: 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 Date: Thu, 28 Sep 2023 17:04:21 +0200 In-Reply-To: <20230925023546.9964-1-huangjie.albert@bytedance.com> References: <20230925023546.9964-1-huangjie.albert@bytedance.com> Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.48.4 (3.48.4-1.fc38) X-TM-AS-GCONF: 00 X-Proofpoint-GUID: _N-fuUIetudV9Wfdz9MzlhKJuUTHPCUW X-Proofpoint-ORIG-GUID: yxZhCqvuEiIotfJ6ZZcsgkArZ504hZj_ Content-Transfer-Encoding: quoted-printable X-Proofpoint-UnRewURL: 0 URL was un-rewritten MIME-Version: 1.0 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.267,Aquarius:18.0.980,Hydra:6.0.619,FMLib:17.11.176.26 definitions=2023-09-28_14,2023-09-28_02,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 lowpriorityscore=0 mlxlogscore=999 spamscore=0 impostorscore=0 suspectscore=0 mlxscore=0 phishscore=0 clxscore=1011 priorityscore=1501 bulkscore=0 malwarescore=0 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2309180000 definitions=main-2309280130 X-Spam-Status: No, score=-0.8 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, HEADER_FROM_DIFFERENT_DOMAINS,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 pete.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 (pete.vger.email [0.0.0.0]); Thu, 28 Sep 2023 08:06:12 -0700 (PDT) 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. >=20 > 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(-) >=20 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/8701fa4557026983a9ec687cfdd7ac5b3b85= fd39.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 =E2=80=A6 rc_bw" = and `qperf =E2=80=A6 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? Thanks, Niklas