usbnet.c (bc0868c62bb13834b20a864f684cced1f84a2412) | usbnet.c (ea0798423c60a1d34c75e5fedae009aee0a8de5f) |
---|---|
1/* 2 * USB Network driver infrastructure 3 * Copyright (C) 2000-2005 by David Brownell 4 * Copyright (C) 2003-2005 David Hollis <dhollis@davehollis.com> 5 * 6 * This program is free software; you can redistribute it and/or modify 7 * it under the terms of the GNU General Public License as published by 8 * the Free Software Foundation; either version 2 of the License, or --- 342 unchanged lines hidden (view full) --- 351 enum usb_device_speed speed = dev->udev->speed; 352 353 switch (speed) { 354 case USB_SPEED_HIGH: 355 dev->rx_qlen = MAX_QUEUE_MEMORY / dev->rx_urb_size; 356 dev->tx_qlen = MAX_QUEUE_MEMORY / dev->hard_mtu; 357 break; 358 case USB_SPEED_SUPER: | 1/* 2 * USB Network driver infrastructure 3 * Copyright (C) 2000-2005 by David Brownell 4 * Copyright (C) 2003-2005 David Hollis <dhollis@davehollis.com> 5 * 6 * This program is free software; you can redistribute it and/or modify 7 * it under the terms of the GNU General Public License as published by 8 * the Free Software Foundation; either version 2 of the License, or --- 342 unchanged lines hidden (view full) --- 351 enum usb_device_speed speed = dev->udev->speed; 352 353 switch (speed) { 354 case USB_SPEED_HIGH: 355 dev->rx_qlen = MAX_QUEUE_MEMORY / dev->rx_urb_size; 356 dev->tx_qlen = MAX_QUEUE_MEMORY / dev->hard_mtu; 357 break; 358 case USB_SPEED_SUPER: |
359 case USB_SPEED_SUPER_PLUS: |
|
359 /* 360 * Not take default 5ms qlen for super speed HC to 361 * save memory, and iperf tests show 2.5ms qlen can 362 * work well 363 */ 364 dev->rx_qlen = 5 * MAX_QUEUE_MEMORY / dev->rx_urb_size; 365 dev->tx_qlen = 5 * MAX_QUEUE_MEMORY / dev->hard_mtu; 366 break; --- 1901 unchanged lines hidden --- | 360 /* 361 * Not take default 5ms qlen for super speed HC to 362 * save memory, and iperf tests show 2.5ms qlen can 363 * work well 364 */ 365 dev->rx_qlen = 5 * MAX_QUEUE_MEMORY / dev->rx_urb_size; 366 dev->tx_qlen = 5 * MAX_QUEUE_MEMORY / dev->hard_mtu; 367 break; --- 1901 unchanged lines hidden --- |