Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 27 Oct 2003 08:21:59 -0800 (PST)
From:      Hartmut Brandt <harti@FreeBSD.org>
To:        src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org
Subject:   cvs commit: src/sys/dev/hatm if_hatm_intr.c
Message-ID:  <200310271621.h9RGLxAC094242@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
harti       2003/10/27 08:21:59 PST

  FreeBSD src repository

  Modified files:
    sys/dev/hatm         if_hatm_intr.c 
  Log:
  When we cannot allocate an external buffer (bacause we've hit
  the maximum number of pages for buffers) return -1 instead of 0.
  This fixes a panic under conditions when many mbufs are needed.
  
  Update the head pointer of the receive buffer pool queue even when
  we could not supply a buffer to the chip. Otherwise the chip will
  not re-interrupt us for another try. A better strategy would probably
  be to remember this condition and to supply buffers without an interrupt
  as soon as buffers get available.
  
  Revision  Changes    Path
  1.6       +5 -9      src/sys/dev/hatm/if_hatm_intr.c



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