Skip to content

Commit 39ecc01

Browse files
committed
mac80211: pass queue bitmap to flush operation
There are a number of situations in which mac80211 only really needs to flush queues for one virtual interface, and in fact during this frames might be transmitted on other virtual interfaces. Calculate and pass a queue bitmap to the driver so it knows which queues to flush. Signed-off-by: Johannes Berg <johannes.berg@intel.com>
1 parent a0ca796 commit 39ecc01

23 files changed

Lines changed: 67 additions & 34 deletions

File tree

‎drivers/net/wireless/ath/ar5523/ar5523.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1091,7 +1091,7 @@ static int ar5523_set_rts_threshold(struct ieee80211_hw *hw, u32 value)
10911091
return ret;
10921092
}
10931093

1094-
static void ar5523_flush(struct ieee80211_hw *hw, bool drop)
1094+
static void ar5523_flush(struct ieee80211_hw *hw, u32 queues, bool drop)
10951095
{
10961096
struct ar5523 *ar = hw->priv;
10971097

‎drivers/net/wireless/ath/ath9k/main.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1745,7 +1745,7 @@ static void ath9k_set_coverage_class(struct ieee80211_hw *hw, u8 coverage_class)
17451745
mutex_unlock(&sc->mutex);
17461746
}
17471747

1748-
static void ath9k_flush(struct ieee80211_hw *hw, bool drop)
1748+
static void ath9k_flush(struct ieee80211_hw *hw, u32 queues, bool drop)
17491749
{
17501750
struct ath_softc *sc = hw->priv;
17511751
struct ath_hw *ah = sc->sc_ah;

‎drivers/net/wireless/ath/carl9170/main.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1703,7 +1703,7 @@ static int carl9170_op_get_survey(struct ieee80211_hw *hw, int idx,
17031703
return 0;
17041704
}
17051705

1706-
static void carl9170_op_flush(struct ieee80211_hw *hw, bool drop)
1706+
static void carl9170_op_flush(struct ieee80211_hw *hw, u32 queues, bool drop)
17071707
{
17081708
struct ar9170 *ar = hw->priv;
17091709
unsigned int vid;

‎drivers/net/wireless/brcm80211/brcmsmac/mac80211_if.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -723,7 +723,7 @@ static bool brcms_tx_flush_completed(struct brcms_info *wl)
723723
return result;
724724
}
725725

726-
static void brcms_ops_flush(struct ieee80211_hw *hw, bool drop)
726+
static void brcms_ops_flush(struct ieee80211_hw *hw, u32 queues, bool drop)
727727
{
728728
struct brcms_info *wl = hw->priv;
729729
int ret;

‎drivers/net/wireless/iwlegacy/common.c‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4704,8 +4704,7 @@ il_mac_change_interface(struct ieee80211_hw *hw, struct ieee80211_vif *vif,
47044704
}
47054705
EXPORT_SYMBOL(il_mac_change_interface);
47064706

4707-
void
4708-
il_mac_flush(struct ieee80211_hw *hw, bool drop)
4707+
void il_mac_flush(struct ieee80211_hw *hw, u32 queues, bool drop)
47094708
{
47104709
struct il_priv *il = hw->priv;
47114710
unsigned long timeout = jiffies + msecs_to_jiffies(500);

‎drivers/net/wireless/iwlegacy/common.h‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1720,7 +1720,7 @@ void il_mac_remove_interface(struct ieee80211_hw *hw,
17201720
struct ieee80211_vif *vif);
17211721
int il_mac_change_interface(struct ieee80211_hw *hw, struct ieee80211_vif *vif,
17221722
enum nl80211_iftype newtype, bool newp2p);
1723-
void il_mac_flush(struct ieee80211_hw *hw, bool drop);
1723+
void il_mac_flush(struct ieee80211_hw *hw, u32 queues, bool drop);
17241724
int il_alloc_txq_mem(struct il_priv *il);
17251725
void il_free_txq_mem(struct il_priv *il);
17261726

‎drivers/net/wireless/iwlwifi/dvm/mac80211.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1100,7 +1100,7 @@ static void iwlagn_configure_filter(struct ieee80211_hw *hw,
11001100
FIF_BCN_PRBRESP_PROMISC | FIF_CONTROL;
11011101
}
11021102

1103-
static void iwlagn_mac_flush(struct ieee80211_hw *hw, bool drop)
1103+
static void iwlagn_mac_flush(struct ieee80211_hw *hw, u32 queues, bool drop)
11041104
{
11051105
struct iwl_priv *priv = IWL_MAC80211_GET_DVM(hw);
11061106

‎drivers/net/wireless/mac80211_hwsim.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1389,7 +1389,7 @@ static int mac80211_hwsim_ampdu_action(struct ieee80211_hw *hw,
13891389
return 0;
13901390
}
13911391

1392-
static void mac80211_hwsim_flush(struct ieee80211_hw *hw, bool drop)
1392+
static void mac80211_hwsim_flush(struct ieee80211_hw *hw, u32 queues, bool drop)
13931393
{
13941394
/* Not implemented, queues only on kernel side */
13951395
}

‎drivers/net/wireless/p54/main.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -670,7 +670,7 @@ static unsigned int p54_flush_count(struct p54_common *priv)
670670
return total;
671671
}
672672

673-
static void p54_flush(struct ieee80211_hw *dev, bool drop)
673+
static void p54_flush(struct ieee80211_hw *dev, u32 queues, bool drop)
674674
{
675675
struct p54_common *priv = dev->priv;
676676
unsigned int total, i;

‎drivers/net/wireless/rt2x00/rt2x00.h‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1360,7 +1360,7 @@ int rt2x00mac_conf_tx(struct ieee80211_hw *hw,
13601360
struct ieee80211_vif *vif, u16 queue,
13611361
const struct ieee80211_tx_queue_params *params);
13621362
void rt2x00mac_rfkill_poll(struct ieee80211_hw *hw);
1363-
void rt2x00mac_flush(struct ieee80211_hw *hw, bool drop);
1363+
void rt2x00mac_flush(struct ieee80211_hw *hw, u32 queues, bool drop);
13641364
int rt2x00mac_set_antenna(struct ieee80211_hw *hw, u32 tx_ant, u32 rx_ant);
13651365
int rt2x00mac_get_antenna(struct ieee80211_hw *hw, u32 *tx_ant, u32 *rx_ant);
13661366
void rt2x00mac_get_ringparam(struct ieee80211_hw *hw,

0 commit comments

Comments
 (0)