summaryrefslogtreecommitdiff
path: root/sys/dev/pci/if_bgereg.h
diff options
context:
space:
mode:
authorBrad Smith <brad@cvs.openbsd.org>2008-02-20 12:17:26 +0000
committerBrad Smith <brad@cvs.openbsd.org>2008-02-20 12:17:26 +0000
commit32dfee5240805e27a6753ae4bfca0403ffa58bbf (patch)
tree2894add4f64baded341901289d502acd06699119 /sys/dev/pci/if_bgereg.h
parentdde0c99ae283c1cfe336d9c50cf9d2e6899b9ce7 (diff)
When collecting the hardware statistics add the interfaces input errors
counter and out of receive buffer descriptors counter to the network stacks input errors counter. Based on a diff from mickey@ though updated for -current and added support for BCM5705 or newer chipsets from brad@. Tested it with BCM5704 on i386/amd64, BCM5700 on sparc64, BCM5701/BCM5751M on i386 and BCM5721/BCM5780 on amd64. ok krw@ sthen@ dlg@
Diffstat (limited to 'sys/dev/pci/if_bgereg.h')
-rw-r--r--sys/dev/pci/if_bgereg.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/dev/pci/if_bgereg.h b/sys/dev/pci/if_bgereg.h
index 078d6de392b..8dc13611545 100644
--- a/sys/dev/pci/if_bgereg.h
+++ b/sys/dev/pci/if_bgereg.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_bgereg.h,v 1.79 2008/02/20 10:26:53 sthen Exp $ */
+/* $OpenBSD: if_bgereg.h,v 1.80 2008/02/20 12:17:25 brad Exp $ */
/*
* Copyright (c) 2001 Wind River Systems
@@ -2480,6 +2480,8 @@ struct bge_softc {
void *sc_shutdownhook;
u_int32_t bge_rx_discards;
u_int32_t bge_tx_discards;
+ u_int32_t bge_rx_inerrors;
+ u_int32_t bge_rx_overruns;
u_int32_t bge_tx_collisions;
SLIST_HEAD(, txdmamap_pool_entry) txdma_list;
struct txdmamap_pool_entry *txdma[BGE_TX_RING_CNT];