Received: from eggs.gnu.org ([2001:4830:134:3::10]:55400) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YaLX1-0003LF-Ap for qemu-devel@nongnu.org; Tue, 24 Mar 2015 05:53:56 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YaLWx-0005MP-W1 for qemu-devel@nongnu.org; Tue, 24 Mar 2015 05:53:55 -0400 Received: from mail-wi0-x231.google.com ([2a00:1450:400c:c05::231]:34158) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YaLWx-0005MA-P7 for qemu-devel@nongnu.org; Tue, 24 Mar 2015 05:53:51 -0400 Received: by wibg7 with SMTP id g7so49766300wib.1 for ; Tue, 24 Mar 2015 02:53:51 -0700 (PDT) Date: Tue, 24 Mar 2015 09:53:47 +0000 From: Stefan Hajnoczi Message-ID: <20150324095347.GB13011@stefanha-thinkpad.redhat.com> References: <1418304974-15117-1-git-send-email-wolfgang@linksystems.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="WYTEVAkct0FjGQmd" Content-Disposition: inline In-Reply-To: <1418304974-15117-1-git-send-email-wolfgang@linksystems.org> Subject: Re: [Qemu-devel] [PATCH] qmp: implement a qmp command get_link_status List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Wolfgang Link Cc: aliguori@amazon.com, armbru@redhat.com, jasowang@redhat.com, qemu-devel@nongnu.org, lcapitulino@redhat.com, stefanha@redhat.com --WYTEVAkct0FjGQmd Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Thu, Dec 11, 2014 at 02:36:14PM +0100, Wolfgang Link wrote: > this qmp command returns the current link state from the given nic > this is impotent if the set_link failed or get an timeout. s/impotent/important/ I don't understand the rationale for this patch: set_link does not fail or time out asynchronously, and the caller immediately knows whether set_link succeeded or failed. So I think this command is not strictly necessary as implied by the commit description, but it is useful if the QMP client wishes to query the current link status. > +SQMP > +get_link_status > +-------- > + > +Get the link status of a network adapter. > + > +Arguments: > + > +- "name": network device name (json-string) > + > +Example: > + > +-> { "execute": "set_link", "arguments": { "name": "e1000.0" } } > +<- { "return": {1} } > +EQMP Please add a query-link-status command. All QMP commands that fetch data are called query-*. --WYTEVAkct0FjGQmd Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQEcBAEBAgAGBQJVETQrAAoJEJykq7OBq3PI5EkH/j5wTQ/+vSE7LBARVy0ikypX hpTWvikJnNJNnjWuzXzf7qq4K1DRvYrounKbGEdZvtIkzLhzgIuVmjHJ7Mo9efG0 Ka6Gf/nR1b1JbdLuCxzNBY/lHAOi+qIcBl39OImMD4BBRei099olOq+CPSJES6ln Mdt1Jz2b59YJvho6FdJy+v6HS1Ai+NKAjqzGuZwpibEQ3vabiE18WNA8docIAgBJ HHs4XaJmlSvQevTaTPQM86h0MhQL3uI4D6HD3tqwEIbi5DvwfMNXy55IgM4DbuEQ epFxTLyDFE+sWuJeG0qlz5nwMNY9mJ3F94H2imDUHPC5DkjlVI1i677np0TdYdM= =HHa4 -----END PGP SIGNATURE----- --WYTEVAkct0FjGQmd--