summaryrefslogtreecommitdiffstats
path: root/sys/i386/i386
diff options
context:
space:
mode:
authorloos <loos@FreeBSD.org>2015-08-17 18:21:18 +0000
committerloos <loos@FreeBSD.org>2015-08-17 18:21:18 +0000
commitf69a7374f02c3d824c60751d6975726b9fb789c1 (patch)
tree290300f1a8d49e15da0a7214c5202044a90c8fb0 /sys/i386/i386
parent77458f0d7cb617f5b07d6e249e961647e6ba84e1 (diff)
downloadFreeBSD-src-f69a7374f02c3d824c60751d6975726b9fb789c1.zip
FreeBSD-src-f69a7374f02c3d824c60751d6975726b9fb789c1.tar.gz
MFC r286139:
Do not allocate the buffers at opening of the descriptor, because once the buffer is allocated we are committed to a particular buffer method (BPF_BUFMODE_BUFFER in this case). If we are using zero-copy buffers, the userland program must register its buffers before set the interface. If we are using kernel memory buffers, we can allocate the buffer at the time that the interface is being set. This fix allows the usage of BIOCSETBUFMODE after r235746. Update the comments to reflect the recent changes. Sponsored by: Rubicon Communications (Netgate)
Diffstat (limited to 'sys/i386/i386')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud