opnsense-src/sys/dev/netmap
Luigi Rizzo 8241616dc5 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
2012-10-19 04:13:12 +00:00
..
if_em_netmap.h fix some signed/unsigned warnings in the netmap code. 2012-08-02 11:59:43 +00:00
if_igb_netmap.h fix some signed/unsigned warnings in the netmap code. 2012-08-02 11:59:43 +00:00
if_lem_netmap.h A bunch of netmap fixes: 2012-02-27 19:05:01 +00:00
if_re_netmap.h do not use a deprecated field in a structure. 2012-04-13 15:33:12 +00:00
ixgbe_netmap.h Reword comment to try to improve clarity, and fix a typo. 2012-08-13 19:14:45 +00:00
netmap.c This is an import of code, mostly from Giuseppe Lettieri, 2012-10-19 04:13:12 +00:00
netmap_kern.h This is an import of code, mostly from Giuseppe Lettieri, 2012-10-19 04:13:12 +00:00
netmap_mem1.c A bit of cleanup in the names of fields of netmap-related structures. 2012-04-13 16:03:07 +00:00
netmap_mem2.c This is an import of code, mostly from Giuseppe Lettieri, 2012-10-19 04:13:12 +00:00