Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 12 Oct 2010 16:09:08 +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:  <201010121609.o9CG9MT9083861@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
jhb         2010-10-12 16:09:08 UTC

  FreeBSD src repository

  Modified files:        (Branch: RELENG_7)
    sys/net              if_tap.c if_tun.c 
  Log:
  SVN rev 213727 on 2010-10-12 16:09:08Z by jhb
  
  MFC 213028,213328:
  - 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.
  
  Revision   Changes    Path
  1.71.2.6   +63 -91    src/sys/net/if_tap.c
  1.163.2.3  +37 -53    src/sys/net/if_tun.c



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