From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:60857) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1S5GYw-0005cs-MR for qemu-devel@nongnu.org; Wed, 07 Mar 2012 08:06:00 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1S5GYb-0008GM-E1 for qemu-devel@nongnu.org; Wed, 07 Mar 2012 08:05:50 -0500 Received: from mx1.redhat.com ([209.132.183.28]:14317) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1S5GYb-0008FF-6P for qemu-devel@nongnu.org; Wed, 07 Mar 2012 08:05:29 -0500 Received: from int-mx01.intmail.prod.int.phx2.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id q27D5RT9006892 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Wed, 7 Mar 2012 08:05:27 -0500 From: Gerd Hoffmann Date: Wed, 7 Mar 2012 14:05:17 +0100 Message-Id: <1331125520-13467-18-git-send-email-kraxel@redhat.com> In-Reply-To: <1331125520-13467-1-git-send-email-kraxel@redhat.com> References: <1331125520-13467-1-git-send-email-kraxel@redhat.com> Subject: [Qemu-devel] [PATCH 17/20] usb-host: enable pipelineing for bulk endpoints. List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Gerd Hoffmann We really don't want to wait for packets finish before submitting the next, we want keep the data flow running. Signed-off-by: Gerd Hoffmann --- usb-linux.c | 3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) diff --git a/usb-linux.c b/usb-linux.c index 050ea7a..90919c2 100644 --- a/usb-linux.c +++ b/usb-linux.c @@ -1192,6 +1192,9 @@ static int usb_linux_update_endp_table(USBHostDevice *s) USB_ENDPOINT_XFER_INVALID); usb_ep_set_type(&s->dev, pid, ep, type); usb_ep_set_ifnum(&s->dev, pid, ep, interface); + if (type == USB_ENDPOINT_XFER_BULK) { + usb_ep_set_pipeline(&s->dev, pid, ep, true); + } epd = get_endp(s, pid, ep); epd->halted = 0; -- 1.7.1