From: Alessandro Salvatori <sandr8@gmail.com>
To: Zbigniew Luszpinski <zbiggy@o2.pl>
Cc: netdev@vger.kernel.org
Subject: Re: vmxnet3 driver broken since 3.0?
Date: Sun, 11 Dec 2011 23:54:50 -0800 [thread overview]
Message-ID: <CAJeBh4uCzUTFpQxf-rcXWkCUy9UEryiaz8akiDovLqU2C8WQEg@mail.gmail.com> (raw)
In-Reply-To: <loom.20111211T232956-373@post.gmane.org>
I guess this is the change that was introduced in 3.0 and that breaks vmxnet3:
commit 55513fb4281464e97aa1ff2b9c906ca5aed917c5
Author: Tom Herbert <therbert@google.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@google.com>
Acked-by: Eric Dumazet <eric.dumazet@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.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-
Here i am, A young man,
A crashing computer program,
Here is a pen, write out my name...
(from: The Servant - Orchestra)
On Sun, Dec 11, 2011 at 14:38, Zbigniew Luszpinski <zbiggy@o2.pl> wrote:
> Alessandro Salvatori <sandr8 <at> gmail.com> writes:
>> haven't had a chance to try the one from the 3.2 release candidates yet.
>
> In 3.2-rc5 is still broken. Exactly the same error you get. :(
> Someone introduced a change since kernel 3.0 which broke vmxnet3 driver. And
> this breaking change continues in kernel 3.1 and 3.2-rc5 so it seems it will not
> go away. :(
>
> have a nice day,
> Zbigniew Luszpinski
>
> --
> To unsubscribe from this list: send the line "unsubscribe netdev" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
next prev parent reply other threads:[~2011-12-12 7:55 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-12-04 9:15 vmxnet3 driver broken since 3.0? Alessandro Salvatori
2011-12-11 22:38 ` Zbigniew Luszpinski
2011-12-12 7:54 ` Alessandro Salvatori [this message]
2011-12-12 17:05 ` Stephen Hemminger
[not found] <D3F292ADF945FB49B35E96C94C2061B9150914BA@nsmail.netscout.com>
2011-12-12 17:09 ` chetan loke
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=CAJeBh4uCzUTFpQxf-rcXWkCUy9UEryiaz8akiDovLqU2C8WQEg@mail.gmail.com \
--to=sandr8@gmail.com \
--cc=netdev@vger.kernel.org \
--cc=zbiggy@o2.pl \
/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 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).