]> CyberLeo.Net >> Repos - FreeBSD/stable/8.git/commit
MFC 212902:
authorjhb <jhb@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Mon, 27 Sep 2010 16:29:25 +0000 (16:29 +0000)
committerjhb <jhb@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Mon, 27 Sep 2010 16:29:25 +0000 (16:29 +0000)
commitda8dd8779a18fe693e0d3aef86a7438507f1fbde
tree55d9c851ced0a874ff49dc06e12ed92c862d1a25
parent08c406c0fec38f00337aec9d8d54ec1cef77ab86
MFC 212902:
Tweak the stats exported by the e1000 drivers:
- Add a single sysctl procedure to all three drivers to read an arbitrary
  register (the register is passed as arg2).  Use it to replace existing
  routines in igb(4) that used a separate routine for each register, and
  to add support for missing stats in em(4) and lem(4).
- Move the 'rx_overruns' and 'watchdog_timeouts' stats out of the MAC stats
  section as they are driver stats, not MAC counters.
- Simplify the code that creates per-queue stats in igb(4) to use a single
  loop and remove duplicated code.
- Properly read all 64 bits of the 'good octets received/transmitted' in
  em(4) and lem(4).
- Actually read the interrupt count registers in em(4), and drop the
  'host to card' sysctl stats from em(4) as they are not implemented in
  any of the hardware this driver supports.
- Restore several stats to em(4) that were lost in the earlier stats
  conversion including per-queue stats.
- Export several MAC stats in em(4) that were exported in igb(4) but not
  in em(4).
- Export stats in lem(4) using individual sysctls as in em(4) and igb(4).

git-svn-id: svn://svn.freebsd.org/base/stable/8@213205 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
sys/dev/e1000/if_em.c
sys/dev/e1000/if_igb.c
sys/dev/e1000/if_lem.c
sys/dev/e1000/if_lem.h