[netdevice] Retain and report detailed error breakdowns
authorMichael Brown <mcb30@etherboot.org>
Sat, 8 Nov 2008 02:18:30 +0000 (02:18 +0000)
committerMichael Brown <mcb30@etherboot.org>
Sat, 8 Nov 2008 05:30:30 +0000 (05:30 +0000)
commit9a52ba0cfac0fffb39b5a4c148ec7641bcc38381
tree12059ca7f75d37d1b62ffa550798fa8233834590
parent46f43d8ea763ca2a9d4d1b87db589bb7dcc978bf
[netdevice] Retain and report detailed error breakdowns

netdev_rx_err() and netdev_tx_complete_err() get passed the error
code, but currently use it only in debug messages.

Retain error numbers and frequencey counts for up to
NETDEV_MAX_UNIQUE_ERRORS (4) different errors for each of TX and RX.
This allows the "ifstat" command to report the reasons for TX/RX
errors in most cases, even in non-debug builds.
src/include/gpxe/netdevice.h
src/interface/efi/efi_snp.c
src/interface/pxe/pxe_undi.c
src/net/netdevice.c
src/usr/ifmgmt.c