]> git.baikalelectronics.ru Git - kernel.git/commit
iwlwifi: improve TX cache footprint
authorJohannes Berg <johannes.berg@intel.com>
Mon, 19 Mar 2012 16:12:06 +0000 (17:12 +0100)
committerWey-Yi Guy <wey-yi.w.guy@intel.com>
Wed, 18 Apr 2012 14:32:28 +0000 (07:32 -0700)
commit75de2534957ecda93c894eeb534ce439255423a2
tree7c7e8168f65d4af3bf89617d7727264e81d4fc83
parente22c1414c1c72d4ea7d13efaa1d49aeffc3d2a4a
iwlwifi: improve TX cache footprint

Having cmd[], meta[] and skbs[] as separate arrays
in the TX queue structure is cache inefficient as
we need the data for a given entry together.

To improve this, create an array with these three
members (allocate meta as part of that struct) so
we have the data we need together located together
improving cache footprint.

The downside is that we need to allocate a lot of
memory in one chunk, about 10KiB (on 64-bit) which
isn't very efficient.

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Wey-Yi Guy <wey-yi.w.guy@intel.com>
drivers/net/wireless/iwlwifi/iwl-trans-pcie-int.h
drivers/net/wireless/iwlwifi/iwl-trans-pcie-rx.c
drivers/net/wireless/iwlwifi/iwl-trans-pcie-tx.c
drivers/net/wireless/iwlwifi/iwl-trans-pcie.c