diff options
author | jhb <jhb@FreeBSD.org> | 2010-09-20 16:04:44 +0000 |
---|---|---|
committer | jhb <jhb@FreeBSD.org> | 2010-09-20 16:04:44 +0000 |
commit | ef5be2b5fa5cfc1bcf6172b6ee0ccf4b6a2078cc (patch) | |
tree | a2bf18b70a2a33b9091b19f4c1985e211b4ebcee /contrib/llvm/tools/clang/lib/AST/ExprConstant.cpp | |
parent | 700331dbb17acf715d379e67690d036e84f8757d (diff) | |
download | FreeBSD-src-ef5be2b5fa5cfc1bcf6172b6ee0ccf4b6a2078cc.zip FreeBSD-src-ef5be2b5fa5cfc1bcf6172b6ee0ccf4b6a2078cc.tar.gz |
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).
Reviewed by: jfv
MFC after: 1 week
Diffstat (limited to 'contrib/llvm/tools/clang/lib/AST/ExprConstant.cpp')
0 files changed, 0 insertions, 0 deletions