Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp1655596pxk; Fri, 2 Oct 2020 15:43:46 -0700 (PDT) X-Google-Smtp-Source: ABdhPJysLFo5qUnYDe5PItzJgjWk9nLc7NAsMWFwCFHgpI+v6ECZPN+QD0pwSeAp1Iu2p0jDis+6 X-Received: by 2002:a17:906:1f08:: with SMTP id w8mr4269344ejj.181.1601678625853; Fri, 02 Oct 2020 15:43:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1601678625; cv=none; d=google.com; s=arc-20160816; b=PfquH6SbAA+aDPZ14viq/PEKqhYxhGgu/icVGPdgE13HW4JRDdmqDHOWz84mKmz5O/ HGoNrfrtAQyBFKNAOnUvEQTBnqZVgqraSco5WIfdkQkwLDFzMc0HSsViow0DYM5CN423 /FwRfuqEA92YK++TNk2XdlooY/+lWRoW+SrLFPzM33XA6/tsBcbeK/bgcc5ZIjOB78uT 3+JxzsOZ4qtDHtDLBeu27lVDotyoGgu4IM2XlazbQ9zWhe/cMeSntCW728ZBky5vAXaD fYn/XOB8HopHt+9IFjlJxZ2Lgmm7S/L2ak/OJGf2S++2DW9DbNfqkb6i131rSyQYjByK zjwA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date :dkim-signature; bh=0BLzxT6WUemFKsAn6h5mf72t5nn+rCxo/YdzeOflxtE=; b=BQAOWPMlOWcQQ9JOCvi2zcy5shivHGwlGJiMM7qmjdDEYwnTCPbHkujlNZWuUmS4LS Dp5RxSdHRnJ5v5OC2dctz3Kl5EtXm2SS+1cRfHk5Mp1qICqw33QgHg3hKc4jWYDWApnu ZcbTYh0NhXGTs00G+WG8YS8aS9jfSq0arMpN8sb1xZM022oVr4xMfjpTgeTGPquTjdMo HigXuDVwwRUUl9zql8utfAdBNd0DY3+8pMu7V51tCzhlJXW94dy8acK6ri7whgOWxyAT dfbGMOiptbmCQnbA4vAtBmYVZH+nn2KUK5thNR2ReGGM9Zvv7wBdtlT1P7T+LoX1ffkr 8YLg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@networkplumber-org.20150623.gappssmtp.com header.s=20150623 header.b="TuBV/giG"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id do7si1679194ejc.322.2020.10.02.15.43.23; Fri, 02 Oct 2020 15:43:45 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@networkplumber-org.20150623.gappssmtp.com header.s=20150623 header.b="TuBV/giG"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1725616AbgJBWmb (ORCPT + 99 others); Fri, 2 Oct 2020 18:42:31 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46480 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725446AbgJBWmb (ORCPT ); Fri, 2 Oct 2020 18:42:31 -0400 Received: from mail-pg1-x541.google.com (mail-pg1-x541.google.com [IPv6:2607:f8b0:4864:20::541]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 60A46C0613D0 for ; Fri, 2 Oct 2020 15:42:31 -0700 (PDT) Received: by mail-pg1-x541.google.com with SMTP id x16so1786676pgj.3 for ; Fri, 02 Oct 2020 15:42:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=0BLzxT6WUemFKsAn6h5mf72t5nn+rCxo/YdzeOflxtE=; b=TuBV/giGUm+Ke8jfXjpm9lJjEbFsrpix4WyKmL0+eHKrqzOskKGGtuihzKU3x4JOmt NXMg9edy5h/Oq2qynIragg/6MIZaneWaPVWdBcM5mOFpD7C9tRSVi5enS1tHN3LiRrA+ pPrwUE1J2Mr2Q7W974fVe847pG9rlbsA27Db+FK57UjFjaJlFS7FjRgk7hxzbYTo6kzR XQfpTuA9UP3TfkdgyiZkudWT8ZYFMFRr/A+7FszxuVC1zv1ROu35xX9dB+B2Ea9hM420 lOVWeQFyqx+iKOmYJ6l9Efa9Hp3cDaApkq+EjcgXHLO6syteI0+EOwrRRnj/YL2y+oqC vHZA== 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:in-reply-to :references:mime-version:content-transfer-encoding; bh=0BLzxT6WUemFKsAn6h5mf72t5nn+rCxo/YdzeOflxtE=; b=AZ/KdLy+nhTTfuCjgjbQRQaiVZeErUObkIwkLqvuramCp9J8qVd+G2h+v13aUSGThb pG6zTSazIwPntW3MNzI/9JkKV/5raSiA/9/ZQ9WrjqPAbAsPbIUn2y1XQ2ORuV68bCtK jmgWfyXUlb+FlrFQhN0lvVlL4oMC3aowcN3V+YyGlDdHHl9cs5aK2E8uKMCpBJ8SchBB XU1m+mEsmNyv13KEHCHapAI/kAzMZMldegqBLCKMQYxRDo37TC0F09iTZb76wN9eUfs2 f+0yncTRnQ/FG3IkQ5LBZk7JzYxhMvjf7qQWh7w7ePd/jjNOckDbSTf6FR+v6bIj96+I ipbg== X-Gm-Message-State: AOAM531csm9MSQCKaeMumBg7fpehY+qGGua2h8Es/eyx/kYj2WGsqwL3 cvmiY8r6xGoEsX8ZLlTOeEn+4OkrbtgzDQ== X-Received: by 2002:a63:5f89:: with SMTP id t131mr4197704pgb.436.1601678550759; Fri, 02 Oct 2020 15:42:30 -0700 (PDT) Received: from hermes.local (204-195-22-127.wavecable.com. [204.195.22.127]) by smtp.gmail.com with ESMTPSA id a14sm2579968pju.30.2020.10.02.15.42.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 02 Oct 2020 15:42:30 -0700 (PDT) Date: Fri, 2 Oct 2020 15:42:22 -0700 From: Stephen Hemminger To: Jarod Wilson Cc: LKML , Jay Vosburgh , Veaceslav Falico , Andy Gospodarek , "David S. Miller" , Jakub Kicinski , Thomas Davis , Netdev Subject: Re: [PATCH net-next v2 6/6] bonding: make Kconfig toggle to disable legacy interfaces Message-ID: <20201002154222.3adfe408@hermes.local> In-Reply-To: References: <20201002174001.3012643-1-jarod@redhat.com> <20201002174001.3012643-7-jarod@redhat.com> <20201002121317.474c95f0@hermes.local> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, 2 Oct 2020 16:23:46 -0400 Jarod Wilson wrote: > On Fri, Oct 2, 2020 at 3:13 PM Stephen Hemminger > wrote: > > > > On Fri, 2 Oct 2020 13:40:01 -0400 > > Jarod Wilson wrote: > > > > > By default, enable retaining all user-facing API that includes the use of > > > master and slave, but add a Kconfig knob that allows those that wish to > > > remove it entirely do so in one shot. > > > > > > Cc: Jay Vosburgh > > > Cc: Veaceslav Falico > > > Cc: Andy Gospodarek > > > Cc: "David S. Miller" > > > Cc: Jakub Kicinski > > > Cc: Thomas Davis > > > Cc: netdev@vger.kernel.org > > > Signed-off-by: Jarod Wilson > > > --- > > > drivers/net/Kconfig | 12 ++++++++++++ > > > drivers/net/bonding/bond_main.c | 4 ++-- > > > drivers/net/bonding/bond_options.c | 4 ++-- > > > drivers/net/bonding/bond_procfs.c | 8 ++++++++ > > > drivers/net/bonding/bond_sysfs.c | 14 ++++++++++---- > > > drivers/net/bonding/bond_sysfs_port.c | 6 ++++-- > > > 6 files changed, 38 insertions(+), 10 deletions(-) > > > > > > > This is problematic. You are printing both old and new values. > > Also every distribution will have to enable it. > > > > This looks like too much of change to users. > > I'd had a bit of feedback that people would rather see both, and be > able to toggle off the old ones, rather than only having one or the > other, depending on the toggle, so I thought I'd give this a try. I > kind of liked the one or the other route, but I see the problems with > that too. > > For simplicity, I'm kind of liking the idea of just not updating the > proc and sysfs interfaces, have a toggle entirely disable them, and > work on enhancing userspace to only use netlink, but ... it's going to > be a while before any such work makes its way to any already shipping > distros. I don't have a satisfying answer here. > I like the idea of having bonding proc and sysf apis optional.