PERFORCE change 182636 for review
Hans Petter Selasky
hselasky at FreeBSD.org
Thu Aug 19 23:13:58 UTC 2010
http://p4web.freebsd.org/@@182636?ac=10
Change 182636 by hselasky at hselasky_laptop001 on 2010/08/19 23:13:23
USB network:
- correct maximum RX buffer size.
- correct for execution on ARM (IP-header alignment)
Affected files ...
.. //depot/projects/usb/src/sys/dev/usb/net/if_ipheth.c#4 edit
Differences ...
==== //depot/projects/usb/src/sys/dev/usb/net/if_ipheth.c#4 (text+ko) ====
@@ -96,7 +96,7 @@
.endpoint = UE_ADDR_ANY,
.direction = UE_DIR_RX,
.frames = IPHETH_RX_FRAMES_MAX,
- .bufsize = (IPHETH_RX_FRAMES_MAX * IPHETH_BUF_SIZE),
+ .bufsize = (IPHETH_RX_FRAMES_MAX * MCLBYTES),
.flags = {.short_frames_ok = 1,.short_xfer_ok = 1,.ext_buffer = 1,},
.callback = ipheth_bulk_read_callback,
.timeout = 0, /* no timeout */
@@ -511,6 +511,10 @@
m = uether_newbuf();
if (m == NULL)
goto tr_stall;
+
+ /* cancel alignment for ethernet */
+ m_adj(m, ETHER_ALIGN);
+
sc->sc_rx_buf[x] = m;
} else {
m = sc->sc_rx_buf[x];
More information about the p4-projects
mailing list