All of lore.kernel.org
 help / color / mirror / Atom feed
From: Yang Hongyang <yanghy@cn.fujitsu.com>
To: "Daniel P. Berrange" <berrange@redhat.com>
Cc: thuth@redhat.com, zhanghailiang <zhang.zhanghailiang@huawei.com>,
	jasowang@redhat.com, peter.huangpeng@huawei.com,
	mrhines@linux.vnet.ibm.com, qemu-devel@nongnu.org,
	stefanha@redhat.com
Subject: Re: [Qemu-devel] [PATCH 0/9] For QEMU 2.5: Add a net filter and a netbuffer plugin based on the filter
Date: Mon, 27 Jul 2015 21:23:17 +0800	[thread overview]
Message-ID: <55B630C5.7040600@cn.fujitsu.com> (raw)
In-Reply-To: <20150727103207.GC9132@redhat.com>

Hi,

   Thank you for the comment!

On 07/27/2015 06:32 PM, Daniel P. Berrange wrote:
> On Sun, Jul 26, 2015 at 10:13:55PM +0800, Yang Hongyang wrote:
[...]
>>> Which is a little verbose for 'netdev' option.
>>
>> It's just the name diffrence, using netfilter will be
>> -netfilter ... -netfilter ...
>>
>> using plugin=xxx will make us hard to extend the plugin params under existing
>> netdev design thus will needs lots of extra effort to archive our goal, but we
>> already have a simple way, do we? and do note that Daniel's concern was based
>> on my initial RFC patch, which has a usage about "plugin=xxx", this series
>> is totally different.
>
> The current -netdev / netdev_add/netdev_del interfaces have a fairly
> static view of the world. If you just want to setup filters at the
> time you setup the guest NIC that's fine, but if you want to be able
> to dynamically change the filters that are used, without altering
> the guest device or the real host backend, I think you're going to
> run into problems using -netdev. eg consider you have a pre-exisiting
> guest running and you want to add in a 'dump' filter to temporarily
> record traffic to a file, without having any impact on guest
> connectivity. I'm not seeing how you could achieve that with the
> proposed netdev approach, because you'd basically have to delete the
> existing NIC and add a new one from scratch.

We will modify the NIC's peer when using netdev_add to add the filter.
The current netdev_add/netdev_del can be used while guest is running.
just to make sure netdev's init/cleanup can do the right thing.

>
> Regards,
> Daniel
>

-- 
Thanks,
Yang.

  reply	other threads:[~2015-07-27 13:23 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-07-24 10:55 [Qemu-devel] [PATCH 0/9] For QEMU 2.5: Add a net filter and a netbuffer plugin based on the filter Yang Hongyang
2015-07-24 10:55 ` [Qemu-devel] [PATCH 1/9] netdev: Add a net filter Yang Hongyang
2015-07-27 12:38   ` Thomas Huth
2015-07-27 13:15     ` Yang Hongyang
2015-07-24 10:55 ` [Qemu-devel] [PATCH 2/9] virtio-net: add filter support Yang Hongyang
2015-07-24 10:55 ` [Qemu-devel] [PATCH 3/9] filter: remove plugins when remove filter Yang Hongyang
2015-07-24 10:55 ` [Qemu-devel] [PATCH 4/9] filter: remove filter before remove network backend Yang Hongyang
2015-07-24 10:55 ` [Qemu-devel] [PATCH 5/9] filter: add netbuffer plugin Yang Hongyang
2015-07-24 10:55 ` [Qemu-devel] [PATCH 6/9] introduce qemu_find_net_clients_by_model Yang Hongyang
2015-07-24 10:55 ` [Qemu-devel] [PATCH 7/9] net/queue: export qemu_net_queue_append Yang Hongyang
2015-07-24 10:55 ` [Qemu-devel] [PATCH 8/9] move out net queue structs define Yang Hongyang
2015-07-24 10:55 ` [Qemu-devel] [PATCH 9/9] add a public api to release buffer Yang Hongyang
2015-07-25  5:06 ` [Qemu-devel] [PATCH 0/9] For QEMU 2.5: Add a net filter and a netbuffer plugin based on the filter zhanghailiang
2015-07-26 14:13   ` Yang Hongyang
2015-07-27 10:32     ` Daniel P. Berrange
2015-07-27 13:23       ` Yang Hongyang [this message]
2015-07-27  4:53 ` Jason Wang
2015-07-27  5:01   ` Yang Hongyang
2015-07-29 10:34 ` Yang Hongyang

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=55B630C5.7040600@cn.fujitsu.com \
    --to=yanghy@cn.fujitsu.com \
    --cc=berrange@redhat.com \
    --cc=jasowang@redhat.com \
    --cc=mrhines@linux.vnet.ibm.com \
    --cc=peter.huangpeng@huawei.com \
    --cc=qemu-devel@nongnu.org \
    --cc=stefanha@redhat.com \
    --cc=thuth@redhat.com \
    --cc=zhang.zhanghailiang@huawei.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.