Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 7 Feb 2007 16:02:22 GMT
From:      Robert Watson <rwatson@FreeBSD.org>
To:        Perforce Change Reviews <perforce@freebsd.org>
Subject:   PERFORCE change 114178 for review
Message-ID:  <200702071602.l17G2MOf095602@repoman.freebsd.org>

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

Change 114178 by rwatson@rwatson_cinnamon on 2007/02/07 16:01:37

	Rename bpf_ioctl_rotate to bpf_ioctl_rotzbuf in order to match the
	ioctl constant name.
	
	Discussed with:	csjp

Affected files ...

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

Differences ...

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

@@ -336,15 +336,15 @@
 }
 
 static int
-bpf_ioctl_rotate(struct thread *td, struct bpf_d *d, struct bpf_zbuf *bz)
+bpf_ioctl_rotzbuf(struct thread *td, struct bpf_d *d, struct bpf_zbuf *bz)
 {
 
 	if (d->bd_bufmode != BPF_BUFMODE_ZBUF)
 		return (EOPNOTSUPP);
 #ifdef BPF_ZEROCOPY
-	return (bpf_zerocopy_ioctl_rotate(td, d, bz));
+	return (bpf_zerocopy_ioctl_rotzbuf(td, d, bz));
 #else
-	panic("bpf_ioctl_rotate");
+	panic("bpf_ioctl_rotzbuf");
 #endif
 }
 
@@ -1298,7 +1298,7 @@
 		return (bpf_ioctl_setzbuf(td, d, (struct bpf_zbuf *)addr));
 
 	case BIOCROTZBUF:
-		return (bpf_ioctl_rotate(td, d, (struct bpf_zbuf *) addr));
+		return (bpf_ioctl_rotzbuf(td, d, (struct bpf_zbuf *)addr));
 	}
 	return (error);
 }

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

@@ -579,7 +579,7 @@
 }
 
 int
-bpf_zerocopy_ioctl_rotate(struct thread *td, struct bpf_d *d,
+bpf_zerocopy_ioctl_rotzbuf(struct thread *td, struct bpf_d *d,
     struct bpf_zbuf *bz)
 {
 	struct zbuf *bzh;

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

@@ -51,7 +51,7 @@
 	    size_t *i);
 int	bpf_zerocopy_ioctl_getznext(struct thread *td, struct bpf_d *d,
 	    struct bpf_zbuf *bz);
-int	bpf_zerocopy_ioctl_rotate(struct thread *td, struct bpf_d *d,
+int	bpf_zerocopy_ioctl_rotzbuf(struct thread *td, struct bpf_d *d,
 	    struct bpf_zbuf *bz);
 int	bpf_zerocopy_ioctl_setzbuf(struct thread *td, struct bpf_d *d,
 	    struct bpf_zbuf *bz);



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