mirror of
https://github.com/fail0verflow/switch-linux.git
synced 2025-05-04 02:34:21 -04:00
mac80211: account TX MSDUs properly with segmentation offload
If an SKB will be segmented by the driver, count it for multiple MSDUs that are being transmitted rather than just a single. Signed-off-by: Johannes Berg <johannes.berg@intel.com>
This commit is contained in:
parent
841b351cf9
commit
ccc6bb96ff
1 changed files with 5 additions and 1 deletions
|
@ -2771,7 +2771,11 @@ static bool ieee80211_xmit_fast(struct ieee80211_sub_if_data *sdata,
|
||||||
sdata->sequence_number += 0x10;
|
sdata->sequence_number += 0x10;
|
||||||
}
|
}
|
||||||
|
|
||||||
sta->tx_msdu[tid]++;
|
if (skb_shinfo(skb)->gso_size)
|
||||||
|
sta->tx_msdu[tid] +=
|
||||||
|
DIV_ROUND_UP(skb->len, skb_shinfo(skb)->gso_size);
|
||||||
|
else
|
||||||
|
sta->tx_msdu[tid]++;
|
||||||
|
|
||||||
info->hw_queue = sdata->vif.hw_queue[skb_get_queue_mapping(skb)];
|
info->hw_queue = sdata->vif.hw_queue[skb_get_queue_mapping(skb)];
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue