Skip to contentSkip to conversation

ath6kl: Add rx workqueue for SDIO

PATCH New Raja Mani 1 participant 1 message Mar 25, 2013 Atheros ATH6KL wireless driver

lore
Share & tools
lore

Raja Mani

author
#0 lore raw

PATCH v2 1/1 ath6kl: Add rx workqueue for SDIO

In the current implementation, all RX packets (data and control) are fetched from the chip and processed in ISR handler context. ISR handler has to process fetched packets first before it goes ahead and fetch further packets from the chip. In high throughput scenario, doing everything (read and process) in one context is time consuming and it's not quicker way of reading RX packets from the chip.

This patch lets ISR to read packets (data and control) from the chip and process control packets alone (EP0 pkts). All data packets are moved to another queue which is separately processed by another worker thread. So that, ISR doesn't have to wait to read further packets until fetched data packets are processed. With this change, significant improvement is seen both in TCP (around 10 Mpbs) and UDP (around 5 Mpbs) down-link case.

---

V2 changes :

v2 addresses comments given by Kalle and Adrian Chadd.
* Renamed rx_comp_lock to rx_bufq_lock for consistency.
* Temp list used to avoid constant unlock/relock while processing packets.

In addition, unprocessed packets in target->rx_bufq are freed in cleanup function.

 drivers/net/wireless/ath/ath6kl/htc.h      |    6 +++
 drivers/net/wireless/ath/ath6kl/htc_mbox.c |   66 +++++++++++++++++++++++++++-
 2 files changed, 71 insertions(+), 1 deletions(-)
drivers/net/wireless/ath/ath6kl/htc.h +6 -0
index a2c8ff8..7179fb5 100644
@@ -620,6 +620,12 @@ struct htc_target {
 	/* counts the number of Tx without bundling continously per AC */
 	u32 ac_tx_count[WMM_NUM_AC];
 
+	struct workqueue_struct *rx_wq;
+	struct work_struct rx_work;
+
+	struct list_head rx_bufq;
+	spinlock_t rx_bufq_lock;
+
 	struct {
 		struct htc_packet *htc_packet_pool;
 		u8 ctrl_response_buf[HTC_MAX_CTRL_MSG_LEN];
drivers/net/wireless/ath/ath6kl/htc_mbox.c +65 -1

98 lines not on this page · raw message

Signature · 1 line
1.7.1