e100: Fix rx-over-length statistics.
authorBen Greear <greearb@candelatech.com>
Fri, 17 Feb 2012 13:44:23 +0000 (13:44 +0000)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Sat, 3 Mar 2012 02:07:52 +0000 (18:07 -0800)
commitd24d65eda97fe51f2996538148e85d309e2460e4
tree997ee633a60a2c945c02f4c35dd831fa02356d54
parentb4017c5368f992fb8fb3a2545a0977082c6664e4
e100: Fix rx-over-length statistics.

The old code would += the total errors every time
stats were gathered.  Instead, keep a count of short-pkt
and long-pkt counters and then simply add them together
for the rx-over-length stat.

Signed-off-by: Ben Greear <greearb@candelatech.com>
Tested-by: Aaron Brown <aaron.f.brown@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
drivers/net/ethernet/intel/e100.c