Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp15299pxk; Tue, 22 Sep 2020 17:04:17 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxjzpop80WG9J3wtZiSRkjiFqY5PeqXDNlcJ+a2iao6vytI11yjyuhXJ6N5pD1nIkDfSuot X-Received: by 2002:aa7:d3da:: with SMTP id o26mr6474899edr.169.1600819457366; Tue, 22 Sep 2020 17:04:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1600819457; cv=none; d=google.com; s=arc-20160816; b=GqJlPcfOQtoWoX/+HKO4LhKMJ/2Egh9VZw/7bArCxJefXE19t27gZMRFg1FuNxqqI7 +cWJa2j/1dwYPEH5DWphK6dSP9ZZ2865YQk8kBLj+kJuoQh3G28gMv6X1hLML+4BxIkO vQAqI99qjW1LZgu7OUbIkPPGBgttt/11n/sKoN/k0vzatnT31NL8pTMqjq7pbP+SMixV DcznP5xNR126gldLupELz5OYEYBgyVv1lrfhQ3xfTNCGBVDdZAb7foXCdo7nL+He/7VN 8kQYoRtYYTWJfBtjMRfSXYaUl2rFAS51g4nX13y7lhQb6MVDXHqZLXOpBTudnEssw8cd enMw== 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; bh=ZXNMVSZav02E0i0QwISjbIWv/54LWtPn0P0QNvQvtC8=; b=xz5f9t1VJw3GOziZOJLLeo6VK9B2nVVEySSnBrb5JKW1JhEedcxT0st4xlh3Xjtwke ugkxNLTPRA84gDsWKUliF0CBy7wFL59cgT7VfKb2v6LySdiPkN0cMJLq7Zn/DZmLa1MR 4jfINnbQKmpENnTxJ6ifmOVQLcVzh9I5mxIjVVn4m/4uNFq+ZHQdSx/sNssDGWVj39b8 d+icD/6cTWDIR+6nf0XlUEqGT8rqU5pAJPz+RlhCqaPn0WxU6fuoBbv2TcVgF0SShN9F zD+dREDTzHpp27VMBwEof6RDZxwSY/OvRSdYfRLZ1FqCucsTPr820wIBNckSPKr35kYx q5vg== ARC-Authentication-Results: i=1; mx.google.com; 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 c18si12066785ejr.213.2020.09.22.17.03.54; Tue, 22 Sep 2020 17:04:17 -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; 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 S1726783AbgIVXXT (ORCPT + 99 others); Tue, 22 Sep 2020 19:23:19 -0400 Received: from mx2.suse.de ([195.135.220.15]:48016 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726614AbgIVXXT (ORCPT ); Tue, 22 Sep 2020 19:23:19 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.221.27]) by mx2.suse.de (Postfix) with ESMTP id D7BEBAA55; Tue, 22 Sep 2020 23:23:54 +0000 (UTC) Received: by lion.mk-sys.cz (Postfix, from userid 1000) id 5923D60320; Wed, 23 Sep 2020 01:23:17 +0200 (CEST) Date: Wed, 23 Sep 2020 01:23:17 +0200 From: Michal Kubecek To: Jarod Wilson Cc: linux-kernel@vger.kernel.org, Jay Vosburgh , Veaceslav Falico , Andy Gospodarek , "David S. Miller" , Jakub Kicinski , Thomas Davis , netdev@vger.kernel.org Subject: Re: [PATCH net-next 2/5] bonding: rename slave to link where possible Message-ID: <20200922232317.jlbgpsy74q6tbx3a@lion.mk-sys.cz> References: <20200922133731.33478-1-jarod@redhat.com> <20200922133731.33478-3-jarod@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200922133731.33478-3-jarod@redhat.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Sep 22, 2020 at 09:37:28AM -0400, Jarod Wilson wrote: > Getting rid of as much usage of "slave" as we can here, without breaking > any user-facing API. > > 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 > --- [...] > diff --git a/drivers/net/bonding/bond_main.c b/drivers/net/bonding/bond_main.c > index 1f602bcf10bd..8e2edebeb61a 100644 > --- a/drivers/net/bonding/bond_main.c > +++ b/drivers/net/bonding/bond_main.c [...] > @@ -143,12 +143,12 @@ MODULE_PARM_DESC(mode, "Mode of operation; 0 for balance-rr, " > module_param(primary, charp, 0); > MODULE_PARM_DESC(primary, "Primary network device to use"); > module_param(primary_reselect, charp, 0); > -MODULE_PARM_DESC(primary_reselect, "Reselect primary slave " > +MODULE_PARM_DESC(primary_reselect, "Reselect primary link " > "once it comes up; " > "0 for always (default), " > "1 for only if speed of primary is " > "better, " > - "2 for only on active slave " > + "2 for only on active link " > "failure"); > module_param(lacp_rate, charp, 0); > MODULE_PARM_DESC(lacp_rate, "LACPDU tx rate to request from 802.3ad partner; " > @@ -176,24 +176,24 @@ MODULE_PARM_DESC(arp_validate, "validate src/dst of ARP probes; " > module_param(arp_all_targets, charp, 0); > MODULE_PARM_DESC(arp_all_targets, "fail on any/all arp targets timeout; 0 for any (default), 1 for all"); > module_param(fail_over_mac, charp, 0); > -MODULE_PARM_DESC(fail_over_mac, "For active-backup, do not set all slaves to " > +MODULE_PARM_DESC(fail_over_mac, "For active-backup, do not set all links to " > "the same MAC; 0 for none (default), " > "1 for active, 2 for follow"); > -module_param(all_slaves_active, int, 0); > -MODULE_PARM_DESC(all_slaves_active, "Keep all frames received on an interface " > - "by setting active flag for all slaves; " > +module_param(all_links_active, int, 0); > +MODULE_PARM_DESC(all_links_active, "Keep all frames received on an interface " > + "by setting active flag for all links; " > "0 for never (default), 1 for always."); > module_param(resend_igmp, int, 0); > MODULE_PARM_DESC(resend_igmp, "Number of IGMP membership reports to send on " > "link failure"); > -module_param(packets_per_slave, int, 0); > -MODULE_PARM_DESC(packets_per_slave, "Packets to send per slave in balance-rr " > - "mode; 0 for a random slave, 1 packet per " > - "slave (default), >1 packets per slave."); > +module_param(packets_per_link, int, 0); > +MODULE_PARM_DESC(packets_per_link, "Packets to send per link in balance-rr " > + "mode; 0 for a random link, 1 packet per " > + "link (default), >1 packets per link."); > module_param(lp_interval, uint, 0); > MODULE_PARM_DESC(lp_interval, "The number of seconds between instances where " > "the bonding driver sends learning packets to " > - "each slaves peer switch. The default is 1."); > + "each links peer switch. The default is 1."); Even if the module parameters are deprecated and extremely inconvenient as a mean of bonding configuration, I would say changing their names would still count as "breaking the userspace". Michal