PERFORCE change 113849 for review

Robert Watson rwatson at FreeBSD.org
Thu Feb 1 17:43:37 UTC 2007


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

Change 113849 by rwatson at rwatson_cinnamon on 2007/02/01 17:42:38

	Assign length field of header before bumping generation number, as
	the generation bump is the handoff and we don't want to be updating
	any fields in the buffer after that.

Affected files ...

.. //depot/projects/zcopybpf/src/sys/net/bpf_zerocopy.c#9 edit

Differences ...

==== //depot/projects/zcopybpf/src/sys/net/bpf_zerocopy.c#9 (text+ko) ====

@@ -372,8 +372,8 @@
 
 	zb = (struct zbuf *)d->bd_hbuf;
 	KASSERT(zb != NULL, ("bpf_zerocopy_bufheld: zb == NULL"));
+	zb->zb_header->bzh_kernel_len = d->bd_hlen;
 	zb->zb_header->bzh_kernel_gen++;
-	zb->zb_header->bzh_kernel_len = d->bd_hlen;
 }
 
 /*


More information about the p4-projects mailing list