summaryrefslogtreecommitdiffstats
path: root/include/stddef.h
diff options
context:
space:
mode:
authorluigi <luigi@FreeBSD.org>2012-10-19 04:13:12 +0000
committerluigi <luigi@FreeBSD.org>2012-10-19 04:13:12 +0000
commitc6ac8508b2ea2c486313c4fbfef377e83807af8f (patch)
tree632c02c59edef4fb4a1c88fed6f4b6ae6cd4ca89 /include/stddef.h
parent15f16d016ed025f0236fdc92a1efb7b221b2833e (diff)
downloadFreeBSD-src-c6ac8508b2ea2c486313c4fbfef377e83807af8f.zip
FreeBSD-src-c6ac8508b2ea2c486313c4fbfef377e83807af8f.tar.gz
This is an import of code, mostly from Giuseppe Lettieri,
that revises the netmap memory allocator so that the various parameters (number and size of buffers, rings, descriptors) can be modified at runtime through sysctl variables. The changes become effective when no netmap clients are active. The API is mostly unchanged, although the NIOCUNREGIF ioctl now does not bring the interface back to normal mode: and you need to close the file descriptor for that. This change was necessary to track who is using the mapped region, and since it is a simplification of the API there was no incentive in trying to preserve NIOCUNREGIF. We will remove the ioctl from the kernel next time we need a real API change (and version bump). Among other things, buffer allocation when opening devices is now much faster: it used to take O(N^2) time, now it is linear. Submitted by: Giuseppe Lettieri
Diffstat (limited to 'include/stddef.h')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud