2012-04-06 21:00:37

by Johannes Berg

[permalink] [raw]
Subject: [PATCH] compat: backport netif_wake_subqueue

From: Johannes Berg <[email protected]>

Kernels 2.6.23 - 2.6.27 had some multiqueue support,
but called netif_wake_subqueue netif_start_subqueue.
So to backport, just add a define.

Signed-off-by: Johannes Berg <[email protected]>
---
include/linux/compat-2.6.27.h | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/include/linux/compat-2.6.27.h b/include/linux/compat-2.6.27.h
index 22fadcd..1e2af80 100644
--- a/include/linux/compat-2.6.27.h
+++ b/include/linux/compat-2.6.27.h
@@ -256,6 +256,8 @@ static inline __u32 ethtool_cmd_speed(const struct ethtool_cmd *ep)
*/
#define lower_32_bits(n) ((u32)(n))

+#define netif_wake_subqueue netif_start_subqueue
+
#endif /* (LINUX_VERSION_CODE < KERNEL_VERSION(2,6,27)) */

#endif /* LINUX_26_27_COMPAT_H */
--
1.7.9.1





2012-04-12 07:56:06

by Luis R. Rodriguez

[permalink] [raw]
Subject: Re: [PATCH] compat: backport netif_wake_subqueue

On Wed, Apr 11, 2012 at 9:16 PM, Johannes Berg
<[email protected]> wrote:
> On Fri, 2012-04-06 at 19:23 -0700, Luis R. Rodriguez wrote:
>> On Fri, Apr 6, 2012 at 2:00 PM, Johannes Berg <[email protected]> wrote:
>> > From: Johannes Berg <[email protected]>
>> >
>> > Kernels 2.6.23 - 2.6.27 had some multiqueue support,
>> > but called netif_wake_subqueue netif_start_subqueue.
>> > So to backport, just add a define.
>> >
>> > Signed-off-by: Johannes Berg <[email protected]>
>>
>> Applied and pushed, and tested with ckmake, thanks!
>
> I don't see this, did you move the repository off infradead?

Sorry, I forgot to push to infra, the most reliable tree is on github.
I use infra as backup.

Luis

2012-04-12 13:07:54

by Johannes Berg

[permalink] [raw]
Subject: Re: [PATCH] compat: backport netif_wake_subqueue

On Thu, 2012-04-12 at 00:55 -0700, Luis R. Rodriguez wrote:
> On Wed, Apr 11, 2012 at 9:16 PM, Johannes Berg
> <[email protected]> wrote:
> > On Fri, 2012-04-06 at 19:23 -0700, Luis R. Rodriguez wrote:
> >> On Fri, Apr 6, 2012 at 2:00 PM, Johannes Berg <[email protected]> wrote:
> >> > From: Johannes Berg <[email protected]>
> >> >
> >> > Kernels 2.6.23 - 2.6.27 had some multiqueue support,
> >> > but called netif_wake_subqueue netif_start_subqueue.
> >> > So to backport, just add a define.
> >> >
> >> > Signed-off-by: Johannes Berg <[email protected]>
> >>
> >> Applied and pushed, and tested with ckmake, thanks!
> >
> > I don't see this, did you move the repository off infradead?
>
> Sorry, I forgot to push to infra, the most reliable tree is on github.
> I use infra as backup.

Oh ok, I'll switch to github. Thanks.

johannes


2012-04-12 04:17:11

by Johannes Berg

[permalink] [raw]
Subject: Re: [PATCH] compat: backport netif_wake_subqueue

On Fri, 2012-04-06 at 19:23 -0700, Luis R. Rodriguez wrote:
> On Fri, Apr 6, 2012 at 2:00 PM, Johannes Berg <[email protected]> wrote:
> > From: Johannes Berg <[email protected]>
> >
> > Kernels 2.6.23 - 2.6.27 had some multiqueue support,
> > but called netif_wake_subqueue netif_start_subqueue.
> > So to backport, just add a define.
> >
> > Signed-off-by: Johannes Berg <[email protected]>
>
> Applied and pushed, and tested with ckmake, thanks!

I don't see this, did you move the repository off infradead?

johannes


2012-04-07 02:23:54

by Luis R. Rodriguez

[permalink] [raw]
Subject: Re: [PATCH] compat: backport netif_wake_subqueue

On Fri, Apr 6, 2012 at 2:00 PM, Johannes Berg <[email protected]> wrote:
> From: Johannes Berg <[email protected]>
>
> Kernels 2.6.23 - 2.6.27 had some multiqueue support,
> but called netif_wake_subqueue netif_start_subqueue.
> So to backport, just add a define.
>
> Signed-off-by: Johannes Berg <[email protected]>

Applied and pushed, and tested with ckmake, thanks!

Luis