cvs commit: src/sys/pci if_vr.c

Mike Silbersack silby at FreeBSD.org
Tue Apr 8 19:21:55 PDT 2003


silby       2003/04/08 19:21:54 PDT

  FreeBSD src repository

  Modified files:
    sys/pci              if_vr.c 
  Log:
  Fix if_vr's handling of vr_encap failures.  3 parts:
  
  - Don't bother setting OACTIVE when the descriptors are all full
    or there's a vr_encap failure, it doesn't help anything.
  - Correctly roll back on the descriptor list after a failure
    so as not to corrupt the list.
  - Add a missing VR_UNLOCK().
  
  Without these changes, vr_encap failure (which is assured during
  a low mbuf situation) would result in the card locking until
  the watchdog could fire.
  
  MFC after:      1 week
  
  Revision  Changes    Path
  1.67      +9 -10     src/sys/pci/if_vr.c


More information about the cvs-src mailing list