Date: Thu, 14 Oct 2010 20:26:19 +0000 (UTC) From: Weongyo Jeong <weongyo@FreeBSD.org> To: src-committers@freebsd.org, svn-src-user@freebsd.org Subject: svn commit: r213850 - user/weongyo/usb/sys/dev/usb Message-ID: <201010142026.o9EKQJYL036010@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: weongyo Date: Thu Oct 14 20:26:19 2010 New Revision: 213850 URL: http://svn.freebsd.org/changeset/base/213850 Log: Uses USB_PAGE_SIZE instead of defining the new one. Modified: user/weongyo/usb/sys/dev/usb/usb_pf.c Modified: user/weongyo/usb/sys/dev/usb/usb_pf.c ============================================================================== --- user/weongyo/usb/sys/dev/usb/usb_pf.c Thu Oct 14 20:18:39 2010 (r213849) +++ user/weongyo/usb/sys/dev/usb/usb_pf.c Thu Oct 14 20:26:19 2010 (r213850) @@ -1694,7 +1694,6 @@ usbpf_tap(struct usbpf_if *uif, u_char * void usbpf_xfertap(struct usb_xfer *xfer, int type) { -#define USBPF_PAGE_SIZE (4 * 1024) struct usb_endpoint *ep = xfer->endpoint; struct usb_page_search res; struct usb_xfer_root *info = xfer->xroot; @@ -1709,13 +1708,13 @@ usbpf_xfertap(struct usb_xfer *xfer, int * really inefficient. Copying usbpf_pkthdr and data is for USB packet * read filter to pass a virtually linear buffer. */ - buf = ptr = malloc(sizeof(struct usbpf_pkthdr) + (USBPF_PAGE_SIZE * 5), + buf = ptr = malloc(sizeof(struct usbpf_pkthdr) + (USB_PAGE_SIZE * 5), M_USBPF, M_NOWAIT); if (buf == NULL) { printf("usbpf_xfertap: out of memory\n"); /* XXX */ return; } - end = buf + sizeof(struct usbpf_pkthdr) + (USBPF_PAGE_SIZE * 5); + end = buf + sizeof(struct usbpf_pkthdr) + (USB_PAGE_SIZE * 5); bzero(ptr, sizeof(struct usbpf_pkthdr)); up = (struct usbpf_pkthdr *)ptr;
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201010142026.o9EKQJYL036010>