Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 7 Feb 2007 00:39:55 GMT
From:      "Christian S.J. Peron" <csjp@FreeBSD.org>
To:        Perforce Change Reviews <perforce@freebsd.org>
Subject:   PERFORCE change 114135 for review
Message-ID:  <200702070039.l170dtfn012158@repoman.freebsd.org>

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

Change 114135 by csjp@csjp_rnd01 on 2007/02/07 00:39:25

	Clean up some additions I made to the zbuf header structure that
	accidently made it in my last submit.

Affected files ...

.. //depot/projects/zcopybpf/src/sys/net/bpf.h#8 edit
.. //depot/projects/zcopybpf/src/sys/net/bpf_zerocopy.c#13 edit

Differences ...

==== //depot/projects/zcopybpf/src/sys/net/bpf.h#8 (text+ko) ====

@@ -186,10 +186,7 @@
 	volatile u_int	bzh_kernel_gen;	/* Kernel generation number. */
 	volatile u_int	bzh_kernel_len;	/* Length of buffer. */
 	volatile u_int	bzh_user_gen;	/* User generation number. */
-	void	*bzh_hbuf;
-	void	*bzh_fbuf;
-	void	*bzh_sbuf;
-	u_char	_bzh_pad[28];
+	u_char	_bzh_pad[5];
 };
 
 /*

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

@@ -374,9 +374,6 @@
 	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_hbuf = d->bd_hbuf;
-	zb->zb_header->bzh_fbuf = d->bd_fbuf;
-	zb->zb_header->bzh_sbuf = d->bd_sbuf;
 }
 
 /*



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