summaryrefslogtreecommitdiff
path: root/usr/src/uts/common/sys/mac_ether.h
diff options
context:
space:
mode:
authorgd78059 <none@none>2007-06-07 06:43:34 -0700
committergd78059 <none@none>2007-06-07 06:43:34 -0700
commit0d2a8e5eea8ac6ea0f5c517f0c481329b57d5459 (patch)
tree54896cee0bf30bd96d63601a992248d53bb9b32a /usr/src/uts/common/sys/mac_ether.h
parentaad09a1cd3b4afb7c83d668eef1c891a4758a18f (diff)
downloadillumos-gate-0d2a8e5eea8ac6ea0f5c517f0c481329b57d5459.tar.gz
PSARC 2007/296 nemo ethernet stats update, part 2
PSARC 2007/298 GLDv3 link status logging 6561809 nemo should perform link status logging on behalf of drivers 6561815 nemo needs a few more kstats 6561860 rge kstats duplication
Diffstat (limited to 'usr/src/uts/common/sys/mac_ether.h')
-rw-r--r--usr/src/uts/common/sys/mac_ether.h13
1 files changed, 11 insertions, 2 deletions
diff --git a/usr/src/uts/common/sys/mac_ether.h b/usr/src/uts/common/sys/mac_ether.h
index 5033f1338e..6310ea4952 100644
--- a/usr/src/uts/common/sys/mac_ether.h
+++ b/usr/src/uts/common/sys/mac_ether.h
@@ -97,10 +97,15 @@ enum ether_stat {
ETHER_STAT_TOOSHORT_ERRORS,
ETHER_STAT_CAP_REMFAULT,
ETHER_STAT_ADV_REMFAULT,
- ETHER_STAT_LP_REMFAULT
+ ETHER_STAT_LP_REMFAULT,
+
+ ETHER_STAT_JABBER_ERRORS,
+ ETHER_STAT_CAP_100T4,
+ ETHER_STAT_ADV_CAP_100T4,
+ ETHER_STAT_LP_CAP_100T4,
};
-#define ETHER_NSTAT (ETHER_STAT_LP_REMFAULT - ETHER_STAT_ALIGN_ERRORS + 1)
+#define ETHER_NSTAT (ETHER_STAT_LP_CAP_100T4 - ETHER_STAT_ALIGN_ERRORS + 1)
#define ETHER_STAT_ISACOUNTER(_ether_stat) \
((_ether_stat) == ETHER_STAT_ALIGN_ERRORS || \
@@ -115,6 +120,7 @@ enum ether_stat {
(_ether_stat) == ETHER_STAT_CARRIER_ERRORS || \
(_ether_stat) == ETHER_STAT_TOOLONG_ERRORS || \
(_ether_stat) == ETHER_STAT_TOOSHORT_ERRORS || \
+ (_ether_stat) == ETHER_STAT_JABBER_ERRORS || \
(_ether_stat) == ETHER_STAT_MACRCV_ERRORS)
/*
@@ -135,6 +141,7 @@ enum ether_stat {
(_ether_stat) == ETHER_STAT_CAP_PAUSE || \
(_ether_stat) == ETHER_STAT_CAP_AUTONEG || \
(_ether_stat) == ETHER_STAT_CAP_REMFAULT || \
+ (_ether_stat) == ETHER_STAT_CAP_100T4 || \
(_ether_stat) == ETHER_STAT_ADV_CAP_1000FDX || \
(_ether_stat) == ETHER_STAT_ADV_CAP_1000HDX || \
(_ether_stat) == ETHER_STAT_ADV_CAP_100FDX || \
@@ -145,6 +152,7 @@ enum ether_stat {
(_ether_stat) == ETHER_STAT_ADV_CAP_PAUSE || \
(_ether_stat) == ETHER_STAT_ADV_CAP_AUTONEG || \
(_ether_stat) == ETHER_STAT_ADV_REMFAULT || \
+ (_ether_stat) == ETHER_STAT_ADV_CAP_100T4 || \
(_ether_stat) == ETHER_STAT_LP_CAP_1000FDX || \
(_ether_stat) == ETHER_STAT_LP_CAP_1000HDX || \
(_ether_stat) == ETHER_STAT_LP_CAP_100FDX || \
@@ -155,6 +163,7 @@ enum ether_stat {
(_ether_stat) == ETHER_STAT_LP_CAP_PAUSE || \
(_ether_stat) == ETHER_STAT_LP_CAP_AUTONEG || \
(_ether_stat) == ETHER_STAT_LP_REMFAULT || \
+ (_ether_stat) == ETHER_STAT_LP_CAP_100T4 || \
(_ether_stat) == ETHER_STAT_LINK_ASMPAUSE || \
(_ether_stat) == ETHER_STAT_LINK_PAUSE || \
(_ether_stat) == ETHER_STAT_LINK_AUTONEG || \