]> git.baikalelectronics.ru Git - kernel.git/commit
net-forcedeth: fix possible stats inaccuracies on 32b hosts
authordavid decotigny <david.decotigny@google.com>
Thu, 17 Nov 2011 09:38:23 +0000 (09:38 +0000)
committerDavid S. Miller <davem@davemloft.net>
Fri, 18 Nov 2011 07:08:47 +0000 (02:08 -0500)
commit8c9c3d35dfd6ebc10fa79b5e967d87fc017046e7
tree0f20460634939cfd8220ca99ec64c0941f3672c2
parentbc882aa91e066a43124cf009e9053a8e7141b48e
net-forcedeth: fix possible stats inaccuracies on 32b hosts

The software stats are updated from BH, this change ensures that 32b
UP hosts use appropriate protection.

Tested:
  - HW/SW stats consistent with pktgen (in particular tx=rx)
  - HW/SW stats consistent when tx/rx offloads disabled
  - no problem with+without lockdep (SMP 16-way)

Signed-off-by: David Decotigny <david.decotigny@google.com>
Acked-by: Eric Dumazet <eric.dumazet@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/nvidia/forcedeth.c