PERFORCE change 138505 for review

Robert Watson rwatson at FreeBSD.org
Tue Mar 25 09:14:37 UTC 2008


http://perforce.freebsd.org/chv.cgi?CH=138505

Change 138505 by rwatson at rwatson_cinnamon on 2008/03/25 09:14:08

	Update bpf.4 to reflect that both buffers may be owned by userspace
	at once; caution against assuming this.

Affected files ...

.. //depot/projects/zcopybpf/src/share/man/man4/bpf.4#12 edit

Differences ...

==== //depot/projects/zcopybpf/src/share/man/man4/bpf.4#12 (text+ko) ====

@@ -259,14 +259,14 @@
 They will return a readable file descriptor when ownership of the next buffer
 is assigned to user space.
 .Pp
-In the current implementation, the kernel will assign ownership of at most
-one buffer at a time to the user process.
-The user processes must acknowledge the current buffer in order to be
-notified that the next buffer is ready for processing.
-Programs should not rely on this as an invariant, as it may change in future
-versions; in particular, they must maintain their own notion of which buffer
-is "next" so that if both buffers are owned by userspace, it can process them
-in the correct order.
+In the current implementation, the kernel may assign zero, one, or both
+buffers to the user process; however, an earlier implementation maintained
+the invariant that at most one buffer could be assigned to the user process
+at a time.
+In order to both ensure progress and high performance, user processes should
+acknowledge a completely processed buffer as quickly as possible, returning
+it for reuse, and not block waiting on a second buffer while holding another
+buffer.
 .Sh IOCTLS
 The
 .Xr ioctl 2


More information about the p4-projects mailing list