diff options
author | David Gwynne <dlg@cvs.openbsd.org> | 2008-11-24 12:57:38 +0000 |
---|---|---|
committer | David Gwynne <dlg@cvs.openbsd.org> | 2008-11-24 12:57:38 +0000 |
commit | 886d2362a0e2964795f03a71c0e918b1b37b5214 (patch) | |
tree | ab635762d022f124b380626fec9d10c185f4ce87 /sys/netnatm | |
parent | cf626db53398f9a16883b8a81bfc6be80564d9ab (diff) |
add several backend pools to allocate mbufs clusters of various sizes out
of. currently limited to MCLBYTES (2048 bytes) and 4096 bytes until pools
can allocate objects of sizes greater than PAGESIZE.
this allows drivers to ask for "jumbo" packets to fill rx rings with.
the second half of this change is per interface mbuf cluster allocator
statistics. drivers can use the new interface (MCLGETI), which will use
these stats to selectively fail allocations based on demand for mbufs. if
the driver isnt rapidly consuming rx mbufs, we dont allow it to allocate
many to put on its rx ring.
drivers require modifications to take advantage of both the new allocation
semantic and large clusters.
this was written and developed with deraadt@ over the last two days
ok deraadt@ claudio@
Diffstat (limited to 'sys/netnatm')
0 files changed, 0 insertions, 0 deletions