* [PATCH] Increased frame size to maximize throughput
@ 2009-05-15 18:05 balaji
0 siblings, 0 replies; only message in thread
From: balaji @ 2009-05-15 18:05 UTC (permalink / raw)
To: marcel; +Cc: linux-bluetooth, Vikram Kandukuri
This patch increases the receive buf size to
HCI_MAX_FRAME_SIZE which improves the rx
throughput considerably.
Signed-off-by: Vikram Kandukuri <vkandukuri@atheros.com>
---
drivers/bluetooth/btusb.c | 4 +---
1 files changed, 1 insertions(+), 3 deletions(-)
diff --git a/drivers/bluetooth/btusb.c b/drivers/bluetooth/btusb.c
index e70c57e..124db8c 100644
--- a/drivers/bluetooth/btusb.c
+++ b/drivers/bluetooth/btusb.c
@@ -301,7 +301,7 @@ static int btusb_submit_bulk_urb(struct hci_dev *hdev, gfp_t mem_flags)
struct urb *urb;
unsigned char *buf;
unsigned int pipe;
- int err, size;
+ int err, size = HCI_MAX_FRAME_SIZE;
BT_DBG("%s", hdev->name);
@@ -312,8 +312,6 @@ static int btusb_submit_bulk_urb(struct hci_dev *hdev, gfp_t mem_flags)
if (!urb)
return -ENOMEM;
- size = le16_to_cpu(data->bulk_rx_ep->wMaxPacketSize);
-
buf = kmalloc(size, mem_flags);
if (!buf) {
usb_free_urb(urb);
--
1.5.4.3
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2009-05-15 18:05 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-05-15 18:05 [PATCH] Increased frame size to maximize throughput balaji
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox