Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 30 Jan 2007 22:58:59 GMT
From:      Robert Watson <rwatson@FreeBSD.org>
To:        Perforce Change Reviews <perforce@freebsd.org>
Subject:   PERFORCE change 113736 for review
Message-ID:  <200701302258.l0UMwxBp078093@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=113736

Change 113736 by rwatson@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);



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200701302258.l0UMwxBp078093>