From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-1.0 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_PASS autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id D1A19C43381 for ; Tue, 26 Feb 2019 02:05:30 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id A9DC720684 for ; Tue, 26 Feb 2019 02:05:30 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726099AbfBZCF3 (ORCPT ); Mon, 25 Feb 2019 21:05:29 -0500 Received: from mail-qt1-f195.google.com ([209.85.160.195]:42896 "EHLO mail-qt1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725929AbfBZCF3 (ORCPT ); Mon, 25 Feb 2019 21:05:29 -0500 Received: by mail-qt1-f195.google.com with SMTP id u7so3941731qtg.9 for ; Mon, 25 Feb 2019 18:05:28 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=841RTsW2MajOWeK4vuaaob07rzsNZfrooRVtp12QqGU=; b=XlBIlt+IM5ci/b0b+Sk0/GZWWBQVHdEXBI6j9crBrxF3eIQQHXyHh2/J5Was/O93hM HokYoCc2ns5CSKaDgmCKzgznOC/Enh66lVWFXyLGjAj1nVdqWP6XNnXkEJlHTvM93If8 qB4gdpAGIhH49i2e4jNeBq6LaVad49x7saSGKDyrE+FqqgxMeI3TJfWy/wumSoS0BHVR YhQxnSrQDYFZKYYUNW3+/40b/NzRrGWTCERcGMllWRZVjo1v/KflYnj6nNuhBX1l5ynb jk3eCjC8WdDm+NjMjqiO7gvDTnjGosKygQ+RPkKMl7PuFUI2yoK7m7NF4zRLsBwJ7xaS Pi+Q== X-Gm-Message-State: AHQUAubv+lBmrlx/XshJbW0fd4uGW24MgBdfjxD2waW6WIm29Yes+8+W cAuBtKYs7UShNbKjk98WPcuQEA== X-Google-Smtp-Source: AHgI3IZVPyEG0ferE8gHyXuXMRtjuPUPHX1UnuqrFnls+Jbr6VwKYoMBJQ6Y+5HL7I+pGvduTVjKvw== X-Received: by 2002:a0c:88ed:: with SMTP id 42mr15377020qvo.126.1551146728195; Mon, 25 Feb 2019 18:05:28 -0800 (PST) Received: from redhat.com (pool-173-76-246-42.bstnma.fios.verizon.net. [173.76.246.42]) by smtp.gmail.com with ESMTPSA id d50sm10689684qta.31.2019.02.25.18.05.26 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 25 Feb 2019 18:05:27 -0800 (PST) Date: Mon, 25 Feb 2019 21:05:24 -0500 From: "Michael S. Tsirkin" To: Stephen Hemminger Cc: si-wei liu , "Samudrala, Sridhar" , Siwei Liu , Jiri Pirko , David Miller , Netdev , virtualization@lists.linux-foundation.org, virtio-dev , "Brandeburg, Jesse" , Alexander Duyck , Jakub Kicinski , Jason Wang , liran.alon@oracle.com Subject: Re: [virtio-dev] Re: net_failover slave udev renaming (was Re: [RFC PATCH net-next v6 4/4] netvsc: refactor notifier/event handling code to use the bypass framework) Message-ID: <20190225210428-mutt-send-email-mst@kernel.org> References: <20180410142608.50f15b45@xeon-e3> <20180411075334.GK2028@nanopsycho> <20190221203808-mutt-send-email-mst@kernel.org> <581e4399-3969-aecd-e923-03bbc0880733@oracle.com> <91d4cbb1-be7a-b53c-6b2a-99bef07e7c53@intel.com> <20190222100753-mutt-send-email-mst@kernel.org> <20190225173912.26b93422@shemminger-XPS-13-9360> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190225173912.26b93422@shemminger-XPS-13-9360> Sender: netdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org On Mon, Feb 25, 2019 at 05:39:12PM -0800, Stephen Hemminger wrote: > > >>> Moreover, you were suggesting hiding the lower slave devices anyway. There was some discussion > > >>> about moving them to a hidden network namespace so that they are not visible from the default namespace. > > >>> I looked into this sometime back, but did not find the right kernel api to create a network namespace within > > >>> kernel. If so, we could use this mechanism to simulate a 1-netdev model. > > >> Yes, that's one possible implementation (IMHO the key is to make 1-netdev > > >> model as much transparent to a real NIC as possible, while a hidden netns is > > >> just the vehicle). However, I recall there was resistance around this > > >> discussion that even the concept of hiding itself is a taboo for Linux > > >> netdev. I would like to summon potential alternatives before concluding > > >> 1-netdev is the only solution too soon. > > >> > > >> Thanks, > > >> -Siwei > > > Your scripts would not work at all then, right? > > At this point we don't claim images with such usage as SR-IOV live > > migrate-able. We would flag it as live migrate-able until this ethtool > > config issue is fully addressed and a transparent live migration > > solution emerges in upstream eventually. > > The hyper-v netvsc with 1-dev model uses a timeout to allow udev to do its rename. > I proposed a patch to key state change off of the udev rename, but that patch was > rejected. Of course that would mean nothing works without udev - was that the objection? Could you help me find that discussion pls? -- MST