Received: by 2002:a05:7412:d8a:b0:e2:908c:2ebd with SMTP id b10csp1289820rdg; Fri, 13 Oct 2023 17:27:10 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHz43+Z450tryjzSXk7/3NOLiOE6qo+AnCSAzN8efQ6nw2y8QxvqtA3/49LXm6e1ER7o9DY X-Received: by 2002:a17:90b:1a81:b0:277:4be4:7a84 with SMTP id ng1-20020a17090b1a8100b002774be47a84mr2466969pjb.19.1697243230402; Fri, 13 Oct 2023 17:27:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697243230; cv=none; d=google.com; s=arc-20160816; b=VXC3TIBR1O8oIuvSjTiSj86HJLcqjReCShPpkvXC3/PMe+x27CN9hKfLf4rYo+Xh9b hKKHAXKJguOp5T5TQj4wHZGEQeighHC+U4Rs6znv8YTGZG4FMzQl8fdq1k2/LlXXuXbH 5Gob0EbRG77ajNUqfzAwDrrJxA9rc3ch0IRMsLH/nUEKjTqvXW/J7ZXe+yJkQJCIEOic jnFE35nZc16RasijIY+IKwehaZqZS+fjaVvz5FEFllPFnfuCRC2XLsWJaH6DKfO2FYqB Ja/+udNGnbafvqs8qhHJ9M7+5wAnyLjSCkXqGOs2LDto1oyAenO/k1lfsuPLwIUjXI2P CwtA== 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=h951LMewXn+s7IXM8I6VN6t/9c8zi/6NXOasNhvUCHY=; fh=eRmsiqxHdUm7YbSrDzbVesEW6BnnGQ7b7DEiYIcb5jA=; b=fnDkr7kZVlGXQI47tP9727UjrYxW8Og0dkoDLalFi0tlOIdfOjeCNIsLqmwX3WxmTp kfwUfGh9tQgRDilwfSjfnL2HpBwmxr8dVmMt3knMiD90KDv+WiDMjG0fUw8MaYCffczD TNEN+rPLjFZ+Mfh7Xi+JjzwovFUqFqaKgauT6Mma43aZeI5yRMfRKlq19ORGyTYMuURF sag0j4CtXjinxr4vNYiGFZ2iQcXHNVXJvucLIzqaAzOWDzlr+wnGwxFQSZANkvrTKtoU EGyF48mXqGpcqw85Yjg1Qoal+qvgnqCm3bImD1yn1519YE32IDfEDUph+cuwLpevJyGe nNqQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@networkplumber-org.20230601.gappssmtp.com header.s=20230601 header.b=FeRlKX+o; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=networkplumber.org Return-Path: Received: from snail.vger.email (snail.vger.email. [23.128.96.37]) by mx.google.com with ESMTPS id az1-20020a056a02004100b005897813623fsi5590258pgb.470.2023.10.13.17.27.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 13 Oct 2023 17:27:10 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) client-ip=23.128.96.37; Authentication-Results: mx.google.com; dkim=pass header.i=@networkplumber-org.20230601.gappssmtp.com header.s=20230601 header.b=FeRlKX+o; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=networkplumber.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id 8197A8031AF7; Fri, 13 Oct 2023 17:27:09 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230297AbjJNA1G (ORCPT + 99 others); Fri, 13 Oct 2023 20:27:06 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57754 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229518AbjJNA1F (ORCPT ); Fri, 13 Oct 2023 20:27:05 -0400 Received: from mail-pl1-x636.google.com (mail-pl1-x636.google.com [IPv6:2607:f8b0:4864:20::636]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 411A7C0 for ; Fri, 13 Oct 2023 17:27:02 -0700 (PDT) Received: by mail-pl1-x636.google.com with SMTP id d9443c01a7336-1c9daca2b85so19977075ad.1 for ; Fri, 13 Oct 2023 17:27:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20230601.gappssmtp.com; s=20230601; t=1697243222; x=1697848022; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:subject:cc:to:from:date:from:to:cc:subject:date :message-id:reply-to; bh=h951LMewXn+s7IXM8I6VN6t/9c8zi/6NXOasNhvUCHY=; b=FeRlKX+oiFtJfDl9bPhhb6/DKCFoKMt34VATDem7yu0UtioDUHHwzTpQqsI5WL/L46 uz3AacgQ8AlDc0iuqwEN/misigFXGmedSiGTDQwez7AHywWPuQd87S79a1C7bIME45um GgDsJ2RMHh300w2AmW/5oKoW74vGuTC/MsfOxhxBvgboI4X+0z+aWsFjrFPtyouR6F4M BvXKoFrHft1pJB+HquaIXOSM+bOQqtXytAKVy1lzA5x92G8cu0Bq+j97wJ+X2vvMiqX4 MeaqbgjJYHWY633dPaBurBp5OQ03lR297t/r1c4JcXUZ6+2rWHdnG5Sw/u8Hh8W66BbS OBfw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1697243222; x=1697848022; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:subject:cc:to:from:date:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=h951LMewXn+s7IXM8I6VN6t/9c8zi/6NXOasNhvUCHY=; b=TnCryA8PWk+XEZMyLiwfDfuncAq2LIIoLZUS4HCOJCWcHV9Z5+Ip+k1q+zy9By+yIU 8jI73T41zJ/TQNHIV5GSMery3qSVzPwnyaa48HnHj6OoYr7ZPhQVKcyHouMk8IyuocJ2 hYUuVXdS4MZQRD3soSHAZgOj7XWC1RFoeAN0n4HpVJzXJ97HgXcra9uMfQR2vuCQV0ue S3U6F8bL79NAUdKIDOvcLCWUoWC85xlnOUwHHz9VtliS/+5sxY3RcrTx17h7U0uzvacf oN9jcNjWnmVgWz0eaOH0ARY8yDCHlY1lBsqT0zT7L4kC1TD3AaU/4vjcUK/cuK7PKH4u 07yQ== X-Gm-Message-State: AOJu0YwqXIVhoX6d8T+zHaoAuRcMQxIe9TbQBRHstHJd2Px4ZBge/IvE fpgay/gzQxRfaQ1ULBYA9sG9UQ== X-Received: by 2002:a17:903:32c4:b0:1b8:8682:62fb with SMTP id i4-20020a17090332c400b001b8868262fbmr2538812plr.4.1697243221703; Fri, 13 Oct 2023 17:27:01 -0700 (PDT) Received: from hermes.local (204-195-126-68.wavecable.com. [204.195.126.68]) by smtp.gmail.com with ESMTPSA id k1-20020aa79d01000000b00666e649ca46sm1381476pfp.101.2023.10.13.17.27.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 13 Oct 2023 17:27:01 -0700 (PDT) Date: Fri, 13 Oct 2023 17:26:59 -0700 From: Stephen Hemminger To: Florian Fainelli Cc: netdev@vger.kernel.org, Andrew Lunn , Florian Fainelli , Vladimir Oltean , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Broadcom internal kernel review list , linux-kernel@vger.kernel.org (open list:ARM/Mediatek SoC support), linux-arm-kernel@lists.infradead.org (moderated list:ARM/Mediatek SoC support) Subject: Re: [PATCH net-next v3 0/2] Switch DSA to inclusive terminology Message-ID: <20231013172659.27cea145@hermes.local> In-Reply-To: <20231013215251.152912-1-florian.fainelli@broadcom.com> References: <20231013215251.152912-1-florian.fainelli@broadcom.com> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net 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 (snail.vger.email [0.0.0.0]); Fri, 13 Oct 2023 17:27:09 -0700 (PDT) On Fri, 13 Oct 2023 14:52:49 -0700 Florian Fainelli wrote: > One of the action items following Netconf'23 is to switch subsystems to > use inclusive terminology. DSA has been making extensive use of the > "master" and "slave" words which are now replaced by "conduit" and > "user" respectively. > > Changes in v3: > - properly align arguments with the changed function names > - ensure markup delimiters lengths are corrected to the name word length > - maintain the existing wording about LAG devices > > Changes in v2: > > - addressed kbuild test robots reports > - preserve capitalization where relevant > - fixed build error in mtk_ppe_offload.c > > Florian Fainelli (2): > net: dsa: Use conduit and user terms > net: dsa: Rename IFLA_DSA_MASTER to IFLA_DSA_CONDUIT > > .../bindings/net/dsa/mediatek,mt7530.yaml | 2 +- > Documentation/networking/dsa/b53.rst | 14 +- > Documentation/networking/dsa/bcm_sf2.rst | 2 +- > .../networking/dsa/configuration.rst | 102 +- > Documentation/networking/dsa/dsa.rst | 156 +- > Documentation/networking/dsa/lan9303.rst | 2 +- > Documentation/networking/dsa/sja1105.rst | 6 +- > .../dts/marvell/armada-3720-espressobin.dtsi | 2 +- > drivers/net/dsa/b53/b53_common.c | 4 +- > drivers/net/dsa/b53/b53_mdio.c | 2 +- > drivers/net/dsa/bcm_sf2.c | 36 +- > drivers/net/dsa/bcm_sf2.h | 2 +- > drivers/net/dsa/bcm_sf2_cfp.c | 4 +- > drivers/net/dsa/lan9303-core.c | 4 +- > drivers/net/dsa/lantiq_gswip.c | 34 +- > drivers/net/dsa/microchip/ksz9477.c | 6 +- > drivers/net/dsa/microchip/ksz_common.c | 20 +- > drivers/net/dsa/microchip/ksz_ptp.c | 2 +- > drivers/net/dsa/mt7530.c | 16 +- > drivers/net/dsa/mv88e6xxx/chip.c | 2 +- > drivers/net/dsa/ocelot/felix.c | 68 +- > drivers/net/dsa/ocelot/felix.h | 6 +- > drivers/net/dsa/qca/qca8k-8xxx.c | 50 +- > drivers/net/dsa/qca/qca8k-common.c | 2 +- > drivers/net/dsa/qca/qca8k-leds.c | 6 +- > drivers/net/dsa/qca/qca8k.h | 2 +- > drivers/net/dsa/realtek/realtek-smi.c | 28 +- > drivers/net/dsa/realtek/realtek.h | 2 +- > drivers/net/dsa/sja1105/sja1105_main.c | 4 +- > drivers/net/dsa/xrs700x/xrs700x.c | 12 +- > drivers/net/ethernet/broadcom/bcmsysport.c | 2 +- > drivers/net/ethernet/mediatek/mtk_eth_soc.c | 2 +- > .../net/ethernet/mediatek/mtk_ppe_offload.c | 2 +- > include/linux/dsa/sja1105.h | 2 +- > include/net/dsa.h | 56 +- > include/net/dsa_stubs.h | 22 +- > include/uapi/linux/if_link.h | 4 +- > net/core/dev_ioctl.c | 2 +- > net/dsa/Makefile | 6 +- > net/dsa/{master.c => conduit.c} | 118 +- > net/dsa/conduit.h | 22 + > net/dsa/dsa.c | 222 +-- > net/dsa/dsa.h | 12 +- > net/dsa/master.h | 22 - > net/dsa/netlink.c | 22 +- > net/dsa/port.c | 124 +- > net/dsa/port.h | 4 +- > net/dsa/slave.h | 69 - > net/dsa/switch.c | 18 +- > net/dsa/switch.h | 4 +- > net/dsa/tag.c | 10 +- > net/dsa/tag.h | 26 +- > net/dsa/tag_8021q.c | 22 +- > net/dsa/tag_8021q.h | 2 +- > net/dsa/tag_ar9331.c | 4 +- > net/dsa/tag_brcm.c | 14 +- > net/dsa/tag_dsa.c | 6 +- > net/dsa/tag_gswip.c | 4 +- > net/dsa/tag_hellcreek.c | 4 +- > net/dsa/tag_ksz.c | 12 +- > net/dsa/tag_lan9303.c | 4 +- > net/dsa/tag_mtk.c | 4 +- > net/dsa/tag_none.c | 6 +- > net/dsa/tag_ocelot.c | 22 +- > net/dsa/tag_ocelot_8021q.c | 12 +- > net/dsa/tag_qca.c | 6 +- > net/dsa/tag_rtl4_a.c | 6 +- > net/dsa/tag_rtl8_4.c | 6 +- > net/dsa/tag_rzn1_a5psw.c | 4 +- > net/dsa/tag_sja1105.c | 30 +- > net/dsa/tag_trailer.c | 4 +- > net/dsa/tag_xrs700x.c | 4 +- > net/dsa/{slave.c => user.c} | 1462 ++++++++--------- > net/dsa/user.h | 69 + > 74 files changed, 1539 insertions(+), 1537 deletions(-) > rename net/dsa/{master.c => conduit.c} (76%) > create mode 100644 net/dsa/conduit.h > delete mode 100644 net/dsa/master.h > delete mode 100644 net/dsa/slave.h > rename net/dsa/{slave.c => user.c} (62%) > create mode 100644 net/dsa/user.h After applying both patches, Ran script to check for non-inclusive naming. net/dsa/conduit.c: if (netif_is_lag_master(dev)) net/dsa/conduit.c: if (netif_is_lag_master(dev)) net/dsa/conduit.c: if (!netif_is_lag_master(dev)) { net/dsa/dsa.c: dsa_tree_notify(dst, DSA_NOTIFIER_MASTER_STATE_CHANGE, &info); net/dsa/dsa.c: if (netif_is_lag_master(conduit)) net/dsa/dsa.c: if (netif_is_lag_master(conduit)) net/dsa/port.c: bridge_dev = netdev_master_upper_dev_get(lag_dev); net/dsa/port.c: if (!bridge_dev || !netif_is_bridge_master(bridge_dev)) net/dsa/port.c: dp->cpu_port_in_lag = netif_is_lag_master(conduit); net/dsa/switch.c: case DSA_NOTIFIER_MASTER_STATE_CHANGE: net/dsa/switch.h: DSA_NOTIFIER_MASTER_STATE_CHANGE, net/dsa/switch.h:/* DSA_NOTIFIER_MASTER_STATE_CHANGE */ net/dsa/user.c: if (netif_is_bridge_master(upper)) net/dsa/user.c: if (netif_is_bridge_master(info->upper_dev)) { net/dsa/user.c: } else if (netif_is_lag_master(info->upper_dev)) { net/dsa/user.c: } else if (is_hsr_master(info->upper_dev)) { net/dsa/user.c: if (netif_is_bridge_master(info->upper_dev) && !info->linking) net/dsa/user.c: else if (netif_is_lag_master(info->upper_dev) && !info->linking) net/dsa/user.c: if (!netif_is_lag_master(dev)) net/dsa/user.c: if (!netif_is_lag_master(dev)) net/dsa/user.c: netif_is_bridge_master(info->upper_dev) && info->linking) { net/dsa/user.c: if (netif_is_bridge_master(info->upper_dev)) net/dsa/user.c: if (netif_is_lag_master(info->upper_dev)) net/dsa/user.c: if (!netdev_uses_dsa(lag_dev) || !netif_is_lag_master(lag_dev)) net/dsa/user.c: if (!netif_is_bridge_master(br)) net/dsa/user.c: if (netif_is_lag_master(info->upper_dev)) { net/dsa/user.c: if (netif_is_bridge_master(foreign_dev)) So most of the remaining problem is due to bridge and lag. Still should change the NOTIFIER since it is not in public API.