Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 21 Nov 2005 22:14:49 +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/nve if_nve.c if_nvereg.h
Message-ID:  <200511212214.jALMEn5x081586@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
jhb         2005-11-21 22:14:49 UTC

  FreeBSD src repository

  Modified files:
    sys/dev/nve          if_nve.c if_nvereg.h 
  Log:
  Overhaul nve(4) locking to make it more like other ethernet drivers in
  the tree.
  - Add locked variants of nve_start(), nve_init(), and nve_ifmedia_upd().
  - Use callout_* to manage callouts rather than timeout(9).
  - Mark interrupt handler MPSAFE (IFF_NEEDGIANT was already clear).
  - Lock the driver lock in driver entry points such as the interrupt
    handler, if_start, and if_init rather than locking the driver mutex
    in the various work functions called by the binary blob.  The spin lock
    used by the binary block can probably be stubbed out now.
  - Use IFQ_DRV_IS_EMPTY() macro rather than doing it by hand.
  - Fix locking in detach.
  - Remove some unused fields from the softc.
  
  Tested by:      cognet
  MFC after:      2 weeks
  
  Revision  Changes    Path
  1.15      +110 -86   src/sys/dev/nve/if_nve.c
  1.4       +3 -5      src/sys/dev/nve/if_nvereg.h



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200511212214.jALMEn5x081586>