From: "Anton Ivanov (antivano)" <antivano@cisco.com>
To: Eric Blake <eblake@redhat.com>
Cc: "pbonzini@redhat.com" <pbonzini@redhat.com>,
"afaerber@suse.de" <afaerber@suse.de>,
"anton.ivanov@kot-begemot.co.uk" <anton.ivanov@kot-begemot.co.uk>,
"stefanha@redhat.com" <stefanha@redhat.com>,
"qemu-devel@nongnu.org" <qemu-devel@nongnu.org>
Subject: Re: [Qemu-devel] [PATCH v4] net: L2TPv3 transport
Date: Wed, 19 Mar 2014 12:47:24 +0000 [thread overview]
Message-ID: <532991DB.5050403@cisco.com> (raw)
In-Reply-To: <53298FE7.6000401@redhat.com>
On 19/03/14 12:39, Eric Blake wrote:
> On 03/19/2014 03:31 AM, anton.ivanov@kot-begemot.co.uk wrote:
>> From: Anton Ivanov <antivano@cisco.com>
>>
>> This tranport allows to connect a qemu nic to a static Ethernet
> s/tranport/transport/
Guilty as charged :)
>
>> 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.
>>
>> Signed-off-by: Anton Ivanov <antivano@cisco.com>
>> ---
>>
>> +++ b/qapi-schema.json
>> @@ -2941,6 +2941,63 @@
>> '*udp': 'str' } }
>>
>> ##
>> +# @NetdevL2TPv3Options
>> +#
>> +# Connect the VLAN to Ethernet over L2TPv3 Static tunnel
>> +#
>> +# @src: source address
>> +#
>> +# @dst: destination address
>> +#
>> +#
>> +# @txsession: 32 bit transmit session
>> +#
>> +# @rxsession: 32 bit receive session - if not specified
>> +# set to the same value as transmit
> Missing #optional on rxsession.
Will fix.
>
>> +#
>> +# @offset: #optional additional offset - allows the insertion of
>> +# additional application-specific data before the packet payload
>> +#
>> +# Since 2.0
> You've missed 2.0; this should be 2.1.
OK.
>
>
>> +
>> +##
>> +##
>> # @NetdevVdeOptions
> No need to add a second line of ## to NetdevVdeOptions.
>
>> #
>> # Connect the VLAN to a vde switch running on the host.
>> @@ -3014,13 +3071,16 @@
>> # A discriminated record of network device traits.
>> #
>> # Since 1.2
>> -##
>> +#
>> +# Added in 2.0 - l2tpv3
> 2.1
OK.
>
>
>> +#ifdef __linux__
>> + "-net l2tpv3[,vlan=n][,name=str],src=srcaddr,dst=dstaddr[,srcport=srcport][,dstport=dstport],txsession=txsession[,rxsession=rxsession][,ipv6=on/off][,udp=on/off][,cookie64=on/off][,counter][,pincounter][,txcookie=txcookie][,rxcookie=rxcookie][,offset=offset]\n"
>> + " connect the VLAN to an Ethernet over L2TPv3 pseudowire\n"
>> + " Linux kernel 3.3+ as well as most routers can talk \n"
> Trailing whitespace in the output.
>
>> + " L2TPv3. This transport allows to connect a VM to a VM,\n"
>> + " VM to a router and even VM to Host. It is a nearly-universal\n"
>> + " standard (RFC3391). Note - this implementation uses static\n"
>> + " pre-configured tunnels (same as the linux kernel). \n"
> and again
Will fix.
>
>> @@ -1408,11 +1431,11 @@ DEF("net", HAS_ARG, QEMU_OPTION_net,
>> " on host and listening for incoming connections on 'socketpath'.\n"
>> " Use group 'groupname' and mode 'octalmode' to change default\n"
>> " ownership and permissions for communication port.\n"
>> -#endif
>> "-net dump[,vlan=n][,file=f][,len=n]\n"
>> " dump traffic on vlan 'n' to file 'f' (max n bytes per packet)\n"
>> "-net none use it alone to have zero network devices. If no -net option\n"
>> " is provided, the default is '-net nic -net user'\n", QEMU_ARCH_ALL)
>> +#endif
> Why is this #endif moving?
Dunno, that is the way it worked out after adding it :) The format of
the file does not win the "readability
of the year" award :)
I'd much rather have a TeX or LaTeX original and a set of macros/styles
to generate the necessary outputs.
I will move it of course.
A.
>
next prev parent reply other threads:[~2014-03-19 12:47 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-03-19 9:31 [Qemu-devel] [PATCH v4] net: L2TPv3 transport anton.ivanov
2014-03-19 12:39 ` Eric Blake
2014-03-19 12:47 ` Anton Ivanov (antivano) [this message]
2014-03-19 12:50 ` Andreas Färber
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=532991DB.5050403@cisco.com \
--to=antivano@cisco.com \
--cc=afaerber@suse.de \
--cc=anton.ivanov@kot-begemot.co.uk \
--cc=eblake@redhat.com \
--cc=pbonzini@redhat.com \
--cc=qemu-devel@nongnu.org \
--cc=stefanha@redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.