Received: by 2002:a05:7412:3784:b0:e2:908c:2ebd with SMTP id jk4csp1867020rdb; Tue, 3 Oct 2023 03:42:30 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGguvKiEO6V+LoU5RCo8fYHTdzcWpgf0P5o0Ld5vG64t/x2DT3iKmMSXlLPKwT6Vztelb4x X-Received: by 2002:a17:90b:1094:b0:279:310e:33fd with SMTP id gj20-20020a17090b109400b00279310e33fdmr7972554pjb.22.1696329749839; Tue, 03 Oct 2023 03:42:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1696329749; cv=none; d=google.com; s=arc-20160816; b=ewvB6G2RRr7LDHlKNpiFz3f7z4lGyXGbw8/dz1dfUSH0OSeuylOccjracRZ1C0/69p A8TuqZ5tOyGyKbUYLPwD0dJmRHrXjgWc415YkIlwckkoy2la9jM4/UEMfY7Br8GOrPnJ UO/cRG6Sz2ZU2LoPHaoIdVZxncaoiLH4TB2mKlHupY66CmlT4EjjN6AxQNUyZfZI9X83 rhv8AzarYmQobywMeIJ0kE7wBkFyMSteXk7KwwR/3fgvFZOLDhd2KAh3hc7lPf9dmFJR NBA+fj10kHGDEWP1JCWcqShDEhYPBJtlLDqkzHnurk7SJB6HwbI5bGBBvgtZ4mHhkCSr in5A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:user-agent :content-transfer-encoding:references:in-reply-to:date:cc:to:from :subject:message-id:dkim-signature; bh=xEM5s9LjMr/YRPee+FNwgiSqc+ylSynZdt7LNsU3DA8=; fh=19bC+8Ntt3iKRY8EJqzIizHpC9oQI1ELFdNgyXpvti8=; b=RzDSRi45bDtwb0pt+GPfD8P7xr1PkpHI/jMlzv8fUJgJvrRn9jByfknRhoyxg7CcbW 02/TDtPY+Xc7Re0sOpEmFycTZRTDGOaIbQSvEhZhE1AZJIm6My/O3tP/+uUCef3YaAM6 RXfA8LvQIO8VJo1fo+zEBKz0aYd3vLDh32Vz+JWRRPEIsnpwK8Lr6binUap2aHKV40T3 JwT/t75bdagp3HABbk4itGCGhw0u4PLydPy2241s6255QNeJOja+OM1HTl0rBOUSvPtf uBuh3UIBbjlJWat2sXqBE9uLkP3yO5tB804syFiU4yJA4nvXnP5va37q3mzPPgDdQKxa VGdg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=DSLIzrKj; 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=redhat.com Return-Path: Received: from groat.vger.email (groat.vger.email. [23.128.96.35]) by mx.google.com with ESMTPS id ob17-20020a17090b391100b00279140ac5b3si10604510pjb.143.2023.10.03.03.42.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 03 Oct 2023 03:42:29 -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=@redhat.com header.s=mimecast20190719 header.b=DSLIzrKj; 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=redhat.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by groat.vger.email (Postfix) with ESMTP id 4AF7880A8B81; Tue, 3 Oct 2023 03:42:27 -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 S231441AbjJCKmU (ORCPT + 99 others); Tue, 3 Oct 2023 06:42:20 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44842 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230215AbjJCKmT (ORCPT ); Tue, 3 Oct 2023 06:42:19 -0400 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 32B76B0 for ; Tue, 3 Oct 2023 03:41:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1696329690; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=xEM5s9LjMr/YRPee+FNwgiSqc+ylSynZdt7LNsU3DA8=; b=DSLIzrKjcWZypmbh1z5xtD0OfVGSU0vrcSXfbrfUQ94MJnRfDv3lkeDdAgfFAbP7/ZN049 2PQ4uEyQnJJwK8JvkW7HZui81i+ZlSGuGs/pxSkMsNwCvf6zsuuneXmC6WNtS21gDHDpb2 lhoV/P2CoXwD5t/aXijmM2LBIJrpevA= Received: from mail-ej1-f70.google.com (mail-ej1-f70.google.com [209.85.218.70]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-635-L0GLOPf5N-G3JtJhYIrfdA-1; Tue, 03 Oct 2023 06:41:29 -0400 X-MC-Unique: L0GLOPf5N-G3JtJhYIrfdA-1 Received: by mail-ej1-f70.google.com with SMTP id a640c23a62f3a-9b295d163fdso17512366b.1 for ; Tue, 03 Oct 2023 03:41:29 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1696329688; x=1696934488; h=mime-version:user-agent:content-transfer-encoding:references :in-reply-to:date:cc:to:from:subject:message-id:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=xEM5s9LjMr/YRPee+FNwgiSqc+ylSynZdt7LNsU3DA8=; b=jqNdsIaufTMkQ5gyRJhgAptJj4l69e6obsdKyuYoVi8DQutcf8wGfBLlM4xG03qYX8 hhuB0niT0cgOGun5WmrXRo6PVDNnvrhaqhm/Cap+JNc5Eh3SHLWZcRjEL4L3gtqJ7pMo IgAUJdInxrGQja7nRVOooo/bTH100i/VbXnk8KNKCtEEjj+gPyd4eHWuombaBQxnumPG wBvwJdXsnUY6lKAvG3+OL3uwte5ONpkvrZ6XN3JObPE5+lQCOxD7gRYYaUUFw8Teda0V rqrLblY2OyzOynhbzcvQEqgXnuH5+3lm9gooZQvd/1EOtOou6NXEfkd2i7r+v/R5XlNg bTpQ== X-Gm-Message-State: AOJu0YwEi50NowYY07ByP0EYs1LgEm23qQIgIQQqC9lL/+FOvJWeENdj lKCbrVlIr3sQUgsXDipUQsbCCJiE+g8B4PQmNoe2oWDLcce/Xy0t3ia9tL8UFpXNqrapd6mr4FM mooGsHYZ/gv6jBp+7R6/BoGr9 X-Received: by 2002:a17:906:25d:b0:9b2:bf2d:6b65 with SMTP id 29-20020a170906025d00b009b2bf2d6b65mr13123550ejl.4.1696329688209; Tue, 03 Oct 2023 03:41:28 -0700 (PDT) X-Received: by 2002:a17:906:25d:b0:9b2:bf2d:6b65 with SMTP id 29-20020a170906025d00b009b2bf2d6b65mr13123529ejl.4.1696329687871; Tue, 03 Oct 2023 03:41:27 -0700 (PDT) Received: from gerbillo.redhat.com (146-241-232-193.dyn.eolo.it. [146.241.232.193]) by smtp.gmail.com with ESMTPSA id n10-20020a170906118a00b009a19701e7b5sm832863eja.96.2023.10.03.03.41.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 03 Oct 2023 03:41:27 -0700 (PDT) Message-ID: <6e5fb3e148ae1fb4a29561fe9d04235d8be6ab1f.camel@redhat.com> Subject: Re: [PATCH net-next] net/smc: add support for netdevice in containers. From: Paolo Abeni To: dust.li@linux.alibaba.com, Albert Huang , Karsten Graul , Wenjia Zhang , Jan Karcher Cc: "D. Wythe" , Tony Lu , Wen Gu , "David S. Miller" , Eric Dumazet , Jakub Kicinski , linux-s390@vger.kernel.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org Date: Tue, 03 Oct 2023 12:41:25 +0200 In-Reply-To: <20230927034209.GE92403@linux.alibaba.com> References: <20230925023546.9964-1-huangjie.albert@bytedance.com> <20230927034209.GE92403@linux.alibaba.com> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.46.4 (3.46.4-1.fc37) MIME-Version: 1.0 X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,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]); Tue, 03 Oct 2023 03:42:27 -0700 (PDT) On Wed, 2023-09-27 at 11:42 +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, >=20 > Thanks for your founding ! >=20 > 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 b= ugfix. Re-stating the above to be on the same page: the patch should be re- posted targeting the net tree, and including a suitable fixes tag. @Dust Li: please correct me if I misread you. Thanks, Paolo