diff options
author | silby <silby@FreeBSD.org> | 2003-04-09 02:21:54 +0000 |
---|---|---|
committer | silby <silby@FreeBSD.org> | 2003-04-09 02:21:54 +0000 |
commit | 979ed3a82ea34d46466c4d6f755b15b85df66f15 (patch) | |
tree | a60b1810b7420f57f1b635330dfe0941413a6e25 /sys/kern/subr_witness.c | |
parent | 339cdd9fae72c60095061f96c9d8ad19e8267275 (diff) | |
download | FreeBSD-src-979ed3a82ea34d46466c4d6f755b15b85df66f15.zip FreeBSD-src-979ed3a82ea34d46466c4d6f755b15b85df66f15.tar.gz |
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
Diffstat (limited to 'sys/kern/subr_witness.c')
0 files changed, 0 insertions, 0 deletions