PERFORCE change 113736 for review
Robert Watson
rwatson at FreeBSD.org
Tue Jan 30 22:59:00 UTC 2007
http://perforce.freebsd.org/chv.cgi?CH=113736
Change 113736 by rwatson at rwatson_peppercorn on 2007/01/30 22:58:27
Cause BIOCGETZNEXT to return the amount of data in the current
hold buffer, rather than the size of the buffer.
Suggested by: csjp
Affected files ...
.. //depot/projects/zcopybpf/src/sys/net/bpf_zerocopy.c#3 edit
Differences ...
==== //depot/projects/zcopybpf/src/sys/net/bpf_zerocopy.c#3 (text+ko) ====
@@ -501,7 +501,7 @@
if (d->bd_hbuf != NULL) {
zb = (struct zbuf *)d->bd_hbuf;
bz->bz_bufa = (void *)zb->zb_uaddr;
- bz->bz_buflen = zb->zb_size;
+ bz->bz_buflen = d->bd_hlen;
}
BPFD_UNLOCK(d);
return (0);
More information about the p4-projects
mailing list