Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755684AbYFBPlo (ORCPT ); Mon, 2 Jun 2008 11:41:44 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1752397AbYFBPld (ORCPT ); Mon, 2 Jun 2008 11:41:33 -0400 Received: from elasmtp-junco.atl.sa.earthlink.net ([209.86.89.63]:48483 "EHLO elasmtp-junco.atl.sa.earthlink.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752078AbYFBPlc (ORCPT ); Mon, 2 Jun 2008 11:41:32 -0400 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=dk20050327; d=mindspring.com; b=bjGDV+79L3Sd0S8AKghN9WbAsmd9rlLAA4vkTpdG6AK+yTBZCZeyMdGpUpLrQHaB; h=Received:Date:From:To:Cc:Subject:Message-Id:In-Reply-To:References:X-Mailer:Mime-Version:Content-Type:Content-Transfer-Encoding:X-ELNK-Trace:X-Originating-IP; Date: Mon, 2 Jun 2008 11:41:16 -0400 From: Bill Fink To: David Miller Cc: bhutchings@solarflare.com, alan@lxorguk.ukuu.org.uk, jimi@sngx.net, akpm@linux-foundation.org, linux-kernel@vger.kernel.org, netdev@vger.kernel.org Subject: Re: [PATCH] net: add ability to clear stats via ethtool - e1000/pcnet32 Message-Id: <20080602114116.1c1a5efd.billfink@mindspring.com> In-Reply-To: <20080601.223938.193701581.davem@davemloft.net> References: <20080531195702.0b879dd1.billfink@mindspring.com> <20080601014620.GG30769@solarflare.com> <20080601164614.012fe1f6.billfink@mindspring.com> <20080601.223938.193701581.davem@davemloft.net> X-Mailer: Sylpheed 2.4.8 (GTK+ 2.8.6; powerpc-yellowdog-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-ELNK-Trace: c598f748b88b6fd49c7f779228e2f6aeda0071232e20db4d650c82d9b240d66261a04d924de813a4350badd9bab72f9c350badd9bab72f9c350badd9bab72f9c X-Originating-IP: 96.234.158.248 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1512 Lines: 33 On Sun, 01 Jun 2008, David Miller wrote: > From: Bill Fink > Date: Sun, 1 Jun 2008 16:46:14 -0400 > > > Another issue that occurred to me is if multiple people are working > > on troubleshooting a network problem, how do we insure that they all > > get a consistent view of the stats? > > Some of them definitely won't get a consistent view if one of them > triggers this undesirable statistic clearing knob. The typical case I was referring to is for example when I am assisting someone else with troubleshooting. This is coordinated with the system admin, who would usually be the one to clear/snapshot the stats. This cannot be done by a normal user as it requires root privileges. BTW I'm also not clear why running "ethtool -S" requires root privileges, as it would be more convenient if a normal user could do this (currently I have to be given sudo access). This is a useful mechanism for many, many people. Bottom line I don't really care if it's done in the kernel or in user space, but it should be possible using the standard "ethtool -S" command, and I have raised at least a couple of issues with modifying the ethtool command to support this (but which wouldn't be an issue if implemented in the kernel). -Bill -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/