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 Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id A17F4C4332F for ; Fri, 2 Dec 2022 19:36:39 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234804AbiLBTgi (ORCPT ); Fri, 2 Dec 2022 14:36:38 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37190 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234814AbiLBTgZ (ORCPT ); Fri, 2 Dec 2022 14:36:25 -0500 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8C51BF3F8F for ; Fri, 2 Dec 2022 11:36:24 -0800 (PST) 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 dfw.source.kernel.org (Postfix) with ESMTPS id 2955362213 for ; Fri, 2 Dec 2022 19:36:24 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 512D9C433C1; Fri, 2 Dec 2022 19:36:23 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1670009783; bh=LOEiNCITPHOMuu6xenIRrgJ2u9jFxfM8/xsOdf3SS7w=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=LnwUbEnMGiB8uSORU8VQCkrp+KMyqui8EGyV3cDrzyl498d5BotLsJWmbeeQWbflr Rn5IgryVOaPkrycDDpCorIOzEBVLHRYgmOIJ553U+0/RkBysTey0FDRcyg8ISaxc1Z lsB3Wnch8Kc4d3n9pNiVN83QsbTJPBMOhnNIkZP3rR+9F+cyZ1sHuupqbKZIz6huQQ K6MimgnTD/E94zE8RnQVdYNBCpc/N3GtAVtIof10rURVHbXgBlMVbJP5/YJNSE8mNH LeqNSWI0QHP5trCwpkPpfJqCPD6BzprQvKrAvEEG5BAIcjSeM0bfrIAQ8QuAPrcDCP tvuxXl4ITGpyg== Date: Fri, 2 Dec 2022 11:36:22 -0800 From: Jakub Kicinski To: Cc: , , , , , , Subject: Re: [PATCH net-next v4] dsa: lan9303: Add 3 ethtool stats Message-ID: <20221202113622.21289116@kernel.org> In-Reply-To: References: <20221130200804.21778-1-jerry.ray@microchip.com> <20221130205651.4kgh7dpqp72ywbuq@skbuf> <20221201084559.5ac2f1e6@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org On Fri, 2 Dec 2022 15:22:55 +0000 Jerry.Ray@microchip.com wrote: > >Huh? I'm guessing you're referring to some patches you have queued > >already and don't want to rebase across? Or some project planning? > >Otherwise I don't see a connection :S > > In looking around at other implementations, I see where the link_up > and link_down are used to start or clean up the periodic workqueue > used to retrieve and accumulate the mib stats into the driver. Can't tell > if that's a requirement or only needed when the device interface is > considered too slow. The device interface is not atomic. Atomic as in it reads over a bus which requires sleeping? Yes, the stats ndo can't sleep because of the old procfs interface which ifconfig uses and which is invoked under the RCU lock.