From owner-cvs-all@FreeBSD.ORG Sat Sep 15 10:00:52 2007 Return-Path: Delivered-To: cvs-all@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 7CFCF16A41A; Sat, 15 Sep 2007 10:00:52 +0000 (UTC) (envelope-from marius@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [IPv6:2001:4f8:fff6::29]) by mx1.freebsd.org (Postfix) with ESMTP id 7270E13C467; Sat, 15 Sep 2007 10:00:52 +0000 (UTC) (envelope-from marius@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 l8FA0q2N034154; Sat, 15 Sep 2007 10:00:52 GMT (envelope-from marius@repoman.freebsd.org) Received: (from marius@localhost) by repoman.freebsd.org (8.14.1/8.14.1/Submit) id l8FA0qMV034153; Sat, 15 Sep 2007 10:00:52 GMT (envelope-from marius) Message-Id: <200709151000.l8FA0qMV034153@repoman.freebsd.org> From: Marius Strobl Date: Sat, 15 Sep 2007 10:00:52 +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/pci if_dc.c if_dcreg.h X-BeenThere: cvs-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: CVS commit messages for the entire tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 15 Sep 2007 10:00:52 -0000 marius 2007-09-15 10:00:52 UTC FreeBSD src repository Modified files: (Branch: RELENG_6) sys/pci if_dc.c if_dcreg.h Log: MFC: if_dc.c 1.166 1.171, 1.189 (partial), 1.190, 1.192; if_dcreg.h 1.54 - In detach method, move if_free() after bus_teardown_intr(). - Use our own callout (the dc_tick() callout uses varying periods depending on the NIC and isn't used at all with HomePNA links) instead of if_slowtimo() for driving dc_watchdog() in order to avoid races accessing if_timer. - Use bus_get_dma_tag() so dc(4) works on platforms requiring it. - Don't bother to set if_mtu to ETHERMTU, ether_ifattach() does that. - Fix a bug originally introduced in rev. 1.74; don't reloaded the watchdog timer in dc_txeof() in case there are still unhandled descriptors as dc_poll() invokes dc_poll() unconditionally. Otherwise this would result in the watchdog timer constantly being being reloaded and thus circumvent that the watchdog ever fires in the DEVICE_POLLING case. Revision Changes Path 1.160.2.13 +71 -94 src/sys/pci/if_dc.c 1.44.2.6 +3 -2 src/sys/pci/if_dcreg.h