Received: by 2002:a05:7412:2a8c:b0:e2:908c:2ebd with SMTP id u12csp3130791rdh; Thu, 28 Sep 2023 03:44:15 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHQyq/bCFH3SgW9p3IyMhZV6e5WuuSNAimkammNQ03cHVv84XApSSc+eXJnO6MhQDNHhF2p X-Received: by 2002:a17:902:c115:b0:1bf:4a1f:2b57 with SMTP id 21-20020a170902c11500b001bf4a1f2b57mr734870pli.13.1695897855046; Thu, 28 Sep 2023 03:44:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695897855; cv=none; d=google.com; s=arc-20160816; b=C4FAkYWShRjKNiayhfarsgFdITepRu5kujInftKlvtwnTB5HxoFNJGPYA6mNLNPiKc rVwU8XOPS5oIj0jh9ExC5WyKFnTcIyLIfGWGVE/brYeOYGjaV4sdQ01tl0o+MoaetnFa WgJSu7Rt9u07d5TD110qXUcnUtOSMlYyqcH77wLHRh+68xCuL+h3JKLe81ZcSn3RrhTs HVcNXMeokIdIaly1mL5ZwQ9CdkKFZrEk6l0dTTZ2Ng9sahfQWRIU+xCMr4U82kbvGVZP zsPTK8hjc9+tBsvNC4u1Ce1pm4sbH4yC9r5nFUx58Quo/40w3jexzXG2brz1HoVNGr9U t3hw== 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=d+TCd2xpyHcZBcgTDiB+eN7hz7i+wDnrJtXxUC44nBI=; fh=A7s6njOz+q1jtrshiGkU+9okImFJLMrXLg6+yDMhNjM=; b=hOODbZIt4LUJiyvnJd3GhQbv98BshtEd0jxaNHmmbCEB3Jd1yclKUWaxOCSvG3ckAC zQrxr6mxoekd+VY1T+o8huTr0UqHNAPfe/MG0SEPdIXHydHNc32uKL7V+HV//LrwfrzS wbd/l1tRHsu/U9KT1jCyMbb/Ph2hMKwaOgJL5U3kVJCZIaT5Ld9RfFAVWds4HJfNPvdZ iolRRpOWNj457o/49dDHPTIGvi5WtTkTVSMV6xli243odF3p9ylfk//f/36L3yf9laBF XxR3Z30BfARk387m7C1K8w06W7UteKnkSfdGYwxeE97GdmXe+Lj1sGJve6Y7HA8RpqPy ifCw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=bxmkfzbS; 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=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from groat.vger.email (groat.vger.email. [23.128.96.35]) by mx.google.com with ESMTPS id e16-20020a17090301d000b001c6154cfda9si11802891plh.356.2023.09.28.03.44.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 28 Sep 2023 03:44:15 -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=@kernel.org header.s=k20201202 header.b=bxmkfzbS; 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=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by groat.vger.email (Postfix) with ESMTP id 988678122296; Thu, 28 Sep 2023 02:51:40 -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 S231767AbjI1Jv3 (ORCPT + 99 others); Thu, 28 Sep 2023 05:51:29 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56834 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231735AbjI1Jv1 (ORCPT ); Thu, 28 Sep 2023 05:51:27 -0400 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7050A122; Thu, 28 Sep 2023 02:51:25 -0700 (PDT) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 6EB97C433C8; Thu, 28 Sep 2023 09:51:24 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1695894685; bh=cSDK+UH2nr0GMiVRWIpaakkw5si/jCZFr2FE2PgYopQ=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=bxmkfzbSA9rWkkV7y1pH8ttaXkDEb3qcaPrCrO5FyOub/Fc5PrNUTEvws/N2GTHhu Uf7MzEmwKone+bIR9v1q3YbGvBkZKbvIOEUSNZKNkhEZ7y/cx20vufw4WuxWGuxIrD 1UosEyYmUQ0SdmXXKeePFt0AqECR8ONEvD8rh9Aq5ayaqddPI8gDp8il9mFbIHIe9F J01BCAkwzpo/fZAfqEKPJ72Gv/YmpW8lKlKnvATGsogNAkPZVhNCxYTVmHMGkYPM9I 8+TYLCpYuqSnsMPfpnXUCZkAMDbKWHgxXyhlwBmq1BS7VS9FK3cwlj/b6MPEvej5zD NGyn4MJyGAEsw== Date: Thu, 28 Sep 2023 12:51:19 +0300 From: Leon Romanovsky To: Dust Li 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 Subject: Re: [PATCH net-next] net/smc: add support for netdevice in containers. Message-ID: <20230928095119.GR1642130@unreal> References: <20230925023546.9964-1-huangjie.albert@bytedance.com> <20230927034209.GE92403@linux.alibaba.com> <20230927055528.GP1642130@unreal> <20230927121740.GF92403@linux.alibaba.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230927121740.GF92403@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 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, 28 Sep 2023 02:51:40 -0700 (PDT) On Wed, Sep 27, 2023 at 08:17:40PM +0800, Dust Li wrote: > On Wed, Sep 27, 2023 at 08:55:28AM +0300, Leon Romanovsky wrote: > >On Wed, Sep 27, 2023 at 11:42:09AM +0800, Dust Li wrote: > >> On Mon, Sep 25, 2023 at 10:35:45AM +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, > >> > >> Thanks for your founding ! > >> > >> I think this is a more generic problem, but not just related to VXLAN ? > >> If we use SMC-R v2 and the netdevice is in a net namespace which is not > >> init_net, we should always fail, right ? If so, I'd prefer this to be a bugfix. > > > >BTW, does this patch take into account net namespace of ib_device? > > I think this patch is irrelevant with the netns of ib_device. > > SMC has a global smc_ib_devices list reported by ib_client, and checked > the netns using rdma_dev_access_netns. So I think we should have handled > that well. ok, I see Thanks, Reviewed-by: Leon Romanovsky