Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp1347907rwi; Thu, 13 Oct 2022 12:22:05 -0700 (PDT) X-Google-Smtp-Source: AMsMyM4gRFsY9iYOTBXD1iq3E6wZZcOPkLeeGefr/KH/lWYAamQIBfReYmK4tYPoH+H2gyyq/Mxe X-Received: by 2002:a63:2212:0:b0:43b:f03d:856a with SMTP id i18-20020a632212000000b0043bf03d856amr1235866pgi.192.1665688925252; Thu, 13 Oct 2022 12:22:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1665688925; cv=none; d=google.com; s=arc-20160816; b=ZW1aH4EL6UtwEp02wut3l5d1bFmVDoMawXHAXPuZJjhz1esU44YOl6XW6bdodbOG+n nV39Y6KyCrZQYbQd39D9taAUhn5YKEplDqhdkaZTl/gpve3x2Jx5t+3+EsAZe73zIhJ1 bcq5dpYtqB+ZNLdYEf2xCLQOVcK16y8bEMNK1UQLPkEa7qLMn+fCTDw8/pM335SBqrKD MrHRMXGOjvLJ0mDA59KdpJYCVUv251+LYXGGgNW8oNdGdf2uwpDoLJE/Nlkdl/+K/iy5 oGN9CD1NaqlvgK/D2MTbjxtZIL7LtbpV7vjKgshgxdedap18lJJ5OoIfMrRjullF+CVz nRmA== 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:dkim-signature; bh=j3EsqIC0iwgCK6WTeVKSWBlje8Q761oTTKNTu7VNylQ=; b=z4QBNJk8MTizVtes9a2jQm0VG+RIYEDZvx3j3TpXtJMFXbzSg8091bA3cHC/zpxvK9 0ydDvudCzcJ+nQuFNKPFQ81RgGIPAod4uiESroO/9XjqIDoIW5aX6Z341Nd5QlpsU/tF L9ihUHgBklnD6IuebU+W5OFWihxgHQYoCcHj1NcoCRqHHOgAlQ+RozTh5F+bdPCHRPIW iqq9Sciu1gVsDYxEUP086lLc2f68iTQOApgBV5MS2pleYNjFIdsQX2hG7/GfnEKZMJYO Ak56NYQREm025xy1EbA9ExrJvEzuimAe73Baq9A5UnMPl0QRaSsfn1CXQ/G35lcm/roP YIog== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=DPQ+Tfyj; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id b20-20020a170902b61400b0017a0e8713cesi466275pls.452.2022.10.13.12.21.53; Thu, 13 Oct 2022 12:22:05 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=DPQ+Tfyj; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231833AbiJMSXT (ORCPT + 99 others); Thu, 13 Oct 2022 14:23:19 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37172 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231707AbiJMSXC (ORCPT ); Thu, 13 Oct 2022 14:23:02 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D8D1F17C573; Thu, 13 Oct 2022 11:18:08 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id C0843B81E1B; Thu, 13 Oct 2022 18:16:01 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 57965C433C1; Thu, 13 Oct 2022 18:16:00 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1665684960; bh=LZk23UAFJwZJIWKNLhyALMYapgUsPfOmRti557QqG80=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=DPQ+Tfyju6cHx5rC6s5ILFmn9/Cnt7fntoKg6XDvvgH35hcXpXpgvvRcaXs7jDVlk NVIXu7ZSwR939eEBC/J95PjUKosTzfHlgl1g079Cnid7Bs6ghpc/OGDwBFnZr22EFO V1WboxSnQIyr7dgD1WhQWcncOiwRsA1nTjNlmBHwol3P8UQWU851a603apk7flJhc1 rVqgg7WpltxcNy5M/vYV0SIJrGADpZklz88hBmNd8xETc5nZ/0hr6Hin8BTo8PqFvm vT3tfxVWOyMKE0nRM88vQYjnnDtZNVh03rDV3Ytd1/j0IhxOXStBkxT9fW7Kn1Ta0w kKfMNJpRhljOQ== Date: Thu, 13 Oct 2022 14:15:59 -0400 From: Sasha Levin To: Vladimir Oltean Cc: linux-kernel@vger.kernel.org, stable@vger.kernel.org, Vladimir Oltean , Florian Fainelli , Paolo Abeni , andrew@lunn.ch, vivien.didelot@gmail.com, davem@davemloft.net, edumazet@google.com, kuba@kernel.org, netdev@vger.kernel.org Subject: Re: [PATCH AUTOSEL 6.0 11/77] net: dsa: all DSA masters must be down when changing the tagging protocol Message-ID: References: <20221009220754.1214186-1-sashal@kernel.org> <20221009220754.1214186-11-sashal@kernel.org> <20221010115430.kloc3urkycsbyele@skbuf> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Disposition: inline In-Reply-To: <20221010115430.kloc3urkycsbyele@skbuf> X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, 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 On Mon, Oct 10, 2022 at 02:54:30PM +0300, Vladimir Oltean wrote: >On Sun, Oct 09, 2022 at 06:06:48PM -0400, Sasha Levin wrote: >> From: Vladimir Oltean >> >> [ Upstream commit f41ec1fd1c20e2a4e60a4ab8490b3e63423c0a8a ] >> >> The fact that the tagging protocol is set and queried from the >> /sys/class/net//dsa/tagging file is a bit of a quirk from >> the single CPU port days which isn't aging very well now that DSA can >> have more than a single CPU port. This is because the tagging protocol >> is a switch property, yet in the presence of multiple CPU ports it can >> be queried and set from multiple sysfs files, all of which are handled >> by the same implementation. >> >> The current logic ensures that the net device whose sysfs file we're >> changing the tagging protocol through must be down. That net device is >> the DSA master, and this is fine for single DSA master / CPU port setups. >> >> But exactly because the tagging protocol is per switch [ tree, in fact ] >> and not per DSA master, this isn't fine any longer with multiple CPU >> ports, and we must iterate through the tree and find all DSA masters, >> and make sure that all of them are down. >> >> Signed-off-by: Vladimir Oltean >> Reviewed-by: Florian Fainelli >> Signed-off-by: Paolo Abeni >> Signed-off-by: Sasha Levin >> --- > >Not needed for stable kernels, please drop, thanks. Ack, I'll drop this and the rest of the patches you've pointed out, thanks! -- Thanks, Sasha