PERFORCE change 137401 for review
Robert Watson
rwatson at FreeBSD.org
Tue Mar 11 14:46:38 UTC 2008
http://perforce.freebsd.org/chv.cgi?CH=137401
Change 137401 by rwatson at rwatson_cinnamon on 2008/03/11 14:46:03
Minor style tweaks.
Affected files ...
.. //depot/projects/zcopybpf/src/sys/net/bpf_zerocopy.c#33 edit
Differences ...
==== //depot/projects/zcopybpf/src/sys/net/bpf_zerocopy.c#33 (text+ko) ====
@@ -186,15 +186,21 @@
*zbp = NULL;
- /* User address must be page-aligned. */
+ /*
+ * User address must be page-aligned.
+ */
if (uaddr & PAGE_MASK)
return (EINVAL);
- /* Length must be an integer number of full pages. */
+ /*
+ * Length must be an integer number of full pages.
+ */
if (len & PAGE_MASK)
return (EINVAL);
- /* Length must not exceed per-buffer resource limit. */
+ /*
+ * Length must not exceed per-buffer resource limit.
+ */
if ((len / PAGE_SIZE) > BPF_MAX_PAGES)
return (EINVAL);
@@ -470,7 +476,6 @@
&zba);
if (error)
return (error);
-
error = zbuf_setup(td, (vm_offset_t)bz->bz_bufb, bz->bz_buflen,
&zbb);
if (error) {
More information about the p4-projects
mailing list