From owner-cvs-all@FreeBSD.ORG Mon Aug 4 19:19:25 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 6FC7010656D1; Mon, 4 Aug 2008 19:19:24 +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 6A0268FC17; Mon, 4 Aug 2008 19:19:24 +0000 (UTC) (envelope-from jhb@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.14.2/8.14.2) with ESMTP id m74JJOM8034132; Mon, 4 Aug 2008 19:19:24 GMT (envelope-from jhb@repoman.freebsd.org) Received: (from svn2cvs@localhost) by repoman.freebsd.org (8.14.2/8.14.1/Submit) id m74JJO8P034131; Mon, 4 Aug 2008 19:19:24 GMT (envelope-from jhb@repoman.freebsd.org) Message-Id: <200808041919.m74JJO8P034131@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: svn2cvs set sender to jhb@repoman.freebsd.org using -f From: John Baldwin Date: Mon, 4 Aug 2008 19:19:18 +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/snc dp83932.c dp83932var.h if_snc.c if_snc_cbus.c if_snc_pccard.c 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, 04 Aug 2008 19:19:25 -0000 jhb 2008-08-04 19:19:18 UTC FreeBSD src repository Modified files: sys/dev/snc dp83932.c dp83932var.h if_snc.c if_snc_cbus.c if_snc_pccard.c Log: SVN rev 181298 on 2008-08-04 19:19:18Z by jhb Add locking to snc(4) so it is MPSAFE: - Add a mutex to the softc to protect the softc and device hardware. - Use a private timer routine to drive the transmit watchdog timer instead of using if_watchdog/if_timer. - If if_alloc() fails during attach, fail the attach with an error rather than panic'ing. - Clear RUNNING and OACTIVE only in sncstop(). - Don't mess with IFF_UP. - Don't leak 'struct ifnet' on detach. - Setup interrupt handler after ether_ifattach(). - Call ether_ifdetach() rather than if_detach() in the pccard detach routine. Tested by: no one despite repeated requests Revision Changes Path 1.25 +86 -51 src/sys/dev/snc/dp83932.c 1.8 +8 -1 src/sys/dev/snc/dp83932var.h 1.8 +29 -2 src/sys/dev/snc/if_snc.c 1.8 +1 -10 src/sys/dev/snc/if_snc_cbus.c 1.12 +6 -12 src/sys/dev/snc/if_snc_pccard.c