[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <1295648345.2825.60.camel@jtkirshe-MOBL1>
Date: Fri, 21 Jan 2011 14:19:05 -0800
From: Jeff Kirsher <jeffrey.t.kirsher@...el.com>
To: Flavio Leitner <fleitner@...hat.com>
Cc: "netdev@...r.kernel.org" <netdev@...r.kernel.org>,
"e1000-devel@...ts.sourceforge.net"
<e1000-devel@...ts.sourceforge.net>
Subject: Re: [PATCH v2] e1000e: convert to stats64
On Fri, 2011-01-21 at 09:03 -0800, Flavio Leitner wrote:
> On Thu, Dec 16, 2010 at 07:14:35PM -0800, Jeff Kirsher wrote:
> > On Thu, Dec 16, 2010 at 04:31, Flavio Leitner <fleitner@...hat.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@...hat.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@...hat.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@...hat.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,
I have the patch ready to push to Dave for net-next, along with a few
other e1000e patches. I was just waiting for net-next to open (which it
did a few days ago).
Download attachment "signature.asc" of type "application/pgp-signature" (491 bytes)
Powered by blists - more mailing lists