mwifiex: reduce cloned skb queue size
authorAmitkumar Karwar <akarwar@marvell.com>
Thu, 31 Dec 2015 14:24:15 +0000 (06:24 -0800)
committerKalle Valo <kvalo@codeaurora.org>
Thu, 7 Jan 2016 09:14:06 +0000 (11:14 +0200)
Driver supports Tx status ack feature. When hostapd/
wpa_supplicant asks for ack status of an EAPOL/ACTION
frame, driver maintains a cloned skb for the packet
until TX_STATUS event is received from firmware.

Cloned skb queue gets flushed when connection is terminated
or driver is unloaded.

Let's reduce the queue size to avoid unnecessarily
keeping memory allocated when environment is busy.

Signed-off-by: Amitkumar Karwar <akarwar@marvell.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
drivers/net/wireless/marvell/mwifiex/main.c

index 969ca1e1f3e9f805d26edd3ed9f6ea8d839fc9b7..79c16de8743e1945262f49aa82ec18f9022a2d2f 100644 (file)
@@ -763,7 +763,7 @@ mwifiex_clone_skb_for_tx_status(struct mwifiex_private *priv,
 
                spin_lock_irqsave(&priv->ack_status_lock, flags);
                id = idr_alloc(&priv->ack_status_frames, orig_skb,
-                              1, 0xff, GFP_ATOMIC);
+                              1, 0x10, GFP_ATOMIC);
                spin_unlock_irqrestore(&priv->ack_status_lock, flags);
 
                if (id >= 0) {