DragonFly BSD
DragonFly commits List (threaded) for 2010-02
[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]

git: kernel - Fix issue w/ buffer ortation when doing non-blocking read from bpf


From: Matthew Dillon <dillon@xxxxxxxxxxxxxxxxxxxxxxx>
Date: Mon, 15 Feb 2010 09:33:42 -0800 (PST)

commit 95ec0a9ce1d830d0003820ed1627f95af92d5aad
Author: Matthew Dillon <dillon@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@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



[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]