From owner-cvs-src-old@FreeBSD.ORG Fri Jul 9 00:38:30 2010 Return-Path: Delivered-To: cvs-src-old@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id BD9DC1065670 for ; Fri, 9 Jul 2010 00:38:30 +0000 (UTC) (envelope-from np@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [IPv6:2001:4f8:fff6::29]) by mx1.freebsd.org (Postfix) with ESMTP id AA2AC8FC08 for ; Fri, 9 Jul 2010 00:38:30 +0000 (UTC) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.14.3/8.14.3) with ESMTP id o690cUm8038508 for ; Fri, 9 Jul 2010 00:38:30 GMT (envelope-from np@repoman.freebsd.org) Received: (from svn2cvs@localhost) by repoman.freebsd.org (8.14.3/8.14.3/Submit) id o690cUCU038507 for cvs-src-old@freebsd.org; Fri, 9 Jul 2010 00:38:30 GMT (envelope-from np@repoman.freebsd.org) Message-Id: <201007090038.o690cUCU038507@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: svn2cvs set sender to np@repoman.freebsd.org using -f From: Navdeep Parhar Date: Fri, 9 Jul 2010 00:38:00 +0000 (UTC) To: cvs-src-old@freebsd.org X-FreeBSD-CVS-Branch: HEAD Subject: cvs commit: src/sys/dev/cxgb cxgb_adapter.h cxgb_main.c src/sys/dev/cxgb/common cxgb_ael1002.c cxgb_common.h cxgb_t3_hw.c X-BeenThere: cvs-src-old@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: **OBSOLETE** CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 09 Jul 2010 00:38:30 -0000 np 2010-07-09 00:38:00 UTC FreeBSD src repository Modified files: sys/dev/cxgb cxgb_adapter.h cxgb_main.c sys/dev/cxgb/common cxgb_ael1002.c cxgb_common.h cxgb_t3_hw.c Log: SVN rev 209841 on 2010-07-09 00:38:00Z by np Improve cxgb(4)'s behaviour when faced with temporarily "bouncy" links: - Run the adapter's tick at 1Hz and remove link state checks from it. Instead, have each port check its link state. Delay the check so that it takes place slightly after the driver is notified of a change in link state. This is a cheap way to debounce these notifications if many are received in rapid succession. POLL_LINK_1ST_TIME flag can also be eliminated as a side effect of these changes. - Do not reset the PHY when link goes down. - Clear port's link_fault flag if the PHY indicates link is down. - get_link_status_r should leave speed and duplex alone when link is down. MFC after: 1 month Revision Changes Path 1.18 +3 -2 src/sys/dev/cxgb/common/cxgb_ael1002.c 1.21 +0 -1 src/sys/dev/cxgb/common/cxgb_common.h 1.25 +10 -10 src/sys/dev/cxgb/common/cxgb_t3_hw.c 1.57 +3 -4 src/sys/dev/cxgb/cxgb_adapter.h 1.116 +39 -23 src/sys/dev/cxgb/cxgb_main.c