[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date: Mon, 12 Dec 2011 15:29:27 -0800
From: Alessandro Salvatori <sandr8@...il.com>
To: Dmitry Torokhov <dtor@...are.com>
Cc: chetan loke <loke.chetan@...il.com>, pv-drivers@...are.com,
zbiggy@...pl, netdev <netdev@...r.kernel.org>
Subject: Re: [Pv-drivers] vmxnet3 driver broken since 3.0?
can you please make sure this also goes into linux-stable for 3.0.x and 3.1.x?
thanks!
-Alessandro-
Here i am, A young man,
A crashing computer program,
Here is a pen, write out my name...
(from: The Servant - Orchestra)
On Mon, Dec 12, 2011 at 09:42, Dmitry Torokhov <dtor@...are.com> wrote:
> On Mon, Dec 12, 2011 at 12:09:33PM -0500, chetan loke wrote:
>> > From: netdev-owner@...r.kernel.org [mailto:netdev-owner@...r.kernel.org] On Behalf Of Alessandro Salvatori
>> > Sent: December 12, 2011 2:55 AM
>> > To: Zbigniew Luszpinski
>> > Cc: netdev@...r.kernel.org
>> > Subject: Re: vmxnet3 driver broken since 3.0?
>> >
>> > I guess this is the change that was introduced in 3.0 and that breaks vmxnet3:
>> >
>> > commit 55513fb4281464e97aa1ff2b9c906ca5aed917c5
>> > Author: Tom Herbert <therbert@...gle.com>
>> > Date: Mon Oct 18 17:55:58 2010 +0000
>> >
>> > net: fail alloc_netdev_mq if queue count < 1
>> >
>> > In alloc_netdev_mq fail if requested queue_count < 1.
>> >
>> > Signed-off-by: Tom Herbert <therbert@...gle.com>
>> > Acked-by: Eric Dumazet <eric.dumazet@...il.com>
>> > Signed-off-by: David S. Miller <davem@...emloft.net>
>> >
>> > diff --git a/net/core/dev.c b/net/core/dev.c
>> > index 04972a4..f44d29a 100644
>> > --- a/net/core/dev.c
>> > +++ b/net/core/dev.c
>> > @@ -5511,6 +5511,12 @@ struct net_device *alloc_netdev_mq(int
>> > sizeof_priv, const char *name,
>> >
>> > BUG_ON(strlen(name) >= sizeof(dev->name));
>> >
>> > + if (queue_count < 1) {
>> > + pr_err("alloc_netdev: Unable to allocate device "
>> > + "with zero queues.\n");
>> > + return NULL;
>> > + }
>> > +
>> > alloc_size = sizeof(struct net_device);
>> > if (sizeof_priv) {
>> > /* ensure 32-byte alignment of private area */
>> >
>> > thanks!
>> > -Alessandro-
>>
>
> Hmm, apparently patch from https://lkml.org/lkml/2011/11/16/387 is not
> in mailine yet... I am going to forward it to Linus/Andrew.
>
> Thanks,
> Dmitry
>
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists