]> www.infradead.org Git - users/jedix/linux-maple.git/commit
e100: Fix rx-over-length statistics.
authorBen Greear <greearb@candelatech.com>
Fri, 17 Feb 2012 13:44:23 +0000 (13:44 +0000)
committerJoe Jin <joe.jin@oracle.com>
Thu, 17 May 2012 02:58:50 +0000 (10:58 +0800)
commit3f13411d786d0c51b8365bfb04a0649cd66bdd15
treeffce1e32b5682af0a27f84ed174a04f9a21b0fa9
parentb31648abd5e616b4cafdf2438eb6606db5feb5ba
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.

(cherry picked from commit d24d65eda97fe51f2996538148e85d309e2460e4)
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>
Signed-off-by: Joe Jin <joe.jin@oracle.com>
drivers/net/e100.c