From 2b55f462b750ad10f073cfce2b410dfcc021f38b Mon Sep 17 00:00:00 2001 From: Li-Zhen You Date: Thu, 22 Oct 2009 11:32:42 +0800 Subject: 6881206 nge driver shows a lot of first_collisions --- usr/src/uts/common/io/nge/nge_kstats.c | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) (limited to 'usr/src') 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: -- cgit v1.2.3