diff options
author | Li-Zhen You <Li-Zhen.You@Sun.COM> | 2009-10-22 11:32:42 +0800 |
---|---|---|
committer | Li-Zhen You <Li-Zhen.You@Sun.COM> | 2009-10-22 11:32:42 +0800 |
commit | 2b55f462b750ad10f073cfce2b410dfcc021f38b (patch) | |
tree | 96f65802c7e0703ddc65f6f97c2ed9070d678857 /usr/src | |
parent | 2320a8c1cca132d99d97f0f0025b5b4b4bfaf5b6 (diff) | |
download | illumos-gate-2b55f462b750ad10f073cfce2b410dfcc021f38b.tar.gz |
6881206 nge driver shows a lot of first_collisions
Diffstat (limited to 'usr/src')
-rw-r--r-- | usr/src/uts/common/io/nge/nge_kstats.c | 14 |
1 files changed, 5 insertions, 9 deletions
diff --git a/usr/src/uts/common/io/nge/nge_kstats.c b/usr/src/uts/common/io/nge/nge_kstats.c index 5a0f95caff..e6e0821137 100644 --- a/usr/src/uts/common/io/nge/nge_kstats.c +++ b/usr/src/uts/common/io/nge/nge_kstats.c @@ -20,11 +20,10 @@ */ /* - * Copyright 2008 Sun Microsystems, Inc. All rights reserved. + * Copyright 2009 Sun Microsystems, Inc. All rights reserved. * Use is subject to license terms. */ -#pragma ident "%Z%%M% %I% %E% SMI" #include "nge.h" @@ -380,18 +379,15 @@ nge_m_stat(void *arg, uint_t stat, uint64_t *val) break; case ETHER_STAT_FIRST_COLLISIONS: - regno = KS_BASE + KS_ifHOutZeroRetranCount * sizeof (uint32_t); - hw_stp->s.OutZeroRetranCount += nge_reg_get32(ngep, regno); - *val = hw_stp->s.OutZeroRetranCount; + regno = KS_BASE + KS_ifHOutOneRetranCount * sizeof (uint32_t); + hw_stp->s.OutOneRetranCount += nge_reg_get32(ngep, regno); + *val = hw_stp->s.OutOneRetranCount; break; case ETHER_STAT_MULTI_COLLISIONS: - regno = KS_BASE + KS_ifHOutOneRetranCount * sizeof (uint32_t); - hw_stp->s.OutOneRetranCount += nge_reg_get32(ngep, regno); regno = KS_BASE + KS_ifHOutMoreRetranCount * sizeof (uint32_t); hw_stp->s.OutMoreRetranCount += nge_reg_get32(ngep, regno); - *val = hw_stp->s.OutOneRetranCount + - hw_stp->s.OutMoreRetranCount; + *val = hw_stp->s.OutMoreRetranCount; break; case ETHER_STAT_DEFER_XMTS: |