From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:59591) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Wz2ld-00089E-R6 for qemu-devel@nongnu.org; Mon, 23 Jun 2014 07:50:38 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Wz2lZ-00067q-GX for qemu-devel@nongnu.org; Mon, 23 Jun 2014 07:50:33 -0400 Received: from mail-wi0-x22f.google.com ([2a00:1450:400c:c05::22f]:64806) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Wz2lY-00067h-QM for qemu-devel@nongnu.org; Mon, 23 Jun 2014 07:50:29 -0400 Received: by mail-wi0-f175.google.com with SMTP id r20so4136048wiv.8 for ; Mon, 23 Jun 2014 04:50:27 -0700 (PDT) Date: Mon, 23 Jun 2014 19:50:17 +0800 From: Stefan Hajnoczi Message-ID: <20140623115017.GB15351@stefanha-thinkpad.redhat.com> References: <1403256881-47264-1-git-send-email-anton.ivanov@kot-begemot.co.uk> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="7iMSBzlTiPOCCT2k" Content-Disposition: inline In-Reply-To: <1403256881-47264-1-git-send-email-anton.ivanov@kot-begemot.co.uk> Subject: Re: [Qemu-devel] [PATCH v9] net: L2TPv3 transport List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: anton.ivanov@kot-begemot.co.uk Cc: Anton Ivanov , pbonzini@redhat.com, qemu-devel@nongnu.org, stefanha@redhat.com --7iMSBzlTiPOCCT2k Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Fri, Jun 20, 2014 at 10:34:41AM +0100, anton.ivanov@kot-begemot.co.uk wr= ote: > From: Anton Ivanov >=20 > This transport allows to connect a QEMU nic to a static Ethernet > over L2TPv3 tunnel. The transport supports all options present > in the Linux kernel implementation. It allows QEMU to connect > to any Linux host running kernel 3.3+, most routers and network > devices as well as other QEMU instances. >=20 > Signed-off-by: Anton Ivanov > --- >=20 > Comments addressed in this patch: >=20 > 1. Extra checks and reinitilization of the result variable in init to > address remaining potential failure cases in getaddrinfo() as noticed=20 > by Stefan Hajnoczi >=20 > net/Makefile.objs | 1 + > net/clients.h | 2 + > net/l2tpv3.c | 757 +++++++++++++++++++++++++++++++++++++++++++++++= ++++++ > net/net.c | 3 + > qapi-schema.json | 60 +++++ > qemu-options.hx | 82 ++++++ > 6 files changed, 905 insertions(+) > create mode 100644 net/l2tpv3.c Thanks, applied to my net tree: https://github.com/stefanha/qemu/commits/net Note I had to add the following to make -netdev work: @@ -842,6 +845,9 @@ static int net_client_init1(const void *object, int is_= netdev, Error **errp) #ifdef CONFIG_VHOST_NET_USED case NET_CLIENT_OPTIONS_KIND_VHOST_USER: #endif +#ifdef CONFIG_LINUX + case NET_CLIENT_OPTIONS_KIND_L2TPV3: +#endif break; =20 default: Stefan --7iMSBzlTiPOCCT2k Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQEcBAEBAgAGBQJTqBR5AAoJEJykq7OBq3PInMwH/0DwU2ngSr/0lzzqHy/a9HRq Da4A67vdiYwsxGzzuNX9cpOaoYrh0lyjsxK57Zx/nWc/MkGaur+moTMvxyb8yjh9 VcevvSZNM7KOQj+Auvc0RXkntvMjJJ/GBcyTVC6T5/IePTQDgGC6aPBHYsyc1XFe R6uOmr1S02bkfFu4kmaeU7q+x+/sOuSgpdk16OFiWiIi3JsLHm8+stKY5CBtD5lY rqLNLffV0ei1Hxo43QPG/Y9zc1ogwnBZc9ikwE3sf/RGRPTunJiWtYudex3TGHpz 9uT+W2EundpLnP6OgBpXFIwNrCiB+pzCa5tlpMK0aQ1751QG0a/d/3Y1HbU0w2w= =HFaq -----END PGP SIGNATURE----- --7iMSBzlTiPOCCT2k--