summaryrefslogtreecommitdiff
path: root/sys/dev/usb
diff options
context:
space:
mode:
authorDamien Bergamini <damien@cvs.openbsd.org>2006-12-04 17:12:08 +0000
committerDamien Bergamini <damien@cvs.openbsd.org>2006-12-04 17:12:08 +0000
commit1ceb2cccbea2222987698b90db98e6dda0fadd34 (patch)
tree566c192253eab708fa38437a4c71de454fcbc7b3 /sys/dev/usb
parent7804535ec807fed790a0d4273b16d87dabd60294 (diff)
avoid unnecessary copies (memcpy(x, x, n)) in the TX path.
"works fine, even under high load" reyk@
Diffstat (limited to 'sys/dev/usb')
-rw-r--r--sys/dev/usb/if_axe.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/dev/usb/if_axe.c b/sys/dev/usb/if_axe.c
index d91151e9d71..680b0695925 100644
--- a/sys/dev/usb/if_axe.c
+++ b/sys/dev/usb/if_axe.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_axe.c,v 1.55 2006/10/03 19:46:08 damien Exp $ */
+/* $OpenBSD: if_axe.c,v 1.56 2006/12/04 17:12:07 damien Exp $ */
/*
* Copyright (c) 1997, 1998, 1999, 2000-2003
@@ -1135,8 +1135,8 @@ axe_encap(struct axe_softc *sc, struct mbuf *m, int idx)
c->axe_mbuf = m;
usbd_setup_xfer(c->axe_xfer, sc->axe_ep[AXE_ENDPT_TX],
- c, c->axe_buf, length, USBD_FORCE_SHORT_XFER, 10000,
- axe_txeof);
+ c, c->axe_buf, length, USBD_FORCE_SHORT_XFER | USBD_NO_COPY,
+ 10000, axe_txeof);
/* Transmit */
err = usbd_transfer(c->axe_xfer);