From: Eric Blake <eblake@redhat.com>
To: Scott Feldman <sfeldma@gmail.com>
Cc: "john fastabend" <john.fastabend@gmail.com>,
"Roopa Prabhu" <roopa@cumulusnetworks.com>,
"Jiří Pírko" <jiri@resnulli.us>,
qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] [PATCH 08/10] qmp: add rocker device support
Date: Mon, 05 Jan 2015 10:10:40 -0700 [thread overview]
Message-ID: <54AAC590.3010705@redhat.com> (raw)
In-Reply-To: <CAE4R7bAr-+CQT9O_CXxQTxGctsQ8PQ3jLrz1oS2FuRwG8ed6wg@mail.gmail.com>
[-- Attachment #1: Type: text/plain, Size: 2979 bytes --]
On 01/04/2015 02:16 PM, Scott Feldman wrote:
> On Fri, Jan 2, 2015 at 3:56 PM, Eric Blake <eblake@redhat.com> wrote:
>> On 12/29/2014 10:14 PM, sfeldma@gmail.com wrote:
>>> From: Scott Feldman <sfeldma@gmail.com>
>>
>> [your message came through as a top-level thread instead of in-reply-to
>> the 0/10 cover letter; please see if you can fix that before the next
>> submission]
>
> Looks like I want git send-email options --no-chain-reply-to and
> --thread, correct?
When I use git send-email, the defaults just work. But I don't know if
there is something in your ~/.gitconfig that changes the defaults, so I
also don't know if those options would restore it back to the default.
All I can suggest is experimenting with sending a test series to
yourself to see if you got settings right, before sending to the list.
You can also update the wiki if you find out what was different for your
case, and where adding options got it fixed:
http://wiki.qemu.org/Contribute/SubmitAPatch
>>> + '*tunnel_id': 'uint32', '*vlan_id': 'uint16',
>>> + '*eth_type': 'uint16', '*eth_src': 'str', '*eth_dst': 'str',
>>> + '*ip_proto': 'uint8', '*ip_tos': 'uint8', '*ip_dst': 'str' } }
>>
>> Is 'str' the right type for IP addresses, or should it be a more
>> specific type?
>
> String, using dotted-decimal notation seems best for user and script
> parsing. If it's encoded as native u32 then we need to say if it's
> host-byte-order or network-byte-order.
I can live with string if nothing is better; there's always the
possibility of an array of uint8, rather than trying to encode as a
native u32, but the further we get from normal notation, the harder it
gets to visualize what is going on. Just throwing it out to make sure
we think about it.
>>> +++ b/qmp-commands.hx
>>> @@ -3860,3 +3860,27 @@ Move mouse pointer to absolute coordinates (20000, 400).
>>> <- { "return": {} }
>>>
>>> EQMP
>>> +
>>> + {
>>> + .name = "rocker",
>>> + .args_type = "name:s",
>>> + .mhandler.cmd_new = qmp_marshal_input_rocker,
>>> + },
>>> +
>>
>> Could you also provide example exchanges for each command added (what
>> the user passes in, and what qemu responds)?
>
> Provide here or in the commit msg? Or in the code? Here's an example session:
In the .hx file. Plenty of other examples in that file to see what
format they use.
>
> (qemu) rocker sw1
> name: sw1
> id: 0x0000013512005452
> ports: 4
>
> (qemu) rocker-ports sw1
> ena/ speed/ auto
> port link duplex neg?
> sw1.1 up 10G FD No
> sw1.2 up 10G FD No
> sw1.3 !ena 10G FD No
> sw1.4 !ena 10G FD No
That's the HMP representation; I'm asking about the QMP representation
(the JSON exchange).
--
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 --]
prev parent reply other threads:[~2015-01-05 17:10 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-12-30 5:14 [Qemu-devel] [PATCH 08/10] qmp: add rocker device support sfeldma
2015-01-02 23:56 ` Eric Blake
2015-01-04 21:16 ` Scott Feldman
2015-01-04 21:24 ` Scott Feldman
2015-01-05 17:11 ` Eric Blake
2015-01-05 17:10 ` Eric Blake [this message]
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=54AAC590.3010705@redhat.com \
--to=eblake@redhat.com \
--cc=jiri@resnulli.us \
--cc=john.fastabend@gmail.com \
--cc=qemu-devel@nongnu.org \
--cc=roopa@cumulusnetworks.com \
--cc=sfeldma@gmail.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 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).