From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-3.8 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 3E672C3E8C5 for ; Sat, 28 Nov 2020 01:09:39 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id F238B22243 for ; Sat, 28 Nov 2020 01:09:38 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727952AbgK1AkU (ORCPT ); Fri, 27 Nov 2020 19:40:20 -0500 Received: from vps0.lunn.ch ([185.16.172.187]:53772 "EHLO vps0.lunn.ch" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731202AbgK1Aj1 (ORCPT ); Fri, 27 Nov 2020 19:39:27 -0500 Received: from andrew by vps0.lunn.ch with local (Exim 4.94) (envelope-from ) id 1kioGe-009CIy-Q6; Sat, 28 Nov 2020 01:39:12 +0100 Date: Sat, 28 Nov 2020 01:39:12 +0100 From: Andrew Lunn To: Vladimir Oltean Cc: Jakub Kicinski , George McCollister , Vivien Didelot , Florian Fainelli , "David S . Miller" , netdev@vger.kernel.org, "open list:OPEN FIRMWARE AND..." Subject: Re: [PATCH net-next v2 2/3] net: dsa: add Arrow SpeedChips XRS700x driver Message-ID: <20201128003912.GA2191767@lunn.ch> References: <20201126220500.av3clcxbbvogvde5@skbuf> <20201127103503.5cda7f24@kicinski-fedora-pc1c0hjn.DHCP.thefacebook.com> <20201127195057.ac56bimc6z3kpygs@skbuf> <20201127133753.4cf108cb@kicinski-fedora-pc1c0hjn.DHCP.thefacebook.com> <20201127233048.GB2073444@lunn.ch> <20201127233916.bmhvcep6sjs5so2e@skbuf> <20201128000234.hwd5zo2d4giiikjc@skbuf> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20201128000234.hwd5zo2d4giiikjc@skbuf> Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org > This means, as far as I understand, 2 things: > 1. call_netdevice_notifiers_info doesn't help, since our problem is the > same > 2. I think that holding the RTNL should also be a valid way to iterate > through the net devices in the current netns, and doing just that > could be the simplest way out. It certainly worked when I tried it. > But those could also be famous last words... DSA makes the assumption it can block in a notifier change event. For example, NETDEV_CHANGEUPPER calls dsa_slave_changeupper() which calls into the driver. We have not seen any warnings about sleeping while atomic. So maybe see how NETDEV_CHANGEUPPER is issued. Andrew