All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jason Wang <jasowang@redhat.com>
To: Zhang Chen <zhangchen.fnst@cn.fujitsu.com>,
	qemu devel <qemu-devel@nongnu.org>
Cc: zhanghailiang <zhang.zhanghailiang@huawei.com>,
	Li Zhijian <lizhijian@cn.fujitsu.com>,
	Gui jianfeng <guijianfeng@cn.fujitsu.com>,
	"eddie.dong" <eddie.dong@intel.com>,
	"Dr. David Alan Gilbert" <dgilbert@redhat.com>,
	Yang Hongyang <hongyang.yang@easystack.cn>
Subject: Re: [Qemu-devel] [PATCH V5 0/2] Introduce filter-redirector
Date: Thu, 17 Mar 2016 14:38:51 +0800	[thread overview]
Message-ID: <56EA50FB.7050409@redhat.com> (raw)
In-Reply-To: <1458124733-13901-1-git-send-email-zhangchen.fnst@cn.fujitsu.com>



On 03/16/2016 06:38 PM, Zhang Chen wrote:
> Filter-redirector is a netfilter plugin.
> It gives qemu the ability to redirect net packet.
> redirector can redirect filter's net packet to outdev.
> and redirect indev's packet to filter.
>
>                     filter
>                       +
>           redirector  |
>              +--------------+
>              |        |     |
>              |        |     |
>              |        |     |
>   indev +---------+   +---------->  outdev
>              |    |         |
>              |    |         |
>              |    |         |
>              +--------------+
>                   |
>                   v
>                 filter
>
>
> v5:
>  Address Jason's comments.
>  - add event to handle connection close
>  - fix some comments
>
> v4:
>  Address Jason's comments.
>  - remove redirector's incoming queue
>  - just pass packet come from in_dev to filter's next
>  - rework redirector_chr_read, most code is stolen from net_socket_send
>  - fix comments error
>  - add some comments
>
> v3:
>  -Address Jason's comments.
>
> v2:
>  - Address Jason's comments.
>  - Add filter-traffic.h to reuse parts of the codes
>  - Add unit test case
>
> v1:
>  initial patch.
>
>
> Zhang Chen (2):
>   net/filter-mirror: implement filter-redirector
>   tests/test-filter-redirector: Add unit test for filter-redirector
>
>  net/filter-mirror.c            | 245 +++++++++++++++++++++++++++++++++++++++++
>  qemu-options.hx                |   9 ++
>  tests/.gitignore               |   1 +
>  tests/Makefile                 |   2 +
>  tests/test-filter-redirector.c | 221 +++++++++++++++++++++++++++++++++++++
>  vl.c                           |   3 +-
>  6 files changed, 480 insertions(+), 1 deletion(-)
>  create mode 100644 tests/test-filter-redirector.c
>

Almost there, just few nits on patch 1. I think it could be merged after
one more iteration.

Thanks

      parent reply	other threads:[~2016-03-17  6:39 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-03-16 10:38 [Qemu-devel] [PATCH V5 0/2] Introduce filter-redirector Zhang Chen
2016-03-16 10:38 ` [Qemu-devel] [PATCH V5 1/2] net/filter-mirror: implement filter-redirector Zhang Chen
2016-03-17  6:43   ` Jason Wang
2016-03-17  6:52     ` Zhang Chen
2016-03-17  6:58     ` Li Zhijian
2016-03-17  7:44       ` Jason Wang
2016-03-16 10:38 ` [Qemu-devel] [PATCH V5 2/2] tests/test-filter-redirector: Add unit test for filter-redirector Zhang Chen
2016-03-17  6:38 ` Jason Wang [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=56EA50FB.7050409@redhat.com \
    --to=jasowang@redhat.com \
    --cc=dgilbert@redhat.com \
    --cc=eddie.dong@intel.com \
    --cc=guijianfeng@cn.fujitsu.com \
    --cc=hongyang.yang@easystack.cn \
    --cc=lizhijian@cn.fujitsu.com \
    --cc=qemu-devel@nongnu.org \
    --cc=zhang.zhanghailiang@huawei.com \
    --cc=zhangchen.fnst@cn.fujitsu.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.