* [PATCH] compat-wireless: update 22-multiqueue.patch for the current linux-next
@ 2010-03-24 21:25 Pavel Roskin
2010-03-24 21:28 ` Johannes Berg
0 siblings, 1 reply; 4+ messages in thread
From: Pavel Roskin @ 2010-03-24 21:25 UTC (permalink / raw)
To: Luis R. Rodriguez, linux-wireless
Adjust for spacing change in net/mac80211/util.c. Add a replacement for
netif_tx_wake_queue() for net/mac80211/tx.c
Signed-off-by: Pavel Roskin <proski@gnu.org>
---
0 files changed, 0 insertions(+), 0 deletions(-)
diff --git a/patches/22-multiqueue.patch b/patches/22-multiqueue.patch
index 421c32f..4485b94 100644
--- a/patches/22-multiqueue.patch
+++ b/patches/22-multiqueue.patch
@@ -65,21 +65,21 @@ queue by using skb_set_queue_mapping(skb, 0) through ieee80211_tx_skb()
static void __ieee80211_wake_queue(struct ieee80211_hw *hw, int queue,
enum queue_stop_reason reason)
{
-@@ -286,7 +298,14 @@ static void __ieee80211_wake_queue(struc
-
- rcu_read_lock();
- list_for_each_entry_rcu(sdata, &local->interfaces, list)
+@@ -284,7 +296,14 @@ static void __ieee80211_wake_queue(struc
+ if (skb_queue_empty(&local->pending[queue])) {
+ rcu_read_lock();
+ list_for_each_entry_rcu(sdata, &local->interfaces, list)
+#if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,27))
- netif_tx_wake_queue(netdev_get_tx_queue(sdata->dev, queue));
+ netif_tx_wake_queue(netdev_get_tx_queue(sdata->dev, queue));
+#elif (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,23))
-+ netif_start_subqueue(sdata->dev, queue);
++ netif_start_subqueue(sdata->dev, queue);
+#else
-+ if (ieee80211_all_queues_started(hw))
-+ netif_wake_queue(sdata->dev);
++ if (ieee80211_all_queues_started(hw))
++ netif_wake_queue(sdata->dev);
+#endif
- rcu_read_unlock();
- }
-
+ rcu_read_unlock();
+ } else
+ tasklet_schedule(&local->tx_pending_tasklet);
@@ -321,7 +340,13 @@ static void __ieee80211_stop_queue(struc
rcu_read_lock();
@@ -107,6 +107,22 @@ queue by using skb_set_queue_mapping(skb, 0) through ieee80211_tx_skb()
ieee80211_set_qos_hdr(local, skb);
ieee80211_tx(sdata, skb, false);
rcu_read_unlock();
+@@ -2039,8 +2039,15 @@ void ieee80211_tx_pending(unsigned long
+
+ if (skb_queue_empty(&local->pending[i]))
+ list_for_each_entry_rcu(sdata, &local->interfaces, list)
++#if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,27))
+ netif_tx_wake_queue(
+ netdev_get_tx_queue(sdata->dev, i));
++#elif (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,23))
++ netif_start_subqueue(sdata->dev, i);
++#else
++ if (ieee80211_all_queues_started(hw))
++ netif_wake_queue(sdata->dev);
++#endif
+ }
+ spin_unlock_irqrestore(&local->queue_stop_reason_lock, flags);
+
--- a/net/mac80211/iface.c
+++ b/net/mac80211/iface.c
@@ -660,11 +660,13 @@ static void ieee80211_teardown_sdata(str
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [PATCH] compat-wireless: update 22-multiqueue.patch for the current linux-next
2010-03-24 21:25 [PATCH] compat-wireless: update 22-multiqueue.patch for the current linux-next Pavel Roskin
@ 2010-03-24 21:28 ` Johannes Berg
2010-03-24 21:46 ` Pavel Roskin
0 siblings, 1 reply; 4+ messages in thread
From: Johannes Berg @ 2010-03-24 21:28 UTC (permalink / raw)
To: Pavel Roskin; +Cc: Luis R. Rodriguez, linux-wireless
On Wed, 2010-03-24 at 17:25 -0400, Pavel Roskin wrote:
> Adjust for spacing change in net/mac80211/util.c. Add a replacement for
> netif_tx_wake_queue() for net/mac80211/tx.c
>
> Signed-off-by: Pavel Roskin <proski@gnu.org>
> ---
> 0 files changed, 0 insertions(+), 0 deletions(-)
Out of curiosity, how did you manage to generate that?
johannes
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] compat-wireless: update 22-multiqueue.patch for the current linux-next
2010-03-24 21:28 ` Johannes Berg
@ 2010-03-24 21:46 ` Pavel Roskin
2010-03-24 23:31 ` Johannes Berg
0 siblings, 1 reply; 4+ messages in thread
From: Pavel Roskin @ 2010-03-24 21:46 UTC (permalink / raw)
To: Johannes Berg; +Cc: Luis R. Rodriguez, linux-wireless
On Wed, 2010-03-24 at 14:28 -0700, Johannes Berg wrote:
> On Wed, 2010-03-24 at 17:25 -0400, Pavel Roskin wrote:
> > Adjust for spacing change in net/mac80211/util.c. Add a replacement for
> > netif_tx_wake_queue() for net/mac80211/tx.c
> >
> > Signed-off-by: Pavel Roskin <proski@gnu.org>
> > ---
> > 0 files changed, 0 insertions(+), 0 deletions(-)
>
> Out of curiosity, how did you manage to generate that?
If you mean "0 files changed", I guess it's a bug in STGit.
If you mean the patch. I applied the original patch to util.c with "-l",
made sure that it's sane, adjusted spacing and added the patch to STGit.
Then I found that the same construct propagated to tx.c, so I added the
same ifdefs there, made a diff and added in manually to the existing
diff for tx.c.
--
Regards,
Pavel Roskin
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] compat-wireless: update 22-multiqueue.patch for the current linux-next
2010-03-24 21:46 ` Pavel Roskin
@ 2010-03-24 23:31 ` Johannes Berg
0 siblings, 0 replies; 4+ messages in thread
From: Johannes Berg @ 2010-03-24 23:31 UTC (permalink / raw)
To: Pavel Roskin; +Cc: Luis R. Rodriguez, linux-wireless
On Wed, 2010-03-24 at 17:46 -0400, Pavel Roskin wrote:
> On Wed, 2010-03-24 at 14:28 -0700, Johannes Berg wrote:
> > On Wed, 2010-03-24 at 17:25 -0400, Pavel Roskin wrote:
> > > Adjust for spacing change in net/mac80211/util.c. Add a replacement for
> > > netif_tx_wake_queue() for net/mac80211/tx.c
> > >
> > > Signed-off-by: Pavel Roskin <proski@gnu.org>
> > > ---
> > > 0 files changed, 0 insertions(+), 0 deletions(-)
> >
> > Out of curiosity, how did you manage to generate that?
>
> If you mean "0 files changed", I guess it's a bug in STGit.
I meant that, yeah. Struck me as strange :)
johannes
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2010-03-24 23:31 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-03-24 21:25 [PATCH] compat-wireless: update 22-multiqueue.patch for the current linux-next Pavel Roskin
2010-03-24 21:28 ` Johannes Berg
2010-03-24 21:46 ` Pavel Roskin
2010-03-24 23:31 ` Johannes Berg
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).