summaryrefslogtreecommitdiff
path: root/usr/src/uts/common/sys/mac_ether.h
diff options
context:
space:
mode:
authorgd78059 <none@none>2007-04-23 17:22:33 -0700
committergd78059 <none@none>2007-04-23 17:22:33 -0700
commit9b14cf1dc76dad8f2d9a74310e0a0200af96d217 (patch)
tree26f430ef09933a3b85cc8feda220af53103638ee /usr/src/uts/common/sys/mac_ether.h
parentadb91f4744062c28f7f3d0e8bf4704d2a8127b89 (diff)
downloadillumos-gate-9b14cf1dc76dad8f2d9a74310e0a0200af96d217.tar.gz
PSARC 2007/220 Update Nemo Statistics
6547508 nemo needs to support cap_rem_fault MII statistics
Diffstat (limited to 'usr/src/uts/common/sys/mac_ether.h')
-rw-r--r--usr/src/uts/common/sys/mac_ether.h18
1 files changed, 15 insertions, 3 deletions
diff --git a/usr/src/uts/common/sys/mac_ether.h b/usr/src/uts/common/sys/mac_ether.h
index dbb5053306..5033f1338e 100644
--- a/usr/src/uts/common/sys/mac_ether.h
+++ b/usr/src/uts/common/sys/mac_ether.h
@@ -19,7 +19,7 @@
* CDDL HEADER END
*/
/*
- * Copyright 2006 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2007 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
@@ -40,6 +40,9 @@ extern "C" {
#define MAC_PLUGIN_IDENT_ETHER "mac_ether"
+/*
+ * Do not reorder, and add only to the end of this list.
+ */
enum ether_stat {
/* RFC 1643 stats */
ETHER_STAT_ALIGN_ERRORS = MACTYPE_STAT_MIN,
@@ -89,10 +92,15 @@ enum ether_stat {
ETHER_STAT_LINK_ASMPAUSE,
ETHER_STAT_LINK_PAUSE,
ETHER_STAT_LINK_AUTONEG,
- ETHER_STAT_LINK_DUPLEX
+ ETHER_STAT_LINK_DUPLEX,
+
+ ETHER_STAT_TOOSHORT_ERRORS,
+ ETHER_STAT_CAP_REMFAULT,
+ ETHER_STAT_ADV_REMFAULT,
+ ETHER_STAT_LP_REMFAULT
};
-#define ETHER_NSTAT (ETHER_STAT_LINK_DUPLEX - ETHER_STAT_ALIGN_ERRORS + 1)
+#define ETHER_NSTAT (ETHER_STAT_LP_REMFAULT - ETHER_STAT_ALIGN_ERRORS + 1)
#define ETHER_STAT_ISACOUNTER(_ether_stat) \
((_ether_stat) == ETHER_STAT_ALIGN_ERRORS || \
@@ -106,6 +114,7 @@ enum ether_stat {
(_ether_stat) == ETHER_STAT_MACXMT_ERRORS || \
(_ether_stat) == ETHER_STAT_CARRIER_ERRORS || \
(_ether_stat) == ETHER_STAT_TOOLONG_ERRORS || \
+ (_ether_stat) == ETHER_STAT_TOOSHORT_ERRORS || \
(_ether_stat) == ETHER_STAT_MACRCV_ERRORS)
/*
@@ -125,6 +134,7 @@ enum ether_stat {
(_ether_stat) == ETHER_STAT_CAP_ASMPAUSE || \
(_ether_stat) == ETHER_STAT_CAP_PAUSE || \
(_ether_stat) == ETHER_STAT_CAP_AUTONEG || \
+ (_ether_stat) == ETHER_STAT_CAP_REMFAULT || \
(_ether_stat) == ETHER_STAT_ADV_CAP_1000FDX || \
(_ether_stat) == ETHER_STAT_ADV_CAP_1000HDX || \
(_ether_stat) == ETHER_STAT_ADV_CAP_100FDX || \
@@ -134,6 +144,7 @@ enum ether_stat {
(_ether_stat) == ETHER_STAT_ADV_CAP_ASMPAUSE || \
(_ether_stat) == ETHER_STAT_ADV_CAP_PAUSE || \
(_ether_stat) == ETHER_STAT_ADV_CAP_AUTONEG || \
+ (_ether_stat) == ETHER_STAT_ADV_REMFAULT || \
(_ether_stat) == ETHER_STAT_LP_CAP_1000FDX || \
(_ether_stat) == ETHER_STAT_LP_CAP_1000HDX || \
(_ether_stat) == ETHER_STAT_LP_CAP_100FDX || \
@@ -143,6 +154,7 @@ enum ether_stat {
(_ether_stat) == ETHER_STAT_LP_CAP_ASMPAUSE || \
(_ether_stat) == ETHER_STAT_LP_CAP_PAUSE || \
(_ether_stat) == ETHER_STAT_LP_CAP_AUTONEG || \
+ (_ether_stat) == ETHER_STAT_LP_REMFAULT || \
(_ether_stat) == ETHER_STAT_LINK_ASMPAUSE || \
(_ether_stat) == ETHER_STAT_LINK_PAUSE || \
(_ether_stat) == ETHER_STAT_LINK_AUTONEG || \