Received: from eggs.gnu.org ([2001:4830:134:3::10]:45344) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WKSuY-0006Wr-7L for Qemu-devel@nongnu.org; Mon, 03 Mar 2014 08:28:10 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WKSuP-0005WG-Lf for Qemu-devel@nongnu.org; Mon, 03 Mar 2014 08:28:02 -0500 Received: from mail-ee0-x229.google.com ([2a00:1450:4013:c00::229]:62838) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WKSuP-0005W1-F8 for Qemu-devel@nongnu.org; Mon, 03 Mar 2014 08:27:53 -0500 Received: by mail-ee0-f41.google.com with SMTP id t10so1602709eei.28 for ; Mon, 03 Mar 2014 05:27:52 -0800 (PST) Date: Mon, 3 Mar 2014 14:27:46 +0100 From: Stefan Hajnoczi Message-ID: <20140303132746.GE21055@stefanha-thinkpad.redhat.com> References: <5310489A.4060501@cisco.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <5310489A.4060501@cisco.com> Subject: Re: [Qemu-devel] Contribution - L2TPv3 transport List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: "Anton Ivanov (antivano)" Cc: "Qemu-devel@nongnu.org" On Fri, Feb 28, 2014 at 08:28:11AM +0000, Anton Ivanov (antivano) wrote: > 3. Qemu to communicate with the local host, remote vms, network devices, > etc at speeds which for a number of use cases exceed the speed of the > legacy tap driver. This surprises me. It's odd that tap performs significantly worse. I guess you have two options for using kernel L2TPv3 support: 1. Use a bridge and tap to forward between the L2TPv3 interface and the QEMU. 2. Use macvtap on top of the L2TPv3 interface (if possible). Option #2 should be faster. Now about the tap userspace ABI, is the performance bottleneck that the read(2) system call only receives one packet at a time? The tap file descriptor is not a socket so recvmmsg(2) cannot be used on it directly. I have wondered in the past whether something like packet mmap would be possible on a tap device. At that point userspace just waits for notifications and the actual packets don't require any syscalls. > Our suggestion would be that this over time obsoletes the UDP variety of > the "socket" driver. Yes, thank you! L2TPv3 looks like a good replacement for the "socket" driver. Will review and respond to your patch in detail. Stefan