Thread (1 message) 1 message, 1 author, 2011-11-18

Re: [PATCH net-next 4/4] net: Add Open vSwitch kernel components.

From: Stephen Hemminger <hidden>
Date: 2011-11-18 23:23:34

On Fri, 18 Nov 2011 15:12:18 -0800
Jesse Gross [off-list ref] wrote:
+		write_seqcount_begin(&stats->seqlock);
+		stats->tx_packets++;
+		stats->tx_bytes += sent;
+		write_seqcount_end(&stats->seqlock);
There is a u64_stats_sync set of macros for this. It has the
advantage of becoming a NOP on 64 bit platforms.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help