PERFORCE change 114169 for review
Robert Watson
rwatson at FreeBSD.org
Wed Feb 7 11:22:34 UTC 2007
http://perforce.freebsd.org/chv.cgi?CH=114169
Change 114169 by rwatson at rwatson_cinnamon on 2007/02/07 11:22:22
Alphabetize.
Affected files ...
.. //depot/projects/zcopybpf/src/sys/net/bpf.c#17 edit
.. //depot/projects/zcopybpf/src/sys/net/bpf_zerocopy.h#6 edit
Differences ...
==== //depot/projects/zcopybpf/src/sys/net/bpf.c#17 (text+ko) ====
@@ -310,41 +310,41 @@
}
static int
-bpf_ioctl_rotate(struct thread *td, struct bpf_d *d, struct bpf_zbuf *bz)
+bpf_ioctl_getznext(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_getznext(td, d, bz));
#else
- panic("bpf_ioctl_rotate");
+ panic("bpf_ioctl_getznext");
#endif
}
static int
-bpf_ioctl_getznext(struct thread *td, struct bpf_d *d, struct bpf_zbuf *bz)
+bpf_ioctl_getzmax(struct thread *td, struct bpf_d *d, size_t *i)
{
if (d->bd_bufmode != BPF_BUFMODE_ZBUF)
return (EOPNOTSUPP);
#ifdef BPF_ZEROCOPY
- return (bpf_zerocopy_ioctl_getznext(td, d, bz));
+ return (bpf_zerocopy_ioctl_getzmax(td, d, i));
#else
- panic("bpf_ioctl_getznext");
+ panic("bpf_ioctl_getzmax");
#endif
}
static int
-bpf_ioctl_getzmax(struct thread *td, struct bpf_d *d, size_t *i)
+bpf_ioctl_rotate(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_getzmax(td, d, i));
+ return (bpf_zerocopy_ioctl_rotate(td, d, bz));
#else
- panic("bpf_ioctl_getzmax");
+ panic("bpf_ioctl_rotate");
#endif
}
==== //depot/projects/zcopybpf/src/sys/net/bpf_zerocopy.h#6 (text+ko) ====
@@ -51,10 +51,10 @@
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,
+ struct bpf_zbuf *bz);
int bpf_zerocopy_ioctl_setzbuf(struct thread *td, struct bpf_d *d,
struct bpf_zbuf *bz);
int bpf_zerocopy_uiomove(struct bpf_d *d, caddr_t buf, u_int len,
struct uio *uio);
-int bpf_zerocopy_ioctl_rotate(struct thread *td, struct bpf_d *d,
- struct bpf_zbuf *bz);
#endif /* !_NET_BPF_ZEROCOPY_H_ */
More information about the p4-projects
mailing list