Commit df9e735b authored by David T. Hollis's avatar David T. Hollis Committed by Greg Kroah-Hartman

[PATCH] USB: ax8817x.c - Fix flags to greatly increase rx performance

The attached patch fixes the flags used on the receive URBs and greatly
increases throughput (especially on EHCI).  On EHCI before the patch,
receives came in around 460KB/s and after I am in the 10-11MB/s range
which is about the same speed I am able to achieve using my Intel nics.
Now transmit is actually the bottleneck on EHCI (only getting around 6MB/s).
parent 27aee7c4
/* /*
* ASIX AX8817x USB 2.0 10/100/HomePNA Ethernet controller driver * ASIX AX8817x USB 2.0 10/100/HomePNA Ethernet controller driver
* *
* $Id: ax8817x.c,v 1.17 2003/07/23 20:46:13 dhollis Exp $ * $Id: ax8817x.c,v 1.18 2003/07/24 11:08:17 dhollis Exp $
* *
* Copyright (c) 2002-2003 TiVo Inc. * Copyright (c) 2002-2003 TiVo Inc.
* *
...@@ -10,6 +10,9 @@ ...@@ -10,6 +10,9 @@
* *
* History * History
* *
* 2003-07-24 - Dave Hollis <dhollis@davehollis.com> 2.0.2
* * Minor fix that greatly increases rx performance
* 2003-07-22 - Dave Hollis <dhollis@davehollis.com> 2.0.1 * 2003-07-22 - Dave Hollis <dhollis@davehollis.com> 2.0.1
* * Add Intellinet USB ids * * Add Intellinet USB ids
* * Fix mii/ethtool support - link check works! * * Fix mii/ethtool support - link check works!
...@@ -75,7 +78,7 @@ ...@@ -75,7 +78,7 @@
#include <linux/version.h> #include <linux/version.h>
/* Version Information */ /* Version Information */
#define DRIVER_VERSION "v2.0.1" #define DRIVER_VERSION "v2.0.2"
#define DRIVER_AUTHOR "TiVo, Inc." #define DRIVER_AUTHOR "TiVo, Inc."
#define DRIVER_DESC "ASIX AX8817x USB Ethernet driver" #define DRIVER_DESC "ASIX AX8817x USB Ethernet driver"
#define DRIVER_NAME "ax8817x" #define DRIVER_NAME "ax8817x"
...@@ -758,7 +761,7 @@ static int ax8817x_open(struct net_device *net) ...@@ -758,7 +761,7 @@ static int ax8817x_open(struct net_device *net)
break; break;
} }
if (n_rx_urbs > 1) { if (n_rx_urbs > 1) {
urb->transfer_flags |= URB_NO_INTERRUPT; /* FIXME: Was USB_QUEUE_BULK */ urb->transfer_flags |= URB_ZERO_PACKET;
} }
} }
ret = ax_refill_rx_urb(ax_info, urb); ret = ax_refill_rx_urb(ax_info, urb);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment