]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commitdiff
iwlwifi: earlier rx allocation
authorMohamed Abbas <mabbas@linux.intel.com>
Thu, 7 Feb 2008 21:16:33 +0000 (13:16 -0800)
committerJohn W. Linville <linville@tuxdriver.com>
Fri, 15 Feb 2008 18:44:18 +0000 (13:44 -0500)
Value of count is used to decide when to replenish rx buffers. If it is
equal or above 8 we replenish the buffers. Ensure there is no starvation
by initializing count to 8 - thus forcing replenish at first iteration.

This is helpful when rx receives batches of buffers smaller than 8.

Signed-off-by: Mohamed Abbas <mabbas@linux.intel.com>
Signed-off-by: Reinette Chatre <reinette.chatre@intel.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/iwlwifi/iwl3945-base.c
drivers/net/wireless/iwlwifi/iwl4965-base.c

index 66520e85e79cbc95c91f80c28c276309361666e5..74b1099ff8aa27506aec01d3f97f0b6ad5832088 100644 (file)
@@ -4287,7 +4287,7 @@ static void iwl3945_rx_handle(struct iwl3945_priv *priv)
        int reclaim;
        unsigned long flags;
        u8 fill_rx = 0;
-       u32 count = 0;
+       u32 count = 8;
 
        /* uCode's read index (stored in shared DRAM) indicates the last Rx
         * buffer that the driver may process (last buffer filled by ucode). */
index 855cc97d04a843f5a73bee2de53dbe164ca0341a..14a11bd83e8262ac161a06ae861cae151708bb11 100644 (file)
@@ -4669,7 +4669,7 @@ static void iwl4965_rx_handle(struct iwl4965_priv *priv)
        int reclaim;
        unsigned long flags;
        u8 fill_rx = 0;
-       u32 count = 0;
+       u32 count = 8;
 
        /* uCode's read index (stored in shared DRAM) indicates the last Rx
         * buffer that the driver may process (last buffer filled by ucode). */