Date: Mon, 4 Aug 2008 19:19:18 +0000 (UTC) From: John Baldwin <jhb@FreeBSD.org> To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/sys/dev/snc dp83932.c dp83932var.h if_snc.c if_snc_cbus.c if_snc_pccard.c Message-ID: <200808041919.m74JJO8P034131@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200808041919.m74JJO8P034131>
