Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 24 Nov 2010 16:02:58 +0000 (UTC)
From:      Marko Zec <zec@FreeBSD.org>
To:        cvs-src-old@freebsd.org
Subject:   cvs commit: src/sys/netgraph ng_pipe.c
Message-ID:  <201011241603.oAOG3Kfd055158@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help

zec         2010-11-24 16:02:58 UTC

  FreeBSD src repository

  Modified files:
    sys/netgraph         ng_pipe.c 
  Log:
  SVN rev 215800 on 2010-11-24 16:02:58Z by zec
  
  Simplify ng_pipe locking model by relying on the netgraph framework
  to provide serialization of calls into the node, which is accomplished
  by markng the node as single-threaded (NGF_FORCE_WRITER).
  
  The price we pay is that each ng_pipe instance now has its own callout
  handler which polls for queued frames on each clock tick, as long as
  the pipe has any frames in its internal queues.  OTOH, we got rid of
  the global ng_pipe mutex, so from now on multiple ng_pipe instances
  can operate in parallel.  This change also fixes counting of forwarded
  frames when an ng_pipe node is not enforcing any packet impairments.
  
  While here, attempt to improve adherance to style(9) throughout
  otherwise mostly unreadable code.
  
  MFC after:      3 days
  
  Revision  Changes    Path
  1.7       +85 -147   src/sys/netgraph/ng_pipe.c



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