Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp4270038pxk; Tue, 22 Sep 2020 15:09:34 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxl5Bfeqs+5vBEWS08dWO7wKhhhCqpfBV8FGUqcOH9Zp+qKDXHZq4psOllW6OyUnncmnOZe X-Received: by 2002:a50:fc83:: with SMTP id f3mr6136344edq.256.1600812574238; Tue, 22 Sep 2020 15:09:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1600812574; cv=none; d=google.com; s=arc-20160816; b=Y+BKWcVyqkKGLSlsbl+Vo0OmqmdcB1viHQz9MT9OQEqA0tPqSH0k+6k1pBLtlfpYmA wUL2iaM9/GduzgUNo3zGhfbhKCYNc5DinI+zxgIf7MuYq2QpcSXgDupNYRVAXcrITlk2 AzUZ0sJMOgFYzxTNXAJ3ac1M4qjNFbU7NaAp84xnLYDp4m9FHzpEorvqFeIv8QRPXEej +OUvCJNQfILywWnimJ7b+NfZqS/rEGFW1ZsjxyX4fwBVNuTOugYLocrtfUXCoqxLonbx qNAqdvCRwbrQulXVDXQtr2a6PNQKbKh6LfV3B2kqk7md2F8/EXun8fkBZHbWpUj3m6FA TQEw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=1HuDu6VLipkoXjOvX2ydRAsRN46ZNECZq7n9nX0XdnI=; b=FUXP+wNLQE6X6ZQRtMKEol5lUTzUpjBoHQdhGrbO2Ic17g9yLpGNpTzk+wPAJ5rfl8 FHddCZSuJhAMctVt2agYgjEBmxb7QlehSl2oXLYGvGFBXL67jEbEAFuKp+vwoTp/YHO7 pi0w6rYJoztaHL8Xzz7yBnAnpFxG1Dz5UY0rMloKZwCY2GwY/74XqslKXQMjB135BUZ0 j54agqSHjy1oq1yuz7or4ZvG3BaXhXVBA3SKt//s1UK/EAdBPw5uhVbjqZeuQqx39Agu jPNKJKKbtgj55iYq0mU6rVyXjSOFmvYsjA8+t2j6dbyqKKxRPAAgiHYfN7A3bqB+ZGrL 3xEA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=K9YFCvRy; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id jo4si11146800ejb.681.2020.09.22.15.09.06; Tue, 22 Sep 2020 15:09:34 -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=@redhat.com header.s=mimecast20190719 header.b=K9YFCvRy; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726727AbgIVWFP (ORCPT + 99 others); Tue, 22 Sep 2020 18:05:15 -0400 Received: from us-smtp-delivery-124.mimecast.com ([216.205.24.124]:60136 "EHLO us-smtp-delivery-124.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726685AbgIVWFP (ORCPT ); Tue, 22 Sep 2020 18:05:15 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1600812314; 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: in-reply-to:in-reply-to:references:references; bh=1HuDu6VLipkoXjOvX2ydRAsRN46ZNECZq7n9nX0XdnI=; b=K9YFCvRyRtZ+nAFcyjOo1zRHreHcjNEcMaoFHYrz4vMknwVSIZWS1XgM5QyUSdJnVVJXFI Au9maU65hgc0OIXEaorDArlVSpUaBQaMDs214G7SRDuxZz5O+jxWiMYwJ32TNjin4T1t62 IpSlrh09aTIS2gghyeIEGaySS1KH2YU= Received: from mail-ot1-f71.google.com (mail-ot1-f71.google.com [209.85.210.71]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-165-K0MbwC7iOAGA1YSLKAhGzA-1; Tue, 22 Sep 2020 18:05:12 -0400 X-MC-Unique: K0MbwC7iOAGA1YSLKAhGzA-1 Received: by mail-ot1-f71.google.com with SMTP id x52so1775712otb.11 for ; Tue, 22 Sep 2020 15:05:12 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=1HuDu6VLipkoXjOvX2ydRAsRN46ZNECZq7n9nX0XdnI=; b=KgDrnlRvr4LipYKajVXeqBR6S5Pfidl6CXQvFrejrWz2wzOlPSuVGZGOD1DxrVRaWu r2ctz+7cs+dqjiTfiKXlwix+IeCt1UEW5qzdFnmdS8bLX4O5gsq5CCm3/O9968HxZcQ/ 5aYMSwIym/a3pL5qZ2EbAlaVavryIWlmhmQQuKJjiyDII58Um1P2wCM6AjMAWy4VQwSe n+mcjFwflS4PdTQXrpeNTGLyxjy7zBRNFYrJpGDhleCm+TSj6PLNVLPs6NtlLAoa4Iw4 GlYLJbYLEUYVf5/J47ehjBYuJM1vtaCVzrKACr00c+yCcKhzhZmJlX4EVVeLgzj9sDZj 9Qzw== X-Gm-Message-State: AOAM530o/GOTaH8Zihvq3P4kjQJbfQRfnvq/ZUumqeNkyyyNOsyjQeXX lJW2TZJWNn9ezrio40V2fZml3hFOTsdd9RoJ2L6AYONPoVUtsy+IcptGUfWIfthblRMSVsY+hSa G0a4xucWytmn2/Y5dZJpbE1JYDzy97TzkUn7OHsRd X-Received: by 2002:a4a:a385:: with SMTP id s5mr4526257ool.8.1600812311423; Tue, 22 Sep 2020 15:05:11 -0700 (PDT) X-Received: by 2002:a4a:a385:: with SMTP id s5mr4526237ool.8.1600812311133; Tue, 22 Sep 2020 15:05:11 -0700 (PDT) MIME-Version: 1.0 References: <20200922133731.33478-1-jarod@redhat.com> <20200922133731.33478-5-jarod@redhat.com> In-Reply-To: <20200922133731.33478-5-jarod@redhat.com> From: Jarod Wilson Date: Tue, 22 Sep 2020 18:05:00 -0400 Message-ID: Subject: Re: [PATCH net-next 4/5] bonding: make Kconfig toggle to disable legacy interfaces To: LKML Cc: Jay Vosburgh , Veaceslav Falico , Andy Gospodarek , "David S. Miller" , Jakub Kicinski , Thomas Davis , Netdev Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Sep 22, 2020 at 9:38 AM 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. > diff --git a/drivers/net/bonding/bond_procfs.c b/drivers/net/bonding/bond_procfs.c > index abd265d6e975..91ece68607b2 100644 > --- a/drivers/net/bonding/bond_procfs.c > +++ b/drivers/net/bonding/bond_procfs.c > @@ -7,6 +7,12 @@ > > #include "bonding_priv.h" > > +#ifdef CONFIG_BONDING_LEGACY_INTERFACES > +const char *linkdesc = "Slave"; > +#else > +const char *linkdesc = "Link"; > +#endif I've been asked if it would be okay to add extra lines to the /proc/net/bonding/ output, so that for example, both "Slave Interface: " and "Link Interface: " are both in the default output, with the Slave bits then suppressed by the Kconfig option being unset, versus the Kconfig option currently swapping out Slave for Link when disabled. It would bloat the output by a fair number of lines, but all the same data would be there and parseable. Wasn't sure on this one, so I wanted to check on it. If it would be acceptable, I'll rework that bit of code. -- Jarod Wilson jarod@redhat.com