wlcore: consider dummy packets when tx queues are empty
authorArik Nemtsov <arik@wizery.com>
Tue, 12 Mar 2013 15:19:46 +0000 (17:19 +0200)
committerLuciano Coelho <coelho@ti.com>
Mon, 25 Mar 2013 10:33:13 +0000 (12:33 +0200)
Don't ignore dummy packets when our queues are empty. This causes dummy
packets never to be sent when traffic is not suspended by FW thresholds,
which happens only in high Tx throughput situations. This may hurt Rx
performance.

Signed-off-by: Arik Nemtsov <arik@wizery.com>
Signed-off-by: Luciano Coelho <coelho@ti.com>
drivers/net/wireless/ti/wlcore/tx.c

index 85003c063b956964391af02bc7a106140806fc42..004d02e71f01a25eb3abf9496fa752f79af3df7d 100644 (file)
@@ -644,6 +644,7 @@ next:
 
        }
 
+out:
        if (!skb &&
            test_and_clear_bit(WL1271_FLAG_DUMMY_PACKET_PENDING, &wl->flags)) {
                int q;
@@ -657,7 +658,6 @@ next:
                spin_unlock_irqrestore(&wl->wl_lock, flags);
        }
 
-out:
        return skb;
 }