[email protected]
[Top] [All Lists]

PERFORCE change 114178 for review

Subject: PERFORCE change 114178 for review
From: Robert Watson
Date: Wed, 7 Feb 2007 16:02:22 GMT
http://perforce.freebsd.org/chv.cgi?CH=114178

Change 114178 by [email protected]_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);
_______________________________________________
[email protected] mailing list
http://lists.freebsd.org/mailman/listinfo/p4-projects
To unsubscribe, send any mail to "[email protected]"

<Prev in Thread] Current Thread [Next in Thread>
  • PERFORCE change 114178 for review, Robert Watson <=