From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:47183) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ViLoT-0000rH-7n for qemu-devel@nongnu.org; Mon, 18 Nov 2013 05:12:19 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ViLoM-0006Yc-Iu for qemu-devel@nongnu.org; Mon, 18 Nov 2013 05:12:13 -0500 Received: from mx1.redhat.com ([209.132.183.28]:42948) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ViLoM-0006YX-9O for qemu-devel@nongnu.org; Mon, 18 Nov 2013 05:12:06 -0500 Date: Mon, 18 Nov 2013 12:15:17 +0200 From: "Michael S. Tsirkin" Message-ID: <20131118101517.GA3559@redhat.com> References: <1384764380-16832-1-git-send-email-zwu.kernel@gmail.com> <20131118095043.GA3470@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Subject: Re: [Qemu-devel] [PATCH 4/4] net, virtio_net: replace the magic value List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Zhi Yong Wu Cc: netdev@vger.kernel.org, Rusty Russell , Zhi Yong Wu , QEMU Developers , linux-kernel mlist On Mon, Nov 18, 2013 at 06:07:45PM +0800, Zhi Yong Wu wrote: > On Mon, Nov 18, 2013 at 5:50 PM, Michael S. Tsirkin wrote: > > On Mon, Nov 18, 2013 at 04:46:20PM +0800, Zhi Yong Wu wrote: > >> From: Zhi Yong Wu > >> > >> It is more appropriate to use # of queue pairs currently used by > >> the driver instead of a magic value. > >> > >> Signed-off-by: Zhi Yong Wu > > > > I don't mind, but driver should be submitted separately > > from qemu patches. As it is only patch 4/4 made it to netdev. > ok, i will sent v2. By the way, can you help take a look at the > following patches? Will do. > Maybe i can send their v2 together. Please don't, these seem to be completely unrelated. > [PATCH 1/3] vhost: remove the dead branch > [PATCH 2/3] vhost: adjust vhost_dev_init() to be void > [PATCH 3/3] vhost: fix the wrong log descriptions > > > > > >> --- > >> drivers/net/virtio_net.c | 4 ++-- > >> 1 files changed, 2 insertions(+), 2 deletions(-) > >> > >> diff --git a/drivers/net/virtio_net.c b/drivers/net/virtio_net.c > >> index cdc7c90..e0cb2d1 100644 > >> --- a/drivers/net/virtio_net.c > >> +++ b/drivers/net/virtio_net.c > >> @@ -1619,8 +1619,8 @@ static int virtnet_probe(struct virtio_device *vdev) > >> if (err) > >> goto free_stats; > >> > >> - netif_set_real_num_tx_queues(dev, 1); > >> - netif_set_real_num_rx_queues(dev, 1); > >> + netif_set_real_num_tx_queues(dev, vi->curr_queue_pairs); > >> + netif_set_real_num_rx_queues(dev, vi->curr_queue_pairs); > >> > >> err = register_netdev(dev); > >> if (err) { > >> -- > >> 1.7.6.5 > >> > > > > -- > Regards, > > Zhi Yong Wu