From owner-cvs-all@FreeBSD.ORG Mon Jun 2 19:43:41 2008 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 70AC9106566C; Mon, 2 Jun 2008 19:43:41 +0000 (UTC) (envelope-from jhb@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [IPv6:2001:4f8:fff6::29]) by mx1.freebsd.org (Postfix) with ESMTP id 7292D8FC1B; Mon, 2 Jun 2008 19:43:41 +0000 (UTC) (envelope-from jhb@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 m52JhfcM099465; Mon, 2 Jun 2008 19:43:41 GMT (envelope-from jhb@repoman.freebsd.org) Received: (from svn2cvs@localhost) by repoman.freebsd.org (8.14.1/8.14.1/Submit) id m52JhfFm099464; Mon, 2 Jun 2008 19:43:41 GMT (envelope-from jhb@repoman.freebsd.org) Message-Id: <200806021943.m52JhfFm099464@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: svn2cvs set sender to jhb@repoman.freebsd.org using -f From: John Baldwin Date: Mon, 2 Jun 2008 19:43:24 +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/xe if_xe.c if_xe_pccard.c if_xevar.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: Mon, 02 Jun 2008 19:43:41 -0000 jhb 2008-06-02 19:43:41 UTC FreeBSD src repository Modified files: sys/dev/xe if_xe.c if_xe_pccard.c if_xevar.h Log: SVN rev 179492 on 2008-06-02 19:43:24Z by jhb Add locking and make xe(4) MPSAFE: - Add a mutex to protect the softc and device hardware. - Use a callout rather than a callout_handle for the media timer. - Use a dedicated timer for managing the tx watchdog rather than if_timer. - Fix some resource leaks if xe_attach() fails. - Shutdown the device before detaching the driver. - Setup the interrupt handler after ether_ifattach(). Tested by: Ian FREISLICH ianf of clue.co.za Revision Changes Path 1.65 +89 -69 src/sys/dev/xe/if_xe.c 1.33 +7 -3 src/sys/dev/xe/if_xe_pccard.c 1.7 +8 -1 src/sys/dev/xe/if_xevar.h