Received: by 2002:a05:7412:d8a:b0:e2:908c:2ebd with SMTP id b10csp524061rdg; Thu, 12 Oct 2023 12:27:03 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGxZg0yZw0Qt/xrIr+1Mri/6IF1uLhK1MyXiLVx4SeeLLBgj1AyAyQuj1WhWO1OSxTbLhkj X-Received: by 2002:a05:6a00:2482:b0:690:4362:7012 with SMTP id c2-20020a056a00248200b0069043627012mr24685695pfv.28.1697138823286; Thu, 12 Oct 2023 12:27:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697138823; cv=none; d=google.com; s=arc-20160816; b=suij3heaPxIh1yumu0dRN1px6xiodBtZxsuk+wAJYfrMEBlTdm43b8JhTJVWl8/uJd YIXEFk7v3lrl+S8Cuucb8eRx4s15yY9V+J7M6tIiygONYOcu8jIEHW63rkS/li4ezNSz 4dL4kI7IBYEx8okc5ri455e1r6EaP9wtHRTI/5HuK8l8YSSIcsPMJbiNQEcaW1k36XXU UhKFWKlKjWOj8E5G3OC9q6IzS/Eynpp555UjMRdWS4i7ATCKVzdeMMVCvnj6jx0TCoYQ 5DxI7QPlB2e/jO2G+j61Xp5CC0iMvPirlySWw/qt7cwbXiZaIbGMyJnADunuehCqVmBl vZiA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=r/YKueMPzYqIDK3VPyKHJMLplhIvH5ZVkLFWtXEXrxg=; fh=dTVltU1b8bBRnENsnT9pLxXfyKhnEHzok7btJ+Aygzk=; b=Iybve9PUU5bUzZZSy2eC/5wU0HkKgFbZ36vXymr2PZiGv+q1m98wzxA+bXyXj3OGjk QC9A6Oi2rWSHfVUAJfNqQF6CYSLmjBwDmUCjLObxXyRdlZSCXclPt+/hh93LBRJIxUKL AGvWMlVGFPIOO7ihoQ17Pqkna1P+F7o1e/PAgzCq0DC9ZOIrP/etUzG04EbVvuHQvide utsugJgqI7ln9eh6ofhrl9JgjtBOwW7pbpMPouYPepfLQzKZ2b5x6oHy1De2J/1ggldJ uquDR5lNreNaFrBSW4tME1dMyIC11KmglFWlLyvCSovbfd4Dmt+WsTJxezyCQPKuarms diZQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ibm.com header.s=pp1 header.b="H/PBjvRp"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 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 groat.vger.email (groat.vger.email. [23.128.96.35]) by mx.google.com with ESMTPS id o16-20020a056a0015d000b0068e44a5e7ffsi16396251pfu.90.2023.10.12.12.27.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 12 Oct 2023 12:27:03 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) client-ip=23.128.96.35; Authentication-Results: mx.google.com; dkim=pass header.i=@ibm.com header.s=pp1 header.b="H/PBjvRp"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 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 groat.vger.email (Postfix) with ESMTP id BA189803B510; Thu, 12 Oct 2023 12:27:00 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at groat.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1442158AbjJLT0v (ORCPT + 99 others); Thu, 12 Oct 2023 15:26:51 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55618 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1442009AbjJLT0u (ORCPT ); Thu, 12 Oct 2023 15:26:50 -0400 Received: from mx0a-001b2d01.pphosted.com (mx0a-001b2d01.pphosted.com [148.163.156.1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C77B9C0; Thu, 12 Oct 2023 12:26:48 -0700 (PDT) Received: from pps.filterd (m0353727.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 39CJH8Bx014840; Thu, 12 Oct 2023 19:26:35 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ibm.com; h=message-id : date : mime-version : subject : to : cc : references : from : in-reply-to : content-type : content-transfer-encoding; s=pp1; bh=r/YKueMPzYqIDK3VPyKHJMLplhIvH5ZVkLFWtXEXrxg=; b=H/PBjvRpBHnHd47o7XWZrGkB4vprRC+20RI4KI/iGlv0GkC3mEHO0iB/j/aB0+XWIfJG cC5NfFj/n5WdlVHOlYUUlR2H6Pm8cRhW7Fxwk8/PXWhpcJVfu0n3BzhE7YzkM84OHW2Y fmPIXUP2LoFCAH6tIo8fVc5JdoOh6BAm4iAxqzncwXcogT6WlUfQBQRs3ZF2aTh6jLtj jCoHQtU9yEHqHqtOSFak8bHWkFwEYlESB4fmUNSw4PQD89pAJDMXptQmZAmvPgBfCaMi W7oos5v59n8+lauC7O8dsCc3hcHnXnnBZFOkSDb53t6/Pi7PIprLUxZe/TKhZoGK4QTt Sw== Received: from pps.reinject (localhost [127.0.0.1]) by mx0a-001b2d01.pphosted.com (PPS) with ESMTPS id 3tpptq8drm-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 12 Oct 2023 19:26:34 +0000 Received: from m0353727.ppops.net (m0353727.ppops.net [127.0.0.1]) by pps.reinject (8.17.1.5/8.17.1.5) with ESMTP id 39CJIBOw020564; Thu, 12 Oct 2023 19:26:34 GMT Received: from ppma13.dal12v.mail.ibm.com (dd.9e.1632.ip4.static.sl-reverse.com [50.22.158.221]) by mx0a-001b2d01.pphosted.com (PPS) with ESMTPS id 3tpptq8dnq-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 12 Oct 2023 19:26:34 +0000 Received: from pps.filterd (ppma13.dal12v.mail.ibm.com [127.0.0.1]) by ppma13.dal12v.mail.ibm.com (8.17.1.19/8.17.1.19) with ESMTP id 39CIq8NM001270; Thu, 12 Oct 2023 19:26:30 GMT Received: from smtprelay03.wdc07v.mail.ibm.com ([172.16.1.70]) by ppma13.dal12v.mail.ibm.com (PPS) with ESMTPS id 3tkkvk9g5y-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 12 Oct 2023 19:26:30 +0000 Received: from smtpav02.wdc07v.mail.ibm.com (smtpav02.wdc07v.mail.ibm.com [10.39.53.229]) by smtprelay03.wdc07v.mail.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id 39CJQTQq17105522 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Thu, 12 Oct 2023 19:26:29 GMT Received: from smtpav02.wdc07v.mail.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 01BE058058; Thu, 12 Oct 2023 19:26:29 +0000 (GMT) Received: from smtpav02.wdc07v.mail.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 8DD255805B; Thu, 12 Oct 2023 19:26:26 +0000 (GMT) Received: from [9.171.29.13] (unknown [9.171.29.13]) by smtpav02.wdc07v.mail.ibm.com (Postfix) with ESMTP; Thu, 12 Oct 2023 19:26:26 +0000 (GMT) Message-ID: <0b7b9d03-13a5-4cfc-948b-72a56bfe3d50@linux.ibm.com> Date: Thu, 12 Oct 2023 21:26:25 +0200 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v2 net] net/smc: fix smc clc failed issue when netdevice not in init_net Content-Language: en-GB To: Albert Huang , Karsten Graul , Jan Karcher , Tony Lu , Wen Gu Cc: "D. Wythe" , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , linux-s390@vger.kernel.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org References: <20231011074851.95280-1-huangjie.albert@bytedance.com> From: Wenjia Zhang In-Reply-To: <20231011074851.95280-1-huangjie.albert@bytedance.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-TM-AS-GCONF: 00 X-Proofpoint-GUID: udSsbT1dY7S7JpUUKrjjQ-E905tpav33 X-Proofpoint-ORIG-GUID: zBWMfv-x-sigqOgduXlAoSY-hDk0eZte 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-10-12_11,2023-10-12_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 clxscore=1015 phishscore=0 bulkscore=0 spamscore=0 impostorscore=0 suspectscore=0 malwarescore=0 mlxscore=0 mlxlogscore=999 adultscore=0 lowpriorityscore=0 priorityscore=1501 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2309180000 definitions=main-2310120162 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 groat.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 (groat.vger.email [0.0.0.0]); Thu, 12 Oct 2023 12:27:00 -0700 (PDT) On 11.10.23 09:48, Albert Huang wrote: > If the netdevice is within a container and communicates externally > through network technologies such as 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. > > Fixes: e5c4744cfb59 ("net/smc: add SMC-Rv2 connection establishment") > 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(-) > looks good to me, thanks! Reviewed-by: Wenjia Zhang