mlx4_en: Move to SW counters for total bytes and packets
authorYevgeny Petrilin <yevgenyp@mellanox.co.il>
Mon, 20 Apr 2009 04:34:38 +0000 (04:34 +0000)
committerDavid S. Miller <davem@davemloft.net>
Tue, 21 Apr 2009 08:47:07 +0000 (01:47 -0700)
commitb1b243afac302d181d19c8024c355d9677beab49
tree3e612f18402f010d18ffe90dc205d06d07dc524c
parent45b4d66d690600dac1aa805b75763331483acf22
mlx4_en: Move to SW counters for total bytes and packets

The per ring counters are implemented in SW. Now moving to have the total
counters as the sum of all rings. This way the numbers will always be consistent
and we no longer depend on HW buffer size limitations for those counters
that can be insufficient in some cases.

Signed-off-by: Yevgeny Petrilin <yevgenyp@mellanox.co.il>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/mlx4/en_port.c