changeset 10837:440639357e43

6881206 nge driver shows a lot of first_collisions
author Li-Zhen You <Li-Zhen.You@Sun.COM>
date Thu, 22 Oct 2009 11:32:42 +0800
parents 2d4b6df31b57
children 0a1397be8bf1
files usr/src/uts/common/io/nge/nge_kstats.c
diffstat 1 files changed, 5 insertions(+), 9 deletions(-) [+]
line wrap: on
line diff
--- a/usr/src/uts/common/io/nge/nge_kstats.c	Wed Oct 21 19:52:57 2009 -0700
+++ b/usr/src/uts/common/io/nge/nge_kstats.c	Thu Oct 22 11:32:42 2009 +0800
@@ -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 @@
 		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: