Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp7087994rwb; Tue, 15 Nov 2022 07:32:54 -0800 (PST) X-Google-Smtp-Source: AA0mqf7aTVM5FPMULjqa3mvglTr6lYJ5+0Z1rPHZdAovOs0xQJ63I9k2YVYbg6Lgesbg7ZtBBQ9G X-Received: by 2002:a17:907:c243:b0:781:541:6599 with SMTP id tj3-20020a170907c24300b0078105416599mr13990796ejc.45.1668526374449; Tue, 15 Nov 2022 07:32:54 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668526374; cv=none; d=google.com; s=arc-20160816; b=GohGu/iFGtYjXGTLhzDafc342veK+dLdxnf//ROsIhn8Wo02pkDlNV9R2YPdM/6ics ezouJEOggUx9bolabmCISC8sHDMbstgsA4sazMGFyemB7JQh8OXV8UrL4Kef9y6aR9MQ gHePrwzpjqAHvOOl4ZX6FfhZwIR00c+vKsYJcMmxSy3yjycfgBiCHSCClZfC32HgBmKS Zy7Q3h2ZFTbNH2KHKQWx/BxPDa2zHXDqvXGa5EW3BeDRFZuvSj7Zqh1wA1XWUpWs3PC7 YVOJf/FOUK74bv5at+nVYPvR6P+MPjMx8pzCW9/CaQe+D3aA2jRlxC1PRqms5+9td20i 1/5w== 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:feedback-id :dkim-signature; bh=jmow9YieckaNq7/qOMLdjgU9NR3erVDcDci2VeJ6iDA=; b=wZQYyulXz9RPLz1Yo3q4SXPoWFrTenwLpvgieeZsjW6PIEhGX0lSxWJbOjAyjEx95b xJJTWX/tRHKLNOjHv8hPx/8ZdITli42+Cfak4I8v1r1+HmzWrUFe6vLLndF7fdR68qm+ BWSPxQzenSO01BAbdw/O18T1eDqDtccV/O3f4vJsvHkGTlQiSnKIdyLwuVdm0yTNdl+K n7lrQANjvMZlsXtS5OZwHlFwCGTGVYVWFg6JwWj3OeNSZ/fG74TppPXSdv6Lc07+nBzS fnzOznjJm0XDokD9MfbLYaqncA/kDXlEm527qn8E2SdJTX28bmai0HXBeg/GHTpQgfHf CgCQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@messagingengine.com header.s=fm1 header.b=dNwMW5KM; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id b5-20020a056402084500b0045b965cf1dasi12906413edz.175.2022.11.15.07.32.15; Tue, 15 Nov 2022 07:32:54 -0800 (PST) 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=@messagingengine.com header.s=fm1 header.b=dNwMW5KM; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230123AbiKOPNP (ORCPT + 90 others); Tue, 15 Nov 2022 10:13:15 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49794 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229880AbiKOPNL (ORCPT ); Tue, 15 Nov 2022 10:13:11 -0500 Received: from out3-smtp.messagingengine.com (out3-smtp.messagingengine.com [66.111.4.27]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 26CE17664; Tue, 15 Nov 2022 07:13:08 -0800 (PST) Received: from compute2.internal (compute2.nyi.internal [10.202.2.46]) by mailout.nyi.internal (Postfix) with ESMTP id D02185C015A; Tue, 15 Nov 2022 10:13:04 -0500 (EST) Received: from mailfrontend2 ([10.202.2.163]) by compute2.internal (MEProxy); Tue, 15 Nov 2022 10:13:04 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-type:date:date:feedback-id :feedback-id:from:from:in-reply-to:in-reply-to:message-id :mime-version:references:reply-to:sender:subject:subject:to:to :x-me-proxy:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s= fm1; t=1668525184; x=1668611584; bh=jmow9YieckaNq7/qOMLdjgU9NR3e rVDcDci2VeJ6iDA=; b=dNwMW5KM48FWlbZdcR1a9hqusFgoKYCutCgoV8jrn6xA sRIClkJQRrj4NZj5cyKpQNlmUkBp8IDMjna67bUu2DbSqvkhkrgK2exKS9CmAbcD kxLe26yeWE9hDaun89ubFlv3aKUuXgJSfT8iTeF8/qvmas7nx4RaK055KhL4e8h6 ylrN7E3yXXYKte/s7Wc1q7LhUnq0r0yqo6lvkuDPj+Zbg5f8Bfy6c4L8Ui/OlUtI fAU03UpIAS7UWmI5ObX22bpj/LY5TRyBvLcY6Ul2ZBOLpTUZqyhwOCnSdPdFYuO3 Zi6+csa1b975ukc4NjrrjhI2bVE03Xjugy9gc51v1Q== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvgedrgeeggdejgecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenuc fjughrpeffhffvvefukfhfgggtuggjsehttdertddttddvnecuhfhrohhmpefkughoucfu tghhihhmmhgvlhcuoehiughoshgthhesihguohhstghhrdhorhhgqeenucggtffrrghtth gvrhhnpedvudefveekheeugeeftddvveefgfduieefudeifefgleekheegleegjeejgeeg hfenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpehiug hoshgthhesihguohhstghhrdhorhhg X-ME-Proxy: Feedback-ID: i494840e7:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Tue, 15 Nov 2022 10:13:03 -0500 (EST) Date: Tue, 15 Nov 2022 17:12:58 +0200 From: Ido Schimmel To: netdev@kapio-technology.com Cc: davem@davemloft.net, kuba@kernel.org, netdev@vger.kernel.org, Andrew Lunn , Florian Fainelli , Vladimir Oltean , Eric Dumazet , Paolo Abeni , open list Subject: Re: [PATCH v8 net-next 2/2] net: dsa: mv88e6xxx: mac-auth/MAB implementation Message-ID: References: <20221112203748.68995-1-netdev@kapio-technology.com> <20221112203748.68995-3-netdev@kapio-technology.com> <864c4ae8e549721ba1ac5cf6ef77db9d@kapio-technology.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <864c4ae8e549721ba1ac5cf6ef77db9d@kapio-technology.com> X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_LOW,SPF_HELO_PASS,SPF_NONE 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 Tue, Nov 15, 2022 at 11:36:38AM +0100, netdev@kapio-technology.com wrote: > On 2022-11-15 10:58, Ido Schimmel wrote: > > On Sat, Nov 12, 2022 at 09:37:48PM +0100, Hans J. Schultz wrote: > > > diff --git a/drivers/net/dsa/mv88e6xxx/global1_atu.c > > > b/drivers/net/dsa/mv88e6xxx/global1_atu.c > > > index 8a874b6fc8e1..0a57f4e7dd46 100644 > > > --- a/drivers/net/dsa/mv88e6xxx/global1_atu.c > > > +++ b/drivers/net/dsa/mv88e6xxx/global1_atu.c > > > @@ -12,6 +12,7 @@ > > > > > > #include "chip.h" > > > #include "global1.h" > > > +#include "switchdev.h" > > > > > > /* Offset 0x01: ATU FID Register */ > > > > > > @@ -426,6 +427,8 @@ static irqreturn_t > > > mv88e6xxx_g1_atu_prob_irq_thread_fn(int irq, void *dev_id) > > > if (err) > > > goto out; > > > > > > + mv88e6xxx_reg_unlock(chip); > > > > Why? At minimum such a change needs to be explained in the commit > > message and probably split to a separate preparatory patch, assuming the > > change is actually required. > > This was a change done long time ago related to that the violation handle > function takes the NL lock, > which could lead to a double-lock deadlock afair if the chip lock is taken > throughout the handler. Why do you need to take RTNL lock? br_switchdev_event() which receives the 'SWITCHDEV_FDB_ADD_TO_BRIDGE' event has this comment: "/* called with RTNL or RCU */" And it's using br_port_get_rtnl_rcu(), so looks like RCU is enough.