git: kernel - Fix issue w/ buffer ortation when doing non-blocking read from bpf
Matthew Dillon
dillon at crater.dragonflybsd.org
Mon Feb 15 09:34:57 PST 2010
commit 95ec0a9ce1d830d0003820ed1627f95af92d5aad
Author: Matthew Dillon <dillon at apollo.backplane.com>
Date: Mon Feb 15 09:32:27 2010 -0800
kernel - Fix issue w/ buffer ortation when doing non-blocking read from bpf
* Non-blocking reads from a BPF device not in immediate mode would not
rotate the buffers even if the was data in the store buffer, but not in
the hold buffer. So until the store buffer fills up, the reads would
return -1 and set errno to EWOULDBLOCK.
Submitted-by: Guy Harris <guy at alum.mit.edu>
Taken-from: FreeBSD
Summary of changes:
sys/net/bpf.c | 8 ++++++--
1 files changed, 6 insertions(+), 2 deletions(-)
http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/95ec0a9ce1d830d0003820ed1627f95af92d5aad
--
DragonFly BSD source repository
More information about the Commits
mailing list