Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 22 Sep 2010 21:02:43 +0000 (UTC)
From:      John Baldwin <jhb@FreeBSD.org>
To:        cvs-src-old@freebsd.org
Subject:   cvs commit: src/sys/net if_tap.c if_tun.c
Message-ID:  <201009222102.o8ML2wfO070052@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
jhb         2010-09-22 21:02:43 UTC

  FreeBSD src repository

  Modified files:
    sys/net              if_tap.c if_tun.c 
  Log:
  SVN rev 213028 on 2010-09-22 21:02:43Z by jhb
  
  - Expand scope of tun/tap softc locks to cover more softc fields and
    driver-maintained ifnet fields (such as if_drv_flags).
  - Use soft locks as the mutex that protects each interface's knote list
    rather than using the global knote list lock.  Also, use the softc
    for kn_hook instead of the cdev.
  - Use mtx_sleep() instead of tsleep() when blocking in the read routines.
    This fixes a lost wakeup race.
  - Remove D_NEEDGIANT now that the cdevsw routines use the softc lock
    where locking is needed.
  - Lock IFQ when calculating the result for FIONREAD in tap(4).  tun(4)
    already did this.
  - Remove remaining spl calls.
  
  Submitted by:   Marcin Cieslak  saper of saper|info (3)
  MFC after:      2 weeks
  
  Revision  Changes    Path
  1.85      +63 -91    src/sys/net/if_tap.c
  1.187     +34 -54    src/sys/net/if_tun.c



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