[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <1282584096.2267.34.camel@achroite.uk.solarflarecom.com>
Date: Mon, 23 Aug 2010 18:21:36 +0100
From: Ben Hutchings <bhutchings@...arflare.com>
To: Eric Dumazet <eric.dumazet@...il.com>
Cc: David Miller <davem@...emloft.net>, netdev <netdev@...r.kernel.org>
Subject: Re: [PATCH net-next-2.6] net: copy_rtnl_link_stats64()
simplification
On Mon, 2010-08-23 at 19:14 +0200, Eric Dumazet wrote:
> No need to use a temporary struct rtnl_link_stats64 variable,
> just copy the source to skb buffer.
Yes, this makes sense.
The reason I didn't do this initially was that I was concerned about
possible tearing of asynchronously-updated stats. Since you made
dev_get_stats() copy into a caller-provided buffer, this is no longer a
concern.
For what it's worth:
> Signed-off-by: Eric Dumazet <eric.dumazet@...il.com>
Reviewed-by: Ben Hutchings <bhutchings@...arflare.com>
Ben.
--
Ben Hutchings, Senior Software Engineer, Solarflare Communications
Not speaking for my employer; that's the marketing department's job.
They asked us to note that Solarflare product names are trademarked.
--
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