]> 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)
commit2e4f3e7054720028f77d6bdc43757eed19ccd0e3
tree997ee633a60a2c945c02f4c35dd831fa02356d54
parentbbc269ae0dfdf1dcc870814c506725e6d27b6dbb
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