[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20110627094337.5108b5f6@nehalam.ftrdhcpuser.net>
Date: Mon, 27 Jun 2011 09:43:37 -0700
From: Stephen Hemminger <shemminger@...tta.com>
To: Sathya Perla <sathya.perla@...lex.com>
Cc: <netdev@...r.kernel.org>
Subject: Re: [PATCH net-next-2.6 1/3] be2net: fix netdev_stats_update
On Mon, 27 Jun 2011 12:10:48 +0530
Sathya Perla <sathya.perla@...lex.com> wrote:
> Problem initially reproted and fixed by Eric Dumazet <eric.dumazet@...il.com>
>
> netdev_stats_update() resets netdev->stats and then accumulates stats from
> various rings. This is wrong as stats readers can sometimes catch zero values.
> Use temporary variables instead for accumulating per-ring values.
>
> Signed-off-by: Sathya Perla <sathya.perla@...lex.com>
Should also use u64_stats_sync to ensure correct rollover or 32 bit SMP
platform.
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists