diff options
author | luigi <luigi@FreeBSD.org> | 2013-06-05 17:27:59 +0000 |
---|---|---|
committer | luigi <luigi@FreeBSD.org> | 2013-06-05 17:27:59 +0000 |
commit | 1af0fc6f3bee18ed160a45d684b3eea28ca75e18 (patch) | |
tree | 33e5a707a2b5ca7ee35c9034397978236b281eb6 /sys/dev/mpt | |
parent | 4b6fd300ccf3e9df75abb493cb082933d66b0212 (diff) | |
download | FreeBSD-src-1af0fc6f3bee18ed160a45d684b3eea28ca75e18.zip FreeBSD-src-1af0fc6f3bee18ed160a45d684b3eea28ca75e18.tar.gz |
- fix a bug in the previous commit that was dropping the last packet
from each batch flowing on the VALE switch
- feature: add glue for 'indirect' buffers on the sender side:
if a slot has NS_INDIRECT set, the netmap buffer contains pointer(s)
to the actual userspace buffers, which are accessed with copyin().
The feature is not finalised yet, as it will likely need to deal
with some iovec variant for proper scatter/gather support.
This will save one copy for clients (e.g. qemu) that cannot
use the netmap buffer directly.
A curiosity: on amd64 copyin() appears to be 10-15% faster than pkt_copy()
or bcopy() at least for sizes of 256 and greater.
Diffstat (limited to 'sys/dev/mpt')
0 files changed, 0 insertions, 0 deletions