* [PATCH] mac80211: fix sequence number allocation regression
@ 2016-10-11 9:28 Felix Fietkau
2016-10-11 9:39 ` Toke Høiland-Jørgensen
2016-10-12 6:49 ` Johannes Berg
0 siblings, 2 replies; 4+ messages in thread
From: Felix Fietkau @ 2016-10-11 9:28 UTC (permalink / raw)
To: linux-wireless; +Cc: johannes, toke
The recent commit that moved around TX handlers dropped the sequence
number allocation at the end of ieee80211_tx_dequeue and calls
ieee80211_tx_h_sequence instead (for the non-fast-xmit case).
However, it did not change the fast-xmit sequence allocation condition
in ieee80211_xmit_fast_finish, which skipped seqno alloc if intermediate
tx queues are being used.
Drop the now obsolete condition.
Fixes: bb42f2d13ffc ("mac80211: Move reorder-sensitive TX handlers to after TXQ dequeue")
Signed-off-by: Felix Fietkau <nbd@nbd.name>
---
net/mac80211/tx.c | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/net/mac80211/tx.c b/net/mac80211/tx.c
index dc60784..8ff81fd 100644
--- a/net/mac80211/tx.c
+++ b/net/mac80211/tx.c
@@ -3212,7 +3212,6 @@ static void ieee80211_xmit_fast_finish(struct ieee80211_sub_if_data *sdata,
struct sk_buff *skb)
{
struct ieee80211_tx_info *info = IEEE80211_SKB_CB(skb);
- struct ieee80211_local *local = sdata->local;
struct ieee80211_hdr *hdr = (void *)skb->data;
u8 tid = IEEE80211_NUM_TIDS;
@@ -3224,8 +3223,7 @@ static void ieee80211_xmit_fast_finish(struct ieee80211_sub_if_data *sdata,
if (hdr->frame_control & cpu_to_le16(IEEE80211_STYPE_QOS_DATA)) {
tid = skb->priority & IEEE80211_QOS_CTL_TAG1D_MASK;
*ieee80211_get_qos_ctl(hdr) = tid;
- if (!ieee80211_get_txq(local, &sdata->vif, &sta->sta, skb))
- hdr->seq_ctrl = ieee80211_tx_next_seq(sta, tid);
+ hdr->seq_ctrl = ieee80211_tx_next_seq(sta, tid);
} else {
info->flags |= IEEE80211_TX_CTL_ASSIGN_SEQ;
hdr->seq_ctrl = cpu_to_le16(sdata->sequence_number);
--
2.10.1
^ permalink raw reply related [flat|nested] 4+ messages in thread* Re: [PATCH] mac80211: fix sequence number allocation regression
2016-10-11 9:28 [PATCH] mac80211: fix sequence number allocation regression Felix Fietkau
@ 2016-10-11 9:39 ` Toke Høiland-Jørgensen
2016-10-12 6:49 ` Johannes Berg
1 sibling, 0 replies; 4+ messages in thread
From: Toke Høiland-Jørgensen @ 2016-10-11 9:39 UTC (permalink / raw)
To: Felix Fietkau; +Cc: linux-wireless, johannes
Felix Fietkau <nbd@nbd.name> writes:
> The recent commit that moved around TX handlers dropped the sequence
> number allocation at the end of ieee80211_tx_dequeue and calls
> ieee80211_tx_h_sequence instead (for the non-fast-xmit case).
> However, it did not change the fast-xmit sequence allocation condition
> in ieee80211_xmit_fast_finish, which skipped seqno alloc if intermediate
> tx queues are being used.
>
> Drop the now obsolete condition.
>
> Fixes: bb42f2d13ffc ("mac80211: Move reorder-sensitive TX handlers to aft=
er TXQ dequeue")
> Signed-off-by: Felix Fietkau <nbd@nbd.name>
Acked-by: Toke H=C3=B8iland-J=C3=B8rgensen <toke@toke.dk>
(Think this was introduced in the merging of mac80211-next and net-next?)
-Toke
^ permalink raw reply [flat|nested] 4+ messages in thread* Re: [PATCH] mac80211: fix sequence number allocation regression
2016-10-11 9:28 [PATCH] mac80211: fix sequence number allocation regression Felix Fietkau
2016-10-11 9:39 ` Toke Høiland-Jørgensen
@ 2016-10-12 6:49 ` Johannes Berg
2016-10-12 12:37 ` Bob Copeland
1 sibling, 1 reply; 4+ messages in thread
From: Johannes Berg @ 2016-10-12 6:49 UTC (permalink / raw)
To: Felix Fietkau, linux-wireless
Cc: Toke Høiland-Jørgensen, Bob Copeland
On Tue, 2016-10-11 at 11:28 +0200, Felix Fietkau wrote:
> The recent commit that moved around TX handlers dropped the sequence
> number allocation at the end of ieee80211_tx_dequeue and calls
> ieee80211_tx_h_sequence instead (for the non-fast-xmit case).
> However, it did not change the fast-xmit sequence allocation
> condition
> in ieee80211_xmit_fast_finish, which skipped seqno alloc if
> intermediate
> tx queues are being used.
>
> Drop the now obsolete condition.
Hm. I don't know what tree you're looking at, but it looks like I *did*
in fact resolve this correctly; the (now) erroneous condition doesn't
exist in mac80211 nor in mac80211-next (nor net, net-next, linux).
It does seem to exist in wireless-testing, but that's not something I
can control.
johannes
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] mac80211: fix sequence number allocation regression
2016-10-12 6:49 ` Johannes Berg
@ 2016-10-12 12:37 ` Bob Copeland
0 siblings, 0 replies; 4+ messages in thread
From: Bob Copeland @ 2016-10-12 12:37 UTC (permalink / raw)
To: Johannes Berg
Cc: Felix Fietkau, linux-wireless, Toke Høiland-Jørgensen
On Wed, Oct 12, 2016 at 08:49:45AM +0200, Johannes Berg wrote:
> On Tue, 2016-10-11 at 11:28 +0200, Felix Fietkau wrote:
> > The recent commit that moved around TX handlers dropped the sequence
> > number allocation at the end of ieee80211_tx_dequeue and calls
> > ieee80211_tx_h_sequence instead (for the non-fast-xmit case).
> > However, it did not change the fast-xmit sequence allocation
> > condition
> > in ieee80211_xmit_fast_finish, which skipped seqno alloc if
> > intermediate
> > tx queues are being used.
> >
> > Drop the now obsolete condition.
>
> Hm. I don't know what tree you're looking at, but it looks like I *did*
> in fact resolve this correctly; the (now) erroneous condition doesn't
> exist in mac80211 nor in mac80211-next (nor net, net-next, linux).
>
> It does seem to exist in wireless-testing, but that's not something I
> can control.
Sorry about that, I should've rechecked this after Johannes did the merge.
I applied this patch (to wireless-testing) and pushed tag wt-2016-10-12.
Let me know of any further issues.
As a check I also diffed against mac80211-next/master and found additional
merge damage in the diff which I fixed up. Once the merge window closes
in a few days, I'll resync to the masters of all the trees.
--
Bob Copeland %% http://bobcopeland.com/
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2016-10-12 12:41 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-10-11 9:28 [PATCH] mac80211: fix sequence number allocation regression Felix Fietkau
2016-10-11 9:39 ` Toke Høiland-Jørgensen
2016-10-12 6:49 ` Johannes Berg
2016-10-12 12:37 ` Bob Copeland
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).