From: Dmitry Torokhov <dtor@vmware.com>
To: chetan loke <loke.chetan@gmail.com>
Cc: pv-drivers@vmware.com, sandr8@gmail.com, zbiggy@o2.pl,
netdev <netdev@vger.kernel.org>
Subject: Re: [Pv-drivers] vmxnet3 driver broken since 3.0?
Date: Mon, 12 Dec 2011 09:42:44 -0800 [thread overview]
Message-ID: <20111212174244.GA31005@dtor-ws.eng.vmware.com> (raw)
In-Reply-To: <CAAsGZS7QL1vQwoq7k2RX_LWeqgE4x5+00NSrRYbCu8vQoGh1Hg@mail.gmail.com>
On Mon, Dec 12, 2011 at 12:09:33PM -0500, chetan loke wrote:
> > From: netdev-owner@vger.kernel.org [mailto:netdev-owner@vger.kernel.org] On Behalf Of Alessandro Salvatori
> > Sent: December 12, 2011 2:55 AM
> > To: Zbigniew Luszpinski
> > Cc: netdev@vger.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@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-
>
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
next prev parent reply other threads:[~2011-12-12 17:42 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <D3F292ADF945FB49B35E96C94C2061B9150914BA@nsmail.netscout.com>
2011-12-12 17:09 ` vmxnet3 driver broken since 3.0? chetan loke
2011-12-12 17:42 ` Dmitry Torokhov [this message]
2011-12-12 23:29 ` [Pv-drivers] " Alessandro Salvatori
2011-12-14 21:13 ` Stephen Hemminger
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=20111212174244.GA31005@dtor-ws.eng.vmware.com \
--to=dtor@vmware.com \
--cc=loke.chetan@gmail.com \
--cc=netdev@vger.kernel.org \
--cc=pv-drivers@vmware.com \
--cc=sandr8@gmail.com \
--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).