Received: from eggs.gnu.org ([208.118.235.92]:59164) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UK4Qo-0001L1-NG for qemu-devel@nongnu.org; Mon, 25 Mar 2013 06:15:15 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UK4Ql-0006kd-QR for qemu-devel@nongnu.org; Mon, 25 Mar 2013 06:15:10 -0400 Received: from mx1.redhat.com ([209.132.183.28]:57066) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UK4Ql-0006jP-J4 for qemu-devel@nongnu.org; Mon, 25 Mar 2013 06:15:07 -0400 Date: Mon, 25 Mar 2013 11:15:03 +0100 From: Stefan Hajnoczi Message-ID: <20130325101503.GE1845@stefanha-thinkpad.redhat.com> References: <1363632224-27609-1-git-send-email-sfeldma@cumulusnetworks.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1363632224-27609-1-git-send-email-sfeldma@cumulusnetworks.com> Subject: Re: [Qemu-devel] [PATCH v2] net: increase buffer size to accommodate Jumbo frame pkts List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: sfeldma@cumulusnetworks.com Cc: aliguori@us.ibm.com, shm@cumulusnetworks.com, qemu-devel@nongnu.org On Mon, Mar 18, 2013 at 11:43:44AM -0700, sfeldma@cumulusnetworks.com wrote: > From: Scott Feldman > > Socket buffer sizes were hard-coded to 4K for VDE and socket netdevs. Bump this > up to 68K (ala tap netdev) to handle maximum GSO packet size (64k) plus plenty > of room for the ethernet and virtio_net headers. > > Originally, ran into this limitation when using -netdev UDP sockets to connect > VM-to-VM, where VM interface is configure with MTU=9000. (Using virtio_net > NIC model). Test is simple: ping -M do -s 8500 . This test will > attempt to ping with unfragmented packet of given size. Without patch, size > is limited to < 4K (minus protocol hdrs). With patch, ping test works with pkt > size up to 9000 (again, minus protocol hdrs). > > v2: per Stefan, increase buf size to (4096+65536) as done in tap and apply > to vde and socket netdevs. > v1: increase buf size to 12K just for -netdev UDP sockets > > Signed-off-by: Scott Feldman > --- > include/net/net.h | 5 +++++ > net/net.c | 2 +- > net/socket.c | 4 ++-- > net/tap.c | 7 +------ > net/vde.c | 2 +- > 5 files changed, 10 insertions(+), 10 deletions(-) Thanks, applied to my net tree: https://github.com/stefanha/qemu/commits/net Stefan