diff options
author | Johannes Berg <johannes.berg@intel.com> | 2012-10-19 12:24:43 (GMT) |
---|---|---|
committer | Johannes Berg <johannes.berg@intel.com> | 2012-10-29 10:27:05 (GMT) |
commit | f4feb8ac6e666d2ca37cf722166bbfadf2c6adf8 (patch) | |
tree | 950d1e7ab7ef3098f41b095f4e59d65520c6aeea /drivers/net/wireless/iwlwifi/pcie/internal.h | |
parent | 86052a77067df53ad48800e74984f84806baddbd (diff) | |
download | linux-fsl-qoriq-f4feb8ac6e666d2ca37cf722166bbfadf2c6adf8.tar.xz |
iwlwifi: support host command with copied data
In addition to the NOCOPY flag, add a DUP flag that
tells the transport to kmemdup() the buffer and free
it after the command completes.
Currently this is only supported for a single buffer
in a given command, but that could be extended if it
should be needed.
Reviewed-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to 'drivers/net/wireless/iwlwifi/pcie/internal.h')
-rw-r--r-- | drivers/net/wireless/iwlwifi/pcie/internal.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/net/wireless/iwlwifi/pcie/internal.h b/drivers/net/wireless/iwlwifi/pcie/internal.h index 6ce58f0..ae0f87e 100644 --- a/drivers/net/wireless/iwlwifi/pcie/internal.h +++ b/drivers/net/wireless/iwlwifi/pcie/internal.h @@ -186,6 +186,8 @@ struct iwl_pcie_tx_queue_entry { struct iwl_device_cmd *cmd; struct iwl_device_cmd *copy_cmd; struct sk_buff *skb; + /* buffer to free after command completes */ + const void *free_buf; struct iwl_cmd_meta meta; }; |