All of lore.kernel.org
 help / color / mirror / Atom feed
From: Eric Blake <eblake@redhat.com>
To: anton.ivanov@kot-begemot.co.uk, qemu-devel@nongnu.org
Cc: Anton Ivanov <antivano@cisco.com>,
	pbonzini@redhat.com, afaerber@suse.de, stefanha@redhat.com
Subject: Re: [Qemu-devel] [PATCH v4] net: L2TPv3 transport
Date: Wed, 19 Mar 2014 06:39:03 -0600	[thread overview]
Message-ID: <53298FE7.6000401@redhat.com> (raw)
In-Reply-To: <1395221519-893471-1-git-send-email-anton.ivanov@kot-begemot.co.uk>

[-- Attachment #1: Type: text/plain, Size: 3188 bytes --]

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/

> 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.

> +#
> +# @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.


> +
> +##
> +##
>  # @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


> +#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

> @@ -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?

-- 
Eric Blake   eblake redhat com    +1-919-301-3266
Libvirt virtualization library http://libvirt.org


[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 604 bytes --]

  reply	other threads:[~2014-03-19 12:39 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 [this message]
2014-03-19 12:47   ` Anton Ivanov (antivano)
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=53298FE7.6000401@redhat.com \
    --to=eblake@redhat.com \
    --cc=afaerber@suse.de \
    --cc=antivano@cisco.com \
    --cc=anton.ivanov@kot-begemot.co.uk \
    --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.