Gitweb:     
http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=d68ab68066805fdfee1f5f29ec2ec0179fd92fe1
Commit:     d68ab68066805fdfee1f5f29ec2ec0179fd92fe1
Parent:     c342a1b91f6ccd317c68defd3b4c7bb75397d967
Author:     Mohamed Abbas <[EMAIL PROTECTED]>
AuthorDate: Thu Feb 7 13:16:33 2008 -0800
Committer:  John W. Linville <[EMAIL PROTECTED]>
CommitDate: Fri Feb 15 13:44:18 2008 -0500

    iwlwifi: earlier rx allocation
    
    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 <[EMAIL PROTECTED]>
    Signed-off-by: Reinette Chatre <[EMAIL PROTECTED]>
    Signed-off-by: John W. Linville <[EMAIL PROTECTED]>
---
 drivers/net/wireless/iwlwifi/iwl3945-base.c |    2 +-
 drivers/net/wireless/iwlwifi/iwl4965-base.c |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/net/wireless/iwlwifi/iwl3945-base.c 
b/drivers/net/wireless/iwlwifi/iwl3945-base.c
index 66520e8..74b1099 100644
--- a/drivers/net/wireless/iwlwifi/iwl3945-base.c
+++ b/drivers/net/wireless/iwlwifi/iwl3945-base.c
@@ -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). */
diff --git a/drivers/net/wireless/iwlwifi/iwl4965-base.c 
b/drivers/net/wireless/iwlwifi/iwl4965-base.c
index 855cc97..14a11bd 100644
--- a/drivers/net/wireless/iwlwifi/iwl4965-base.c
+++ b/drivers/net/wireless/iwlwifi/iwl4965-base.c
@@ -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). */
-
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to