]> git.baikalelectronics.ru Git - kernel.git/commit
iwlwifi: avoid Tx queue memory allocation in interface down
authorZhu Yi <yi.zhu@intel.com>
Tue, 23 Mar 2010 07:45:03 +0000 (00:45 -0700)
committerReinette Chatre <reinette.chatre@intel.com>
Fri, 2 Apr 2010 19:18:26 +0000 (12:18 -0700)
commitc24eddb24bdc5585a1996685155fbbd0d5ea7294
treec7269d53625c58fe69befc61c3c347f7c8faf89c
parentb346405add1e5f416a50178a9e3027640600a3f9
iwlwifi: avoid Tx queue memory allocation in interface down

We used to free all the Tx queues memory when interface is brought
down and reallocate them again in interface up. This requires
order-4 allocation for txq->cmd[]. In situations like s2ram, this
usually leads to allocation failure in the memory subsystem. The
patch fixed this problem by allocating the Tx queues memory only at
the first time. Later iwl_down/iwl_up only initialize but don't
free and reallocate them. The memory is freed at the device removal
time. BTW, we have already done this for the Rx queue.

This fixed bug https://bugzilla.kernel.org/show_bug.cgi?id=15551

Signed-off-by: Zhu Yi <yi.zhu@intel.com>
Acked-by: Wey-Yi Guy <wey-yi.w.guy@intel.com>
Signed-off-by: Reinette Chatre <reinette.chatre@intel.com>
drivers/net/wireless/iwlwifi/iwl-core.c
drivers/net/wireless/iwlwifi/iwl-core.h
drivers/net/wireless/iwlwifi/iwl-tx.c