* [PATCH 1/1] mac80211: tear down all agg queues when restart/reconfig hw
@ 2010-02-03 0:52 wey-yi.w.guy
2010-02-03 1:09 ` Christian Lamparter
0 siblings, 1 reply; 3+ messages in thread
From: wey-yi.w.guy @ 2010-02-03 0:52 UTC (permalink / raw)
To: johannes; +Cc: linux-wireless, Wey-Yi Guy
From: Wey-Yi Guy <wey-yi.w.guy@intel.com>
When there is a need to restart/reconfig hw, tear down all the
aggregation queues and let the mac80211 and driver get in-sync and have
the opportunity to re-establish the aggregation queues.
Signed-off-by: Wey-Yi Guy <wey-yi.w.guy@intel.com>
---
net/mac80211/util.c | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
diff --git a/net/mac80211/util.c b/net/mac80211/util.c
index ca170b4..6116ad0 100644
--- a/net/mac80211/util.c
+++ b/net/mac80211/util.c
@@ -1188,6 +1188,11 @@ int ieee80211_reconfig(struct ieee80211_local *local)
ieee80211_wake_queues_by_reason(hw,
IEEE80211_QUEUE_STOP_REASON_SUSPEND);
+ if (hw->flags & IEEE80211_HW_AMPDU_AGGREGATION) {
+ list_for_each_entry_rcu(sta, &local->sta_list, list) {
+ ieee80211_sta_tear_down_BA_sessions(sta);
+ }
+ }
/*
* If this is for hw restart things are still running.
* We may want to change that later, however.
--
1.5.6.3
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH 1/1] mac80211: tear down all agg queues when restart/reconfig hw
2010-02-03 0:52 [PATCH 1/1] mac80211: tear down all agg queues when restart/reconfig hw wey-yi.w.guy
@ 2010-02-03 1:09 ` Christian Lamparter
2010-02-03 1:11 ` Guy, Wey-Yi
0 siblings, 1 reply; 3+ messages in thread
From: Christian Lamparter @ 2010-02-03 1:09 UTC (permalink / raw)
To: wey-yi.w.guy; +Cc: johannes, linux-wireless
On Wednesday 03 February 2010 01:52:50 wey-yi.w.guy@intel.com wrote:
> From: Wey-Yi Guy <wey-yi.w.guy@intel.com>
>
> When there is a need to restart/reconfig hw, tear down all the
> aggregation queues and let the mac80211 and driver get in-sync and have
> the opportunity to re-establish the aggregation queues.
>
> Signed-off-by: Wey-Yi Guy <wey-yi.w.guy@intel.com>
> ---
> net/mac80211/util.c | 5 +++++
> 1 files changed, 5 insertions(+), 0 deletions(-)
>
> diff --git a/net/mac80211/util.c b/net/mac80211/util.c
> index ca170b4..6116ad0 100644
> --- a/net/mac80211/util.c
> +++ b/net/mac80211/util.c
> @@ -1188,6 +1188,11 @@ int ieee80211_reconfig(struct ieee80211_local *local)
> ieee80211_wake_queues_by_reason(hw,
> IEEE80211_QUEUE_STOP_REASON_SUSPEND);
>
> + if (hw->flags & IEEE80211_HW_AMPDU_AGGREGATION) {
> + list_for_each_entry_rcu(sta, &local->sta_list, list) {
> + ieee80211_sta_tear_down_BA_sessions(sta);
> + }
> + }
hmm, I somehow miss the rcu_read_lock(); and rcu_read_unlock(); around
list_for_each_entry_rcu... Are you really sure that you don't need
them?
Regards,
Chr
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH 1/1] mac80211: tear down all agg queues when restart/reconfig hw
2010-02-03 1:09 ` Christian Lamparter
@ 2010-02-03 1:11 ` Guy, Wey-Yi
0 siblings, 0 replies; 3+ messages in thread
From: Guy, Wey-Yi @ 2010-02-03 1:11 UTC (permalink / raw)
To: Christian Lamparter
Cc: johannes@sipsolutions.net, linux-wireless@vger.kernel.org
Good point, thanks
On Tue, 2010-02-02 at 17:09 -0800, Christian Lamparter wrote:
> On Wednesday 03 February 2010 01:52:50 wey-yi.w.guy@intel.com wrote:
> > From: Wey-Yi Guy <wey-yi.w.guy@intel.com>
> >
> > When there is a need to restart/reconfig hw, tear down all the
> > aggregation queues and let the mac80211 and driver get in-sync and have
> > the opportunity to re-establish the aggregation queues.
> >
> > Signed-off-by: Wey-Yi Guy <wey-yi.w.guy@intel.com>
> > ---
> > net/mac80211/util.c | 5 +++++
> > 1 files changed, 5 insertions(+), 0 deletions(-)
> >
> > diff --git a/net/mac80211/util.c b/net/mac80211/util.c
> > index ca170b4..6116ad0 100644
> > --- a/net/mac80211/util.c
> > +++ b/net/mac80211/util.c
> > @@ -1188,6 +1188,11 @@ int ieee80211_reconfig(struct ieee80211_local *local)
> > ieee80211_wake_queues_by_reason(hw,
> > IEEE80211_QUEUE_STOP_REASON_SUSPEND);
> >
> > + if (hw->flags & IEEE80211_HW_AMPDU_AGGREGATION) {
> > + list_for_each_entry_rcu(sta, &local->sta_list, list) {
> > + ieee80211_sta_tear_down_BA_sessions(sta);
> > + }
> > + }
> hmm, I somehow miss the rcu_read_lock(); and rcu_read_unlock(); around
> list_for_each_entry_rcu... Are you really sure that you don't need
> them?
>
> Regards,
> Chr
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2010-02-03 1:15 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-02-03 0:52 [PATCH 1/1] mac80211: tear down all agg queues when restart/reconfig hw wey-yi.w.guy
2010-02-03 1:09 ` Christian Lamparter
2010-02-03 1:11 ` Guy, Wey-Yi
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox