]> asedeno.scripts.mit.edu Git - linux.git/commit
iwlwifi: pcie: move page tracking into get_page_hdr()
authorJohannes Berg <johannes.berg@intel.com>
Tue, 12 Nov 2019 14:18:16 +0000 (15:18 +0100)
committerLuca Coelho <luciano.coelho@intel.com>
Fri, 20 Dec 2019 11:35:42 +0000 (13:35 +0200)
commit7b02bf6194887eab2f8912f7284a9e407329a255
treeb91aaf5ca45424c3c5d0c880618019389c9c114e
parent160bab43419ebca9ee57219b2ccf02f0fa2c59e8
iwlwifi: pcie: move page tracking into get_page_hdr()

Move the tracking that records the page in the SKB for later
free (refcount decrement) into the get_page_hdr() function
for better code reuse.

While at it, also add an assertion that this doesn't overwrite
any existing page pointer in the skb.

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Luca Coelho <luciano.coelho@intel.com>
drivers/net/wireless/intel/iwlwifi/pcie/internal.h
drivers/net/wireless/intel/iwlwifi/pcie/tx-gen2.c
drivers/net/wireless/intel/iwlwifi/pcie/tx.c