Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755729AbcK2Fn3 (ORCPT ); Tue, 29 Nov 2016 00:43:29 -0500 Received: from mail-lf0-f45.google.com ([209.85.215.45]:34620 "EHLO mail-lf0-f45.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755609AbcK2FnV (ORCPT ); Tue, 29 Nov 2016 00:43:21 -0500 Subject: Re: [patch net] net: fec: cache statistics while device is down To: Andy Duan , "David S. Miller" , Troy Kisky , Andrew Lunn , Eric Nelson , Philippe Reynes , Johannes Berg , "netdev@vger.kernel.org" References: <1480343227-725-1-git-send-email-nikita.yoush@cogentembedded.com> Cc: Chris Healy , Fabio Estevam , "linux-kernel@vger.kernel.org" From: Nikita Yushchenko Message-ID: Date: Tue, 29 Nov 2016 08:43:17 +0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Icedove/45.4.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 356 Lines: 12 > > > >+ fec_enet_update_ethtool_stats(ndev); > >+ > If user never open the interface, ethtool_stats[] always is 0 that are not expected. > So, it also should be called at . fec_enet_init() ? I don't think that zero stats is wrong for never-opened interface. However a call at init path won't hurt, so I'll add it, just to clear the question. Nikita