From owner-cvs-src@FreeBSD.ORG Tue Mar 18 02:17:38 2008 Return-Path: Delivered-To: cvs-src@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 4F6B4106564A; Tue, 18 Mar 2008 02:17:38 +0000 (UTC) (envelope-from yongari@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [IPv6:2001:4f8:fff6::29]) by mx1.freebsd.org (Postfix) with ESMTP id 2D0608FC24; Tue, 18 Mar 2008 02:17:38 +0000 (UTC) (envelope-from yongari@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.14.1/8.14.1) with ESMTP id m2I2HcU8089607; Tue, 18 Mar 2008 02:17:38 GMT (envelope-from yongari@repoman.freebsd.org) Received: (from yongari@localhost) by repoman.freebsd.org (8.14.1/8.14.1/Submit) id m2I2Hb36089606; Tue, 18 Mar 2008 02:17:37 GMT (envelope-from yongari) Message-Id: <200803180217.m2I2Hb36089606@repoman.freebsd.org> From: Pyun YongHyeon Date: Tue, 18 Mar 2008 02:17:37 +0000 (UTC) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: RELENG_6 Cc: Subject: cvs commit: src/sys/dev/bfe if_bfe.c if_bfereg.h X-BeenThere: cvs-src@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 18 Mar 2008 02:17:38 -0000 yongari 2008-03-18 02:17:37 UTC FreeBSD src repository Modified files: (Branch: RELENG_6) sys/dev/bfe if_bfe.c if_bfereg.h Log: MFC if_bfe.c rev 1.44, if_bfereg.h rev 1.11 to RELENG_6: Fix link state handling in bfe(4). o conversion to callout(9) API. o add a missing driver lock in bfe_ifmedia_sts(). o use our callout to drive watchdog timer. o restart Tx routine if pending queued packets are present in watchdog handler. o unarm watchdog timer only if there are no queued packets. o don't blindly reset phy and let phy driver handle link change request in bfe_init_locked(). o return the status of mii_mediachg() to caller in bfe_ifmedia_upd(). Previously it always returned 0 to caller. o add check for IFF_DRV_RUNNING flag as well as IFF_DRV_OACTIVE in bfe_start_locked(). o implement miibus_statchg method that keeps track of current link state changes as well as negotiated speed/duplex/ flow-control configuration. Reprogram MAC to appropriate duplex state. Flow-control configuration was also implemented but commented out at the moment. The flow-control configuration will be enabled again after we have general flow-control framework in mii layer. Revision Changes Path 1.25.2.8 +82 -47 src/sys/dev/bfe/if_bfe.c 1.7.2.2 +6 -1 src/sys/dev/bfe/if_bfereg.h