[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <20091119.122743.137434070.davem@davemloft.net>
Date: Thu, 19 Nov 2009 12:27:43 -0800 (PST)
From: David Miller <davem@...emloft.net>
To: eric.dumazet@...il.com
Cc: netdev@...r.kernel.org
Subject: Re: [PATCH] veth: Fix veth_get_stats()
From: Eric Dumazet <eric.dumazet@...il.com>
Date: Wed, 18 Nov 2009 18:09:39 +0100
> veth_get_stats() can be called in parallel on several cpus.
>
> It's better to not reset dev->stats as it could give wrong result on
> one cpu. Use temporary variables, then store the final results.
>
> Also, we should loop on every possible cpus, not only online cpus,
> or cpu hotplug can suddenly give wrong veth stats.
>
> Signed-off-by: Eric Dumazet <eric.dumazet@...il.com>
Applied.
--
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