]> git.baikalelectronics.ru Git - kernel.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)
commit321274d595e73325bc5350a7b28fc0ab96b5b9a7
treeb21533b22f730e7aac74d5d2eb67d41b41482932
parent54c31947b2171304291bae571d2d38a77aa78444
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 916b631ee0 (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