From: Jan Kiszka <jan.kiszka@siemens.com>
To: Zhi Yong Wu <zwu.kernel@gmail.com>
Cc: "stefanha@linux.vnet.ibm.com" <stefanha@linux.vnet.ibm.com>,
"kvm@vger.kernel.org" <kvm@vger.kernel.org>,
"linuxram@us.ibm.com" <linuxram@us.ibm.com>,
"qemu-devel@nongnu.org" <qemu-devel@nongnu.org>,
"wuzhy@linux.vnet.ibm.com" <wuzhy@linux.vnet.ibm.com>,
"pbonzini@redhat.com" <pbonzini@redhat.com>
Subject: Re: [Qemu-devel] [PATCH v2 13/15] net: Remove obsolete vlan info
Date: Thu, 24 May 2012 12:01:44 -0300 [thread overview]
Message-ID: <4FBE4D58.8030701@siemens.com> (raw)
In-Reply-To: <CAEH94LjZfTbLZ8whyhVC2czy0naV+mKu=oMiPfgjnzcCX=YtNw@mail.gmail.com>
On 2012-05-24 11:51, Zhi Yong Wu wrote:
> On Thu, May 24, 2012 at 10:43 PM, Jan Kiszka <jan.kiszka@siemens.com> wrote:
>> On 2012-05-24 11:38, Zhi Yong Wu wrote:
>>> On Thu, May 24, 2012 at 10:31 PM, Jan Kiszka <jan.kiszka@siemens.com> wrote:
>>>> On 2012-05-24 11:27, Zhi Yong Wu wrote:
>>>>> On Thu, May 24, 2012 at 10:25 PM, Jan Kiszka <jan.kiszka@siemens.com> wrote:
>>>>>> Something mangled your reply and made it unreadable. Please retry.
>>>>> Sorry. let it look like below. Do you think of it? typ=hubport
>>>>>
>>>>> (qemu) info network
>>>>> virtio-net-pci.0: type=nic,model=virtio-net-pci,macaddr=52:54:00:12:34:56
>>>>> \ hub0port0: type=hubport,
>>>>> virtio-net-pci.1: type=nic,model=virtio-net-pci,macaddr=52:54:00:12:34:57
>>>>> \ hub1port0: type=hubport,
>>>>> virtio-net-pci.2: type=nic,model=virtio-net-pci,macaddr=52:54:00:12:34:58
>>>>> \ u: type=user,net=10.0.2.0,restrict=off
>>>>> e1000.0: type=nic,model=e1000,macaddr=52:54:00:12:34:59
>>>>> \ ur: type=user,net=10.0.2.0,restrict=off
>>>>> hub 1
>>>>> port 1 peer user.1
>>>>> port 0 peer virtio-net-pci.1
>>>>> hub 0
>>>>> port 1 peer user.0
>>>>> port 0 peer virtio-net-pci.0
>>>>
>>>> My question remains: What added value we get from listing the hubs with
>>>> its ports separately from the port connections? Also, how would this be
>>>> printed:
>>>>
>>>> -net user -net dump -net nic
>>> (qemu) info network
>>> virtio-net-pci.0: type=nic,model=virtio-net-pci,macaddr=52:54:00:12:34:56
>>> \ hub0port0: type=hubport,
>>> virtio-net-pci.1: type=nic,model=virtio-net-pci,macaddr=52:54:00:12:34:57
>>> \ hub1port0: type=hubport,
>>> hub 1
>>> port 2 peer dump.0
>>> port 1 peer user.1
>>> port 0 peer virtio-net-pci.1
>>> hub 0
>>> port 1 peer user.0
>>> port 0 peer virtio-net-pci.0
>>> (qemu)
>>>
>>>>
>>>> The user should only be interested in the fact that user.0, dump.0 and
>>>> <some_nic>.0 are attached to the same hub, not to which port of that hub.
>>> OK, then let it seem like below. right?
>>>
>>> (qemu) info network
>>> virtio-net-pci.0: type=nic,model=virtio-net-pci,macaddr=52:54:00:12:34:56
>>> \ hub0port0: type=hubport,
>>> virtio-net-pci.1: type=nic,model=virtio-net-pci,macaddr=52:54:00:12:34:57
>>> \ hub1port0: type=hubport,
>>> hub 1
>>> \ dump.0
>>> \ user.1
>>> \ virtio-net-pci.1
>>> hub 0
>>> \ user.0
>>> \ virtio-net-pci.0
>>> (qemu)
>>
>> And, still, what is the added value of this verbose form compared to my
> They are same, i think.
Then let's got for the more compact form I proposed.
>> compact proposal? Please don't remark that it's easier to implement. ;)
> The implementation is not one difficult thing, if we reach agreement
> about its layout.
> For those NIC which aren't in one hub, they should been kept compact
> with old qemu form.
Yes. The form would be
peer
\ peer
for the classic couples and
hub
\ peer
\ peer
\ ...
for those that are attached to a hub.
Jan
--
Siemens AG, Corporate Technology, CT T DE IT 1
Corporate Competence Center Embedded Linux
next prev parent reply other threads:[~2012-05-24 15:02 UTC|newest]
Thread overview: 40+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-05-23 15:13 [Qemu-devel] [PATCH v2 00/15] net: hub-based networking zwu.kernel
2012-05-23 15:13 ` [Qemu-devel] [PATCH v2 01/15] net: Add a hub net client zwu.kernel
2012-05-23 15:13 ` [Qemu-devel] [PATCH v2 02/15] net: Use hubs for the vlan feature zwu.kernel
2012-05-23 15:13 ` [Qemu-devel] [PATCH v2 03/15] net: Look up 'vlan' net clients using hubs zwu.kernel
2012-05-23 15:13 ` [Qemu-devel] [PATCH v2 04/15] hub: Check that hubs are configured correctly zwu.kernel
2012-05-23 15:13 ` [Qemu-devel] [PATCH v2 05/15] net: Drop vlan argument to qemu_new_net_client() zwu.kernel
2012-05-23 15:13 ` [Qemu-devel] [PATCH v2 06/15] net: Remove vlan qdev property zwu.kernel
2012-05-23 15:13 ` [Qemu-devel] [PATCH v2 07/15] net: Remove vlan code from net.c zwu.kernel
2012-05-23 15:13 ` [Qemu-devel] [PATCH v2 08/15] net: Remove VLANState zwu.kernel
2012-05-23 15:13 ` [Qemu-devel] [PATCH v2 09/15] net: Rename non_vlan_clients to net_clients zwu.kernel
2012-05-23 15:14 ` [Qemu-devel] [PATCH v2 10/15] net: Rename VLANClientState to NetClientState zwu.kernel
2012-05-23 15:14 ` [Qemu-devel] [PATCH v2 11/15] net: Rename vc local variables to nc zwu.kernel
2012-05-23 15:14 ` [Qemu-devel] [PATCH v2 12/15] net: Rename qemu_del_vlan_client() to qemu_del_net_client() zwu.kernel
2012-05-23 15:14 ` [Qemu-devel] [PATCH v2 13/15] net: Remove obsolete vlan info zwu.kernel
2012-05-23 15:41 ` Jan Kiszka
2012-05-24 2:42 ` Zhi Yong Wu
2012-05-24 12:09 ` Jan Kiszka
2012-05-24 12:27 ` Zhi Yong Wu
2012-05-24 13:30 ` Jan Kiszka
2012-05-24 14:12 ` Zhi Yong Wu
2012-05-24 14:24 ` Jan Kiszka
2012-05-24 12:34 ` Zhi Yong Wu
2012-05-24 13:33 ` Jan Kiszka
2012-05-24 14:14 ` Zhi Yong Wu
2012-05-24 14:25 ` Jan Kiszka
2012-05-24 14:27 ` Zhi Yong Wu
2012-05-24 14:31 ` Jan Kiszka
2012-05-24 14:38 ` Zhi Yong Wu
2012-05-24 14:43 ` Jan Kiszka
2012-05-24 14:51 ` Zhi Yong Wu
2012-05-24 15:01 ` Jan Kiszka [this message]
2012-05-24 14:59 ` Zhi Yong Wu
2012-05-24 12:54 ` Zhi Yong Wu
2012-05-23 15:14 ` [Qemu-devel] [PATCH v2 14/15] net: cleanup deliver/deliver_iov func pointers zwu.kernel
2012-05-23 15:14 ` [Qemu-devel] [PATCH v2 15/15] net: invoke qemu_can_send_packet only before net queue sending function zwu.kernel
2012-05-23 16:00 ` Paolo Bonzini
2012-05-24 4:05 ` Zhi Yong Wu
2012-05-24 10:07 ` Paolo Bonzini
2012-05-24 11:58 ` Zhi Yong Wu
2012-05-24 12:02 ` Paolo Bonzini
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=4FBE4D58.8030701@siemens.com \
--to=jan.kiszka@siemens.com \
--cc=kvm@vger.kernel.org \
--cc=linuxram@us.ibm.com \
--cc=pbonzini@redhat.com \
--cc=qemu-devel@nongnu.org \
--cc=stefanha@linux.vnet.ibm.com \
--cc=wuzhy@linux.vnet.ibm.com \
--cc=zwu.kernel@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).