Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 27 Nov 2010 23:48:53 +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:  <201011272349.oARNnHM8021652@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
zec         2010-11-27 23:48:53 UTC

  FreeBSD src repository

  Modified files:        (Branch: RELENG_8)
    sys/netgraph         ng_pipe.c 
  Log:
  SVN rev 215958 on 2010-11-27 23:48:53Z by zec
  
  MFC r215800:
  
    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.
  
  Revision  Changes    Path
  1.3.2.5   +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?201011272349.oARNnHM8021652>