cvs commit: src/sys/dev/hatm if_hatm_intr.c

Hartmut Brandt harti at FreeBSD.org
Mon Oct 27 08:22:00 PST 2003


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


More information about the cvs-src mailing list