]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit534dfbbd7a00a9daff0c15accc40662203302292
tree997ee633a60a2c945c02f4c35dd831fa02356d54
parentcce9c497764b4e764ef0af8d41c25f13b2cd2a02
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