]> CyberLeo.Net >> Repos - FreeBSD/stable/9.git/commit
MFC r241009
authorrstone <rstone@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Fri, 8 Mar 2013 19:36:36 +0000 (19:36 +0000)
committerrstone <rstone@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Fri, 8 Mar 2013 19:36:36 +0000 (19:36 +0000)
commit6b76c8dbb79dab4078f915bfae5e42eeb98ccf46
treef797098b2ede616f9c692d0e908282294fd3f81e
parentbf139c73319f7c585a653a05282539f4dc37ff1f
MFC r241009
  Ensure that all cases that enqueue a netgraph item for delivery by a
  ngthread properly set the item's depth to 1.  In particular, prior to this
  change if ng_snd_item failed to acquire a lock on a node, the item's depth
  would not be set at all.  This fix ensures that the error code from rcvmsg/
  rcvdata is properly passed back to the apply callback.  For example, this
  fixes a bug where an error from rcvmsg/rcvdata would not previously
  propagate back to a libnetgraph consumer when the message was queued.

  Reviewed by:  mav
  MFC after:    1 month
  Sponsored by: Sandvine Incorporated

git-svn-id: svn://svn.freebsd.org/base/stable/9@248066 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
sys/netgraph/ng_base.c