From mboxrd@z Thu Jan 1 00:00:00 1970 From: Dmitry Torokhov Subject: Re: [Pv-drivers] vmxnet3 driver broken since 3.0? Date: Mon, 12 Dec 2011 09:42:44 -0800 Message-ID: <20111212174244.GA31005@dtor-ws.eng.vmware.com> References: Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: QUOTED-PRINTABLE Cc: pv-drivers@vmware.com, sandr8@gmail.com, zbiggy@o2.pl, netdev To: chetan loke Return-path: Received: from smtp-outbound-2.vmware.com ([65.115.85.73]:56855 "EHLO smtp-outbound-2.vmware.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751547Ab1LLRmo (ORCPT ); Mon, 12 Dec 2011 12:42:44 -0500 Content-Disposition: inline In-Reply-To: Sender: netdev-owner@vger.kernel.org List-ID: On Mon, Dec 12, 2011 at 12:09:33PM -0500, chetan loke wrote: > > From: netdev-owner@vger.kernel.org [mailto:netdev-owner@vger.kernel= =2Eorg] 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 brea= ks vmxnet3: > > > > commit 55513fb4281464e97aa1ff2b9c906ca5aed917c5 > > Author: Tom Herbert > > Date: =A0 Mon Oct 18 17:55:58 2010 +0000 > > > > =A0 =A0net: fail alloc_netdev_mq if queue count < 1 > > > > =A0 =A0In alloc_netdev_mq fail if requested queue_count < 1. > > > > =A0 =A0Signed-off-by: Tom Herbert > > =A0 =A0Acked-by: Eric Dumazet > > =A0 =A0Signed-off-by: David S. Miller > > > > 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, > > > > =A0 =A0 =A0 =A0BUG_ON(strlen(name) >=3D sizeof(dev->name)); > > > > + =A0 =A0 =A0 if (queue_count < 1) { > > + =A0 =A0 =A0 =A0 =A0 =A0 =A0 pr_err("alloc_netdev: Unable to alloc= ate device " > > + =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0"with zero queues.\n")= ; > > + =A0 =A0 =A0 =A0 =A0 =A0 =A0 return NULL; > > + =A0 =A0 =A0 } > > + > > =A0 =A0 =A0 =A0alloc_size =3D sizeof(struct net_device); > > =A0 =A0 =A0 =A0if (sizeof_priv) { > > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0/* ensure 32-byte alignment of priva= te area */ > > > > thanks! > > -Alessandro- >=20 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