From: "Arend van Spriel" <arend@broadcom.com>
To: "Johannes Berg" <johannes@sipsolutions.net>
Cc: "linux-wireless@vger.kernel.org" <linux-wireless@vger.kernel.org>,
"John W. Linville" <linville@tuxdriver.com>
Subject: Re: rework on .flush() callback
Date: Fri, 16 Nov 2012 18:08:24 +0100 [thread overview]
Message-ID: <50A67308.8020709@broadcom.com> (raw)
In-Reply-To: <1353072892.9490.12.camel@jlt4.sipsolutions.net>
On 11/16/2012 02:34 PM, Johannes Berg wrote:
>> The problem here is that in brcmsmac the flush does the
>> >ieee80211_wake_queues() call, because that could also wakeup the netif
>> >queues. So doing it in the driver seems a bad idea. Any suggestion on
>> >how to solve this?
> Yeah so .. I actually thought about this at some point, it's tricky. For
> the global queues we check what reasons we had for stopping them, but we
> don't do that for the netif queues. Maybe we should? I also think flush
> should at least have the option to be per queue, so that we could do
> something per sdata in mac80211 if the driver uses different HW queues
> for different interfaces.
To me so from driver perspective, it was not clear what
ieee80211_stop/wake_queues was operating on. Somehow the knowledge that
the netif queues are already stopped upon calling
ieee80211_stop_queues() should be retained.
Regarding the flush do you mean flush per queue or flush per vif? Per
vif could have its perks, I guess.
> However, I'm not sure I'll have time to work on corner cases with
> software scanning since we don't use that. I might work on the flush
> thing though, that could be interesting.
ok. The drv_flush() call is done in several places so not only scanning.
All with the drop flag set to false. Is that just to be prepared or do
you foresee an actual use-case?
Gr. AvS
next prev parent reply other threads:[~2012-11-16 17:08 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-11-15 12:47 rework on .flush() callback Arend van Spriel
2012-11-16 13:34 ` Johannes Berg
2012-11-16 17:08 ` Arend van Spriel [this message]
2012-11-19 14:52 ` Johannes Berg
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=50A67308.8020709@broadcom.com \
--to=arend@broadcom.com \
--cc=johannes@sipsolutions.net \
--cc=linux-wireless@vger.kernel.org \
--cc=linville@tuxdriver.com \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.