qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Alexey Kirillov <lekiravi@yandex-team.ru>
To: Eric Blake <eblake@redhat.com>,
	Markus Armbruster <armbru@redhat.com>,
	Thomas Huth <thuth@redhat.com>, Jason Wang <jasowang@redhat.com>
Cc: Laurent Vivier <lvivier@redhat.com>,
	"Michael S. Tsirkin" <mst@redhat.com>,
	Stefan Weil <sw@weilnetz.de>,
	"qemu-devel@nongnu.org" <qemu-devel@nongnu.org>,
	Vincenzo Maffione <v.maffione@gmail.com>,
	"yc-core@yandex-team.ru" <yc-core@yandex-team.ru>,
	Samuel Thibault <samuel.thibault@ens-lyon.org>,
	Paolo Bonzini <pbonzini@redhat.com>,
	Giuseppe Lettieri <g.lettieri@iet.unipi.it>,
	Luigi Rizzo <rizzo@iet.unipi.it>
Subject: Re: [PATCH v4 0/4] Introducing QMP query-netdev command
Date: Wed, 07 Oct 2020 10:52:01 +0300	[thread overview]
Message-ID: <100721602056282@mail.yandex-team.ru> (raw)
In-Reply-To: <20200921191912.105305-1-lekiravi@yandex-team.ru>

ping

http://patchwork.ozlabs.org/project/qemu-devel/list/?series=203284

21.09.2020, 22:19, "Alexey Kirillov" <lekiravi@yandex-team.ru>:
> This patch series introduces a new QMP command "query-netdev" to get
> information about currently attached backend network devices (netdevs).
> Also, since the "info_str" field of "NetClientState" is now deprecated,
> we no longer use it for netdevs, only for NIC/hubports.
> The HMP command "info network" now also uses the new QMP command inside.
>
> Usage example:
>
> -> { "execute": "query-netdev" }
> <- { "return": [
>          {
>              "listen": "127.0.0.1:90",
>              "type": "socket",
>              "peer-id": "hub0port1",
>              "id": "__org.qemu.net1"
>          },
>          {
>              "script": "/etc/qemu-ifup",
>              "downscript": "/etc/qemu-ifdown",
>              "ifname": "tap0",
>              "type": "tap",
>              "peer-id": "net5",
>              "vnet_hdr": true,
>              "id": "tap0"
>          },
>          {
>              "ipv6": true,
>              "ipv4": true,
>              "host": "10.0.2.2",
>              "ipv6-dns": "fec0::3",
>              "ipv6-prefix": "fec0::",
>              "net": "10.0.2.0/255.255.255.0",
>              "ipv6-host": "fec0::2",
>              "type": "user",
>              "peer-id": "net0",
>              "dns": "10.0.2.3",
>              "hostfwd": [
>                  {
>                      "str": "tcp::20004-:22"
>                  }
>              ],
>              "ipv6-prefixlen": 64,
>              "id": "netdev0",
>              "restrict": false
>          }
>      ]
>    }
>
> v3->v4:
> - Rename "query-netdevs" to "query-netdev".
> - Copy netdev drivers to new QAPI enum "NetBackend".
>
> v2->v3:
> - Remove NIC and hubports from query-netdevs.
> - Remove several fields from NetdevInfo since they are unnecessary.
> - Rename field @peer to @peer-id.
> - Add support of vhost-vdpa.
> - Keep "info_str" for NIC/hubports, but remove it for netdevs.
>
> v1->v2:
> - Rewrite HMP "info network" to get information from results of QMP command.
> - Remove obsolete field "info_str" from "NetClientState".
>
> Alexey Kirillov (4):
>   qapi: net: Add query-netdev command
>   tests: Add tests for query-netdev command
>   hmp: Use QMP query-netdev in hmp_info_network
>   net: Do not use legacy info_str for backends
>
>  include/net/net.h | 4 +-
>  net/clients.h | 1 +
>  net/hub.c | 4 +-
>  net/hub.h | 2 +-
>  net/l2tpv3.c | 21 +++-
>  net/net.c | 213 +++++++++++++++++++++++++++++++-
>  net/netmap.c | 13 ++
>  net/slirp.c | 128 ++++++++++++++++++-
>  net/socket.c | 91 ++++++++++----
>  net/tap-win32.c | 10 +-
>  net/tap.c | 107 ++++++++++++++--
>  net/vde.c | 39 +++++-
>  net/vhost-user.c | 20 ++-
>  net/vhost-vdpa.c | 15 ++-
>  qapi/net.json | 80 ++++++++++++
>  tests/qtest/meson.build | 3 +
>  tests/qtest/test-query-netdev.c | 115 +++++++++++++++++
>  17 files changed, 807 insertions(+), 59 deletions(-)
>  create mode 100644 tests/qtest/test-query-netdev.c
>
> --
> 2.25.1


-- 
Alexey Kirillov
Yandex.Cloud


  parent reply	other threads:[~2020-10-07  7:52 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-09-21 19:19 [PATCH v4 0/4] Introducing QMP query-netdev command Alexey Kirillov
2020-09-21 19:19 ` [PATCH v4 1/4] qapi: net: Add " Alexey Kirillov
2020-09-22 14:27   ` Markus Armbruster
2020-09-21 19:19 ` [PATCH v4 2/4] tests: Add tests for " Alexey Kirillov
2020-10-24  7:07   ` Thomas Huth
2020-09-21 19:19 ` [PATCH v4 3/4] hmp: Use QMP query-netdev in hmp_info_network Alexey Kirillov
2020-09-21 19:19 ` [PATCH v4 4/4] net: Do not use legacy info_str for backends Alexey Kirillov
     [not found] ` <f5c36663-0845-c9fa-1e3b-636aef2ccd4a@yandex-team.ru>
2020-09-28 12:07   ` [PATCH v4 0/4] Introducing QMP query-netdev command Alexey Kirillov
2020-10-07  7:52 ` Alexey Kirillov [this message]
2020-10-16 15:34 ` Alexey Kirillov

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=100721602056282@mail.yandex-team.ru \
    --to=lekiravi@yandex-team.ru \
    --cc=armbru@redhat.com \
    --cc=eblake@redhat.com \
    --cc=g.lettieri@iet.unipi.it \
    --cc=jasowang@redhat.com \
    --cc=lvivier@redhat.com \
    --cc=mst@redhat.com \
    --cc=pbonzini@redhat.com \
    --cc=qemu-devel@nongnu.org \
    --cc=rizzo@iet.unipi.it \
    --cc=samuel.thibault@ens-lyon.org \
    --cc=sw@weilnetz.de \
    --cc=thuth@redhat.com \
    --cc=v.maffione@gmail.com \
    --cc=yc-core@yandex-team.ru \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).