cvs commit: src/sys/dev/snc dp83932.c dp83932var.h if_snc.c if_snc_cbus.c if_snc_pccard.c

John Baldwin jhb at FreeBSD.org
Mon Aug 4 19:19:25 UTC 2008


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


More information about the cvs-all mailing list