]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
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)
commitd68ab68066805fdfee1f5f29ec2ec0179fd92fe1
tree6f457e23a5b44d759050e0039a68c9f8ce66ff18
parentc342a1b91f6ccd317c68defd3b4c7bb75397d967
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>
drivers/net/wireless/iwlwifi/iwl3945-base.c
drivers/net/wireless/iwlwifi/iwl4965-base.c