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 /sys/dev/e1000/if_lem.h | |
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 'sys/dev/e1000/if_lem.h')
-rw-r--r-- | sys/dev/e1000/if_lem.h | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/sys/dev/e1000/if_lem.h b/sys/dev/e1000/if_lem.h index 0ada7df..2f76aa8 100644 --- a/sys/dev/e1000/if_lem.h +++ b/sys/dev/e1000/if_lem.h @@ -407,9 +407,6 @@ struct adapter { unsigned long no_tx_dma_setup; unsigned long watchdog_events; unsigned long rx_overruns; - unsigned long rx_irq; - unsigned long tx_irq; - unsigned long link_irq; /* 82547 workaround */ uint32_t tx_fifo_size; |