From owner-cvs-src@FreeBSD.ORG Wed Aug 10 20:12:26 2005 Return-Path: X-Original-To: cvs-src@FreeBSD.org Delivered-To: cvs-src@FreeBSD.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2D7A416A41F; Wed, 10 Aug 2005 20:12:26 +0000 (GMT) (envelope-from jhb@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id E242C43D45; Wed, 10 Aug 2005 20:12:25 +0000 (GMT) (envelope-from jhb@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.13.1/8.13.1) with ESMTP id j7AKCP6B058244; Wed, 10 Aug 2005 20:12:25 GMT (envelope-from jhb@repoman.freebsd.org) Received: (from jhb@localhost) by repoman.freebsd.org (8.13.1/8.13.1/Submit) id j7AKCPQv058243; Wed, 10 Aug 2005 20:12:25 GMT (envelope-from jhb) Message-Id: <200508102012.j7AKCPQv058243@repoman.freebsd.org> From: John Baldwin Date: Wed, 10 Aug 2005 20:12:25 +0000 (UTC) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Cc: Subject: cvs commit: src/sys/dev/hme if_hme.c 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: Wed, 10 Aug 2005 20:12:26 -0000 jhb 2005-08-10 20:12:25 UTC FreeBSD src repository Modified files: sys/dev/hme if_hme.c Log: - Use callout_init_mtx() to close races between hme_stop() and hme_tick(). - Use the driver lock instead of Giant in a bus dma callback. - Clear IFF_DRV_(RUNNING|OACTIVE) in hme_stop() instead of just clearing RUNNING in hme_ioctl() to be more like other ethernet drivers. - Lock the driver lock around mii operations. - Remove spls. - Cleanup locking in hme_ioctl(). MFC after: 1 week Revision Changes Path 1.40 +22 -57 src/sys/dev/hme/if_hme.c