diff options
author | Toke Høiland-Jørgensen <toke@toke.dk> | 2016-09-22 19:04:20 +0200 |
---|---|---|
committer | Johannes Berg <johannes.berg@intel.com> | 2016-09-30 14:46:57 +0200 |
commit | bb42f2d13ffcd0baed7547b37d05add51fcd50e1 (patch) | |
tree | e2472cae73b2ad804612bd7da861bc55f043ac0f /drivers/irqchip/irq-vic.c | |
parent | mac80211: mesh: decrease max drift (diff) | |
download | linux-bb42f2d13ffcd0baed7547b37d05add51fcd50e1.tar.xz linux-bb42f2d13ffcd0baed7547b37d05add51fcd50e1.zip |
mac80211: Move reorder-sensitive TX handlers to after TXQ dequeue
The TXQ intermediate queues can cause packet reordering when more than
one flow is active to a single station. Since some of the wifi-specific
packet handling (notably sequence number and encryption handling) is
sensitive to re-ordering, things break if they are applied before the
TXQ.
This splits up the TX handlers and fast_xmit logic into two parts: An
early part and a late part. The former is applied before TXQ enqueue,
and the latter after dequeue. The non-TXQ path just applies both parts
at once.
Because fragments shouldn't be split up or reordered, the fragmentation
handler is run after dequeue. Any fragments are then kept in the TXQ and
on subsequent dequeues they take precedence over dequeueing from the FQ
structure.
This approach avoids having to scatter special cases all over the place
for when TXQ is enabled, at the cost of making the fast_xmit and TX
handler code slightly more complex.
Signed-off-by: Toke Høiland-Jørgensen <toke@toke.dk>
[fix a few code-style nits, make ieee80211_xmit_fast_finish void,
remove a useless txq->sta check]
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to 'drivers/irqchip/irq-vic.c')
0 files changed, 0 insertions, 0 deletions