From: Flavio Leitner <fleitner@redhat.com>
To: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
Cc: e1000-devel@lists.sourceforge.net, netdev@vger.kernel.org
Subject: Re: [PATCH v2] e1000e: convert to stats64
Date: Fri, 21 Jan 2011 15:03:40 -0200 [thread overview]
Message-ID: <20110121170340.GA3087@redhat.com> (raw)
In-Reply-To: <AANLkTi=y4u1DTtOX9-70CeDGhWGu4bBKK0Y32Js41=bK@mail.gmail.com>
On Thu, Dec 16, 2010 at 07:14:35PM -0800, Jeff Kirsher wrote:
> On Thu, Dec 16, 2010 at 04:31, Flavio Leitner <fleitner@redhat.com> wrote:
> > On Tue, Dec 14, 2010 at 10:29:33PM +0100, Eric Dumazet wrote:
> >> Le mardi 14 décembre 2010 à 18:32 -0200, Flavio Leitner a écrit :
> >> > Provides accurate stats at the time user reads them.
> >> >
> >> > Signed-off-by: Flavio Leitner <fleitner@redhat.com>
> >> > ---
> >> > drivers/net/e1000e/e1000.h | 5 ++-
> >> > drivers/net/e1000e/ethtool.c | 27 +++++++++-------
> >> > drivers/net/e1000e/netdev.c | 68 ++++++++++++++++++++++++-----------------
> >> > 3 files changed, 59 insertions(+), 41 deletions(-)
> >> >
> >> > diff --git a/drivers/net/e1000e/e1000.h b/drivers/net/e1000e/e1000.h
> >> > index fdc67fe..5a5e944 100644
> >> > --- a/drivers/net/e1000e/e1000.h
> >> > +++ b/drivers/net/e1000e/e1000.h
> >> > @@ -363,6 +363,8 @@ struct e1000_adapter {
> >> > /* structs defined in e1000_hw.h */
> >> > struct e1000_hw hw;
> >> >
> >> > + spinlock_t stats64_lock;
> >> > + struct rtnl_link_stats64 stats64;
> >>
> >> I am not sure why you add this stats64 in e1000_adapter ?
> >>
> >> Why isnt it provided by callers (automatic variable, or provided to
> >> ndo_get_stats64()). I dont see accumulators, only a full rewrite of this
> >> structure in e1000e_update_stats() ?
> >
> > Good point. I have modified the patch to fix that.
> > thanks!
> >
> > From 3487bd7dacd0c23bba315270139dab6e00e5ff02 Mon Sep 17 00:00:00 2001
> > From: Flavio Leitner <fleitner@redhat.com>
> > Date: Thu, 16 Dec 2010 10:26:03 -0200
> > Subject: [PATCH] e1000e: convert to stats64
> >
> > Provides accurate stats at the time user reads them.
> >
> > Signed-off-by: Flavio Leitner <fleitner@redhat.com>
> > ---
> > drivers/net/e1000e/e1000.h | 3 ++
> > drivers/net/e1000e/ethtool.c | 25 ++++++++-------
> > drivers/net/e1000e/netdev.c | 68 +++++++++++++++++++++++++++++++++--------
> > 3 files changed, 70 insertions(+), 26 deletions(-)
> >
>
> I have dropped you previous version of the patch and applied v2 to my
> tree for review and testing.
> Thanks Flavio!
Hi Jeff,
Do you have any feedback on this patch?
thanks,
--
Flavio
------------------------------------------------------------------------------
Special Offer-- Download ArcSight Logger for FREE (a $49 USD value)!
Finally, a world-class log management solution at an even better price-free!
Download using promo code Free_Logger_4_Dev2Dev. Offer expires
February 28th, so secure your free ArcSight Logger TODAY!
http://p.sf.net/sfu/arcsight-sfd2d
_______________________________________________
E1000-devel mailing list
E1000-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/e1000-devel
To learn more about Intel® Ethernet, visit http://communities.intel.com/community/wired
next prev parent reply other threads:[~2011-01-21 17:03 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-12-14 20:32 [PATCH] e1000e: convert to stats64 Flavio Leitner
2010-12-14 21:29 ` Eric Dumazet
2010-12-16 12:31 ` [PATCH v2] " Flavio Leitner
2010-12-16 12:50 ` Eric Dumazet
2010-12-16 13:10 ` Flavio Leitner
2010-12-16 13:18 ` Eric Dumazet
2010-12-17 3:14 ` Jeff Kirsher
2011-01-21 17:03 ` Flavio Leitner [this message]
2011-01-21 22:19 ` Jeff Kirsher
2010-12-15 23:59 ` [PATCH] " Jeff Kirsher
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20110121170340.GA3087@redhat.com \
--to=fleitner@redhat.com \
--cc=e1000-devel@lists.sourceforge.net \
--cc=jeffrey.t.kirsher@intel.com \
--cc=netdev@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).