Date: Mon, 29 Mar 2004 14:16:39 -0800 (PST) From: Robert Watson <rwatson@FreeBSD.org> To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/sys/net if_tun.c Message-ID: <200403292216.i2TMGdUs083265@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
rwatson     2004/03/29 14:16:39 PST
  FreeBSD src repository
  Modified files:
    sys/net              if_tun.c 
  Log:
  Add per-softc locking to if_tun:
  
  - Add tun_mtx to tun_softc.  Annotate what is (and isn't) locked by it.
  - Lock down tun_flags, tun_pid.
  - In the output path, cache the value of tun_flags so it's consistent
    when processing a particular packet rather than re-reading the field.
  - In general, use unlocked reads for debugging.
  - Annotate a couple of places where additional unlocked reads may be
    possible.
  - Annotate that tun_pid is used as a bug in tunopen().
  
  if_tun is now largely MPSAFE, although questions remain about some of
  the cdevsw fields and how they are synchronized.
  
  Revision  Changes    Path
  1.139     +66 -6     src/sys/net/if_tun.c
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200403292216.i2TMGdUs083265>
