summaryrefslogtreecommitdiff
path: root/lib/libcompat
diff options
context:
space:
mode:
authorDavid Gwynne <dlg@cvs.openbsd.org>2011-06-15 00:03:01 +0000
committerDavid Gwynne <dlg@cvs.openbsd.org>2011-06-15 00:03:01 +0000
commitbeaad27cfe37d51b0fa14d909a65611899eea62a (patch)
treeb51de478c6a3a728d6bcfea7b59c45c615a8c4ea /lib/libcompat
parenta1a09b596c0616ce46c113367e177885e17943f1 (diff)
if the system runs out of mbufs and cannot provide any when filling
the rx ring, schedule a timeout to keep trying until it gets some. a timeout is used here cos the chip doesnt have a way of reporting if its out of descriptors or when there's a ring overflow. we have to manage that ourselves in software. mikeb reported this issue on an ipsec gateway. ipsec would consume all the mbufs while they were stuck in crypto waiting for the cpu to catch up, by which time it was too late to give more to the hardware. without any rx descriptors the chip would never interrupt and we'd never try to fill the ring again. the fix was tested by and is ok mikeb@
Diffstat (limited to 'lib/libcompat')
0 files changed, 0 insertions, 0 deletions