6882613 igb panic on serpa systems
authorchenlu chen - Sun Microsystems - Beijing China <Chenlu.Chen@Sun.COM>
Tue, 11 May 2010 07:02:24 +0800
changeset 12375 ece426baf545
parent 12374 108edb7148a6
child 12376 0391ee57a411
6882613 igb panic on serpa systems
usr/src/uts/common/io/igb/igb_main.c
usr/src/uts/common/io/igb/igb_sw.h
--- a/usr/src/uts/common/io/igb/igb_main.c	Mon May 10 15:56:04 2010 -0600
+++ b/usr/src/uts/common/io/igb/igb_main.c	Tue May 11 07:02:24 2010 +0800
@@ -30,7 +30,7 @@
 #include "igb_sw.h"
 
 static char ident[] = "Intel 1Gb Ethernet";
-static char igb_version[] = "igb 1.1.14";
+static char igb_version[] = "igb 1.1.15";
 
 /*
  * Local function protoypes
@@ -3013,7 +3013,6 @@
 			igb->link_speed = speed;
 			igb->link_duplex = duplex;
 			igb->link_state = LINK_STATE_UP;
-			igb->link_down_timeout = 0;
 			link_changed = B_TRUE;
 			if (!igb->link_complete)
 				igb_stop_link_timer(igb);
@@ -3025,16 +3024,6 @@
 			igb->link_state = LINK_STATE_DOWN;
 			link_changed = B_TRUE;
 		}
-
-		if (igb->igb_state & IGB_STARTED) {
-			if (igb->link_down_timeout < MAX_LINK_DOWN_TIMEOUT) {
-				igb->link_down_timeout++;
-			} else if (igb->link_down_timeout ==
-			    MAX_LINK_DOWN_TIMEOUT) {
-				igb_tx_clean(igb);
-				igb->link_down_timeout++;
-			}
-		}
 	}
 
 	if (igb_check_acc_handle(igb->osdep.reg_handle) != DDI_FM_OK) {
--- a/usr/src/uts/common/io/igb/igb_sw.h	Mon May 10 15:56:04 2010 -0600
+++ b/usr/src/uts/common/io/igb/igb_sw.h	Tue May 11 07:02:24 2010 +0800
@@ -1,7 +1,6 @@
 /*
  * CDDL HEADER START
  *
- * Copyright(c) 2007-2009 Intel Corporation. All rights reserved.
  * The contents of this file are subject to the terms of the
  * Common Development and Distribution License (the "License").
  * You may not use this file except in compliance with the License.
@@ -21,8 +20,11 @@
  */
 
 /*
- * Copyright 2010 Sun Microsystems, Inc.  All rights reserved.
- * Use is subject to license terms.
+ * Copyright(c) 2007-2010 Intel Corporation. All rights reserved.
+ */
+
+/*
+ * Copyright (c) 2008, 2010, Oracle and/or its affiliates. All rights reserved.
  */
 
 #ifndef	_IGB_SW_H
@@ -165,7 +167,6 @@
 #define	RX_DRAIN_TIME			200
 
 #define	STALL_WATCHDOG_TIMEOUT		8	/* 8 seconds */
-#define	MAX_LINK_DOWN_TIMEOUT		8	/* 8 seconds */
 
 /*
  * Defined for IP header alignment.
@@ -565,7 +566,6 @@
 	link_state_t		link_state;
 	uint32_t		link_speed;
 	uint32_t		link_duplex;
-	uint32_t		link_down_timeout;
 	boolean_t		link_complete;
 	timeout_id_t		link_tid;