From: "Toke Høiland-Jørgensen" <toke@kernel.org>
To: Johannes Berg <johannes@sipsolutions.net>,
Alexander Wetzel <alexander@wetzel-home.de>,
linux-wireless@vger.kernel.org
Subject: Re: [PATCH] wifi: mac80211: Use internal TX queues for all drivers
Date: Wed, 05 Oct 2022 16:43:05 +0200 [thread overview]
Message-ID: <87r0zmgwli.fsf@toke.dk> (raw)
In-Reply-To: <bf6f9d8707021dc6017c7cb17805d63edea63333.camel@sipsolutions.net>
Johannes Berg <johannes@sipsolutions.net> writes:
> On Wed, 2022-10-05 at 14:26 +0200, Toke Høiland-Jørgensen wrote:
>
>> > void ieee80211_handle_wake_tx_queue(struct ieee80211_hw *hw,
>> > struct ieee80211_txq *txq)
>> > {
>> > ... *local = from_hw(hw);
>> > ... *sdata = from_vif(txq->vif);
>> >
>> > wake_tx_push_queue(local, sdata, txq);
>> > }
>> >
>> > Actually ... I wonder why you'd here - in waking a single TXQ - use
>> > ieee80211_next_txq() at all, Toke, what do you think?
>>
>> Well, this patch does almost exactly the same as the ath9k driver does,
>> for instance. Really, the wake_tx_queue() is a signal to the driver to
>> start transmitting on the *hardware* queue that the txq points to. For
>> some drivers (like Intel, right?) that's a 1-to-1 mapping, for others
>> there are multiple TXQs being scheduled on the same HW-TXQ. So I think
>> it's probably the right thing to do to just call next_txq(); if there's
>> only a single TXQ scheduled it should be pretty cheap to do so.
>
> Oh OK. So then the logic Alexander had makes sense.
Yup, I think so :)
>>
>> This logic has implications for putting "urgent" frames (like PS(?)) on
>> TXQs as well, of course, but that needs to be handled somehow anyway...
>
> But that probably then anyway needs to be handled in next_txq()?
Yeah, just meant that comment as an "for future reference", it doesn't
impact this patch series (I think?)
-Toke
next prev parent reply other threads:[~2022-10-05 14:43 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-09-26 16:13 [PATCH] wifi: mac80211: Use internal TX queues for all drivers Alexander Wetzel
2022-09-29 14:23 ` Toke Høiland-Jørgensen
2022-09-30 7:09 ` Alexander Wetzel
2022-09-30 11:06 ` Toke Høiland-Jørgensen
2022-09-29 20:40 ` Johannes Berg
2022-09-30 9:08 ` Alexander Wetzel
2022-09-30 9:41 ` Johannes Berg
2022-10-05 11:39 ` Johannes Berg
2022-10-05 12:26 ` Toke Høiland-Jørgensen
2022-10-05 12:40 ` Johannes Berg
2022-10-05 14:43 ` Toke Høiland-Jørgensen [this message]
2022-10-05 18:10 ` Johannes Berg
2022-10-06 11:43 ` Toke Høiland-Jørgensen
2022-10-06 16:42 ` Alexander Wetzel
2022-10-06 16:06 ` Alexander Wetzel
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87r0zmgwli.fsf@toke.dk \
--to=toke@kernel.org \
--cc=alexander@wetzel-home.de \
--cc=johannes@sipsolutions.net \
--cc=linux-wireless@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).