diff options
author | Mohamed Abbas <mabbas@linux.intel.com> | 2008-02-07 16:16:33 -0500 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2008-02-15 13:44:18 -0500 |
commit | d68ab68066805fdfee1f5f29ec2ec0179fd92fe1 (patch) | |
tree | 6f457e23a5b44d759050e0039a68c9f8ce66ff18 /drivers/net | |
parent | c342a1b91f6ccd317c68defd3b4c7bb75397d967 (diff) |
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 <mabbas@linux.intel.com>
Signed-off-by: Reinette Chatre <reinette.chatre@intel.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net')
-rw-r--r-- | drivers/net/wireless/iwlwifi/iwl3945-base.c | 2 | ||||
-rw-r--r-- | 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 66520e85e79c..74b1099ff8aa 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) | |||
4287 | int reclaim; | 4287 | int reclaim; |
4288 | unsigned long flags; | 4288 | unsigned long flags; |
4289 | u8 fill_rx = 0; | 4289 | u8 fill_rx = 0; |
4290 | u32 count = 0; | 4290 | u32 count = 8; |
4291 | 4291 | ||
4292 | /* uCode's read index (stored in shared DRAM) indicates the last Rx | 4292 | /* uCode's read index (stored in shared DRAM) indicates the last Rx |
4293 | * buffer that the driver may process (last buffer filled by ucode). */ | 4293 | * 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 855cc97d04a8..14a11bd83e82 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) | |||
4669 | int reclaim; | 4669 | int reclaim; |
4670 | unsigned long flags; | 4670 | unsigned long flags; |
4671 | u8 fill_rx = 0; | 4671 | u8 fill_rx = 0; |
4672 | u32 count = 0; | 4672 | u32 count = 8; |
4673 | 4673 | ||
4674 | /* uCode's read index (stored in shared DRAM) indicates the last Rx | 4674 | /* uCode's read index (stored in shared DRAM) indicates the last Rx |
4675 | * buffer that the driver may process (last buffer filled by ucode). */ | 4675 | * buffer that the driver may process (last buffer filled by ucode). */ |