Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ccc6bb96 authored by Johannes Berg's avatar Johannes Berg
Browse files

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: default avatarJohannes Berg <johannes.berg@intel.com>
parent 841b351c
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -2771,6 +2771,10 @@ static bool ieee80211_xmit_fast(struct ieee80211_sub_if_data *sdata,
		sdata->sequence_number += 0x10;
	}

	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)];