]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
veth: fix 64bit stats on 32bit arches
authorEric Dumazet <eric.dumazet@gmail.com>
Mon, 20 Jun 2011 05:48:34 +0000 (22:48 -0700)
committerDavid S. Miller <davem@davemloft.net>
Mon, 20 Jun 2011 05:48:34 +0000 (22:48 -0700)
commitcf05c700cf6dd6f28bd95586d3040f809fd365f5
treeb21533b22f730e7aac74d5d2eb67d41b41482932
parent219eb47e6f356b138ea2fe1a32ba5a1b6b9093c0
veth: fix 64bit stats on 32bit arches

Using 64bit stats on 32bit arches must use a synchronization or readers
can get transient values.

Fixes bug introduced in commit 6311cc44a2 (veth: convert to 64 bit
statistics)

Signed-off-by: Eric Dumazet <eric.dumazet@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/veth.c