ht (c) 2016 FUJITSU LIMITED
+ * Copyright (c) 2016 Intel Corporation
+ *
+ * Author: Zhang Chen
+ *
+ * This work is licensed under the terms of the GNU GPL, version 2 or
+ * later. See the COPYING file in the top-level directory.
+ */
+
+#include "net/filter.h"
+#include "net/ne
On 01/27/2016 08:44 AM, Hailiang Zhang wrote:
On 2016/1/26 16:59, Zhang Chen wrote:
From: ZhangChen
Traffic-mirrorer is a plugin of netfilter.
It make qemu has ability to copy and mirror guest's
net packet. we output packet to chardev.
usage:
-netdev tap,id=hn0
-chardev sock
On 01/27/2016 03:46 AM, Dr. David Alan Gilbert wrote:
* Yang Hongyang (hongyang.y...@easystack.cn) wrote:
On 01/26/2016 04:59 PM, Zhang Chen wrote:
From: ZhangChen
Traffic-mirrorer is a plugin of netfilter.
netfilter plugin
fix
It make qemu has ability to copy and mirror guest'
, LTD.
+ * Copyright (c) 2016 FUJITSU LIMITED
+ * Copyright (c) 2016 Intel Corporation
+ *
+ * Author: Zhang Chen
+ *
+ * This work is licensed under the terms of the GNU GPL, version 2 or
+ * later. See the COPYING file in the top-level directory.
+ */
+
+#include "net/filter.h"
+#include "
On 01/28/2016 12:10 AM, Eric Blake wrote:
On 01/26/2016 05:44 PM, Hailiang Zhang wrote:
On 2016/1/26 16:59, Zhang Chen wrote:
From: ZhangChen
Traffic-mirrorer is a plugin of netfilter.
It make qemu has ability to copy and mirror guest's
net packet. we output packet to chardev.
+s
On 01/28/2016 01:44 PM, Jason Wang wrote:
On 01/27/2016 10:40 AM, Zhang Chen wrote:
From: ZhangChen
Traffic-mirror is a netfilter plugin.
It gives qemu the ability to copy and mirror guest's
net packet. we output packet to chardev.
usage:
-netdev tap,id=hn0
-chardev socket,id=mi
On 01/28/2016 04:37 PM, Jason Wang wrote:
On 01/28/2016 03:44 PM, Zhang Chen wrote:
On 01/28/2016 01:44 PM, Jason Wang wrote:
On 01/27/2016 10:40 AM, Zhang Chen wrote:
From: ZhangChen
Traffic-mirror is a netfilter plugin.
It gives qemu the ability to copy and mirror guest's
net p
From: ZhangChen
Filter-mirror is a netfilter plugin.
It gives qemu the ability to copy and mirror guest's
net packet. we output packet to chardev.
v3:
- Add filter-mirror unit test according
to Jason's comments
- Address zhanghailiang's comments.
- Address Jason's comments.
v2:
- Addres
+1,285 @@
+/*
+ * QTest testcase for filter-mirror
+ *
+ * Copyright (c) 2016 FUJITSU LIMITED
+ * Author: Zhang chen
+ *
+ * This work is licensed under the terms of the GNU GPL, version 2 or
+ * later. See the COPYING file in the top-level directory.
+ */
+
+#include
+#include "libqtest.h"
UAWEI TECHNOLOGIES CO., LTD.
+ * Copyright (c) 2016 FUJITSU LIMITED
+ * Copyright (c) 2016 Intel Corporation
+ *
+ * Author: Zhang Chen
+ *
+ * This work is licensed under the terms of the GNU GPL, version 2 or
+ * later. See the COPYING file in the top-level directory.
+ */
+
+#include "net/filter.h&
On 02/04/2016 03:43 PM, Zhang Chen wrote:
From: ZhangChen
Filter-mirror is a netfilter plugin.
It gives qemu the ability to copy and mirror guest's
net packet. we output packet to chardev.
usage:
-netdev tap,id=hn0
-chardev socket,id=mirror0,host=ip_primary,port=X,server,nowait
-f
On 11/10/2015 06:54 PM, Dr. David Alan Gilbert wrote:
* Tkid (zhangchen.f...@cn.fujitsu.com) wrote:
Hi,all
We are planning to reimplement colo proxy in userspace (Here is in qemu) to
cache and compare net packets.This module is one of the important components
of COLO project and now it is sti
ector.c b/net/filter-redirector.c
new file mode 100644
index 000..364e463
--- /dev/null
+++ b/net/filter-redirector.c
@@ -0,0 +1,245 @@
+/*
+ * Copyright (c) 2016 HUAWEI TECHNOLOGIES CO., LTD.
+ * Copyright (c) 2016 FUJITSU LIMITED
+ * Copyright (c) 2016 Intel Corporation
+ *
+ * Autho
On 02/15/2016 01:23 PM, Jason Wang wrote:
On 02/04/2016 05:00 PM, Zhang Chen wrote:
On 02/04/2016 03:43 PM, Zhang Chen wrote:
From: ZhangChen
Filter-mirror is a netfilter plugin.
It gives qemu the ability to copy and mirror guest's
net packet. we output packet to chardev.
To ma
On 02/15/2016 03:06 PM, Zhang Chen wrote:
On 02/15/2016 01:23 PM, Jason Wang wrote:
On 02/04/2016 05:00 PM, Zhang Chen wrote:
On 02/04/2016 03:43 PM, Zhang Chen wrote:
From: ZhangChen
Filter-mirror is a netfilter plugin.
It gives qemu the ability to copy and mirror guest's
net p
On 02/15/2016 01:54 PM, Jason Wang wrote:
On 02/04/2016 03:43 PM, Zhang Chen wrote:
From: ZhangChen
Using qtest qmp interface to implement following cases:
1) add/remove filter-mirror
2) add a filter-mirror then delete the netdev
3) add/remove more than one filter-mirrors
4) add more than
On 02/18/2016 10:41 AM, Jason Wang wrote:
On 02/05/2016 02:50 PM, Zhang Chen wrote:
From: ZhangChen
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
FUJITSU LIMITED
+ * Copyright (c) 2016 Intel Corporation
+ *
+ * Author: Zhang Chen
+ *
+ * This work is licensed under the terms of the GNU GPL, version 2 or
+ * later. See the COPYING file in the top-level directory.
+ */
+
+#include "net/filter.h"
+#include "net/net.h"
+#in
From: ZhangChen
Filter-mirror is a netfilter plugin.
It gives qemu the ability to mirror
packets to a chardev.
v4:
- Address Jason's comments.
v3:
- Add filter-mirror unit test according
to Jason's comments
- Address zhanghailiang's comments.
- Address Jason's comments.
v2:
- Address
@@
+/*
+ * QTest testcase for filter-mirror
+ *
+ * Copyright (c) 2016 FUJITSU LIMITED
+ * Author: Zhang chen
+ *
+ * This work is licensed under the terms of the GNU GPL, version 2 or
+ * later. See the COPYING file in the top-level directory.
+ */
+
+#include
+#include "libqtest.h"
+#include &
for Non-stop Service (COLO)
+ * (a.k.a. Fault Tolerance or Continuous Replication)
+ *
+ * Copyright (c) 2015 HUAWEI TECHNOLOGIES CO., LTD.
+ * Copyright (c) 2015 FUJITSU LIMITED
+ * Copyright (c) 2015 Intel Corporation
+ *
+ * Author: Zhang Chen
+ *
+ * This work is licensed under the terms of the
From: zhangchen
Enqueue packets sent by primary and packets sent by secondary
Signed-off-by: zhangchen
---
net/colo-proxy.c | 71
1 file changed, 71 insertions(+)
diff --git a/net/colo-proxy.c b/net/colo-proxy.c
index a664e6d..5f1852a 1
TECHNOLOGIES CO., LTD.
+ * Copyright (c) 2015 FUJITSU LIMITED
+ * Copyright (c) 2015 Intel Corporation
+ *
+ * Author: Zhang Chen
+ *
+ * This work is licensed under the terms of the GNU GPL, version 2 or
+ * later. See the COPYING file in the top-level directory.
+ */
+
+#ifndef QEMU_JHASH_H__
+#define
From: zhangchen
Secondary setup socket server for colo-forward
primary setup connect to secondary for colo-forward
add data structure will be uesed
Signed-off-by: zhangchen
---
net/colo-proxy.c | 87 +++-
net/colo-proxy.h | 61 +++
From: zhangchen
add colo-proxy in vl.c and qemu-options.hx
Signed-off-by: zhangchen
---
qemu-options.hx | 4
vl.c| 3 ++-
2 files changed, 6 insertions(+), 1 deletion(-)
diff --git a/qemu-options.hx b/qemu-options.hx
index 949db7f..5e6f1e3 100644
--- a/qemu-options.hx
+++ b/q
From: zhangchen
The packet recv by primary forward to secondary
The packet send by secondary forward to primary
Signed-off-by: zhangchen
---
net/colo-proxy.c | 118 +--
1 file changed, 114 insertions(+), 4 deletions(-)
diff --git a/net/colo-
From: zhangchen
add primary and secondary handler
Signed-off-by: zhangchen
---
net/colo-proxy.c | 105 +--
1 file changed, 103 insertions(+), 2 deletions(-)
diff --git a/net/colo-proxy.c b/net/colo-proxy.c
index 89d9616..ece5661 100644
--- a
From: zhangchen
Add common packet handle function and enqueue
packet distinguished connection,then we can
lookup one connection packet to compare
Signed-off-by: zhangchen
---
net/colo-proxy.c | 167 ++-
1 file changed, 166 insertions(+), 1 de
From: zhangchen
Lookup same connection's primary and secondary packet
to compare,if same we will send primary packet and
drop secondary packet,else send all of primary
packets be queued,drop secondary queue and notify
colo to do checkpoint
Signed-off-by: zhangchen
---
net/colo-proxy.c | 74 +++
Hi,all
This patch add an colo-proxy object, COLO-Proxy is a part of COLO,
based on qemu netfilter and it's a plugin for qemu netfilter. the function
keep Secondary VM connect normal to Primary VM and compare packets
sent by PVM to sent by SVM.if the packet difference,notify COLO do
checkpoint an
On 11/28/2015 10:46 AM, Hailiang Zhang wrote:
On 2015/11/27 20:27, Zhang Chen wrote:
From: zhangchen
Colo-proxy is a plugin of qemu netfilter
like filter-buffer and dump
Signed-off-by: zhangchen
---
net/Makefile.objs | 1 +
net/colo-proxy.c | 139
On 11/28/2015 11:02 AM, Hailiang Zhang wrote:
On 2015/11/27 20:27, Zhang Chen wrote:
From: zhangchen
Secondary setup socket server for colo-forward
primary setup connect to secondary for colo-forward
add data structure will be uesed
Signed-off-by: zhangchen
---
net/colo-proxy.c | 87
On 11/28/2015 11:17 AM, Hailiang Zhang wrote:
On 2015/11/27 20:27, Zhang Chen wrote:
From: zhangchen
add primary and secondary handler
Signed-off-by: zhangchen
---
net/colo-proxy.c | 105
+--
1 file changed, 103 insertions(+), 2
On 11/30/2015 10:50 AM, Wen Congyang wrote:
On 11/27/2015 08:27 PM, Zhang Chen wrote:
From: zhangchen
add colo-proxy in vl.c and qemu-options.hx
Signed-off-by: zhangchen
---
qemu-options.hx | 4
vl.c| 3 ++-
2 files changed, 6 insertions(+), 1 deletion(-)
diff --git
On 11/30/2015 11:10 AM, Wen Congyang wrote:
On 11/27/2015 08:27 PM, Zhang Chen wrote:
From: zhangchen
Colo-proxy is a plugin of qemu netfilter
like filter-buffer and dump
Signed-off-by: zhangchen
---
net/Makefile.objs | 1 +
net/colo-proxy.c | 139
Hi,Dave
On 12/01/2015 07:23 PM, Dr. David Alan Gilbert wrote:
* Zhang Chen (zhangchen.f...@cn.fujitsu.com) wrote:
From: zhangchen
This used by colo-proxy to save and lookup
connection info
Signed-off-by: zhangchen
---
include/qemu/jhash.h | 52
Hi,Dave
On 12/01/2015 11:35 PM, Dr. David Alan Gilbert wrote:
* Zhang Chen (zhangchen.f...@cn.fujitsu.com) wrote:
From: zhangchen
Secondary setup socket server for colo-forward
primary setup connect to secondary for colo-forward
add data structure will be uesed
I wodner if it's pos
Hi,Dave
On 12/01/2015 11:50 PM, Dr. David Alan Gilbert wrote:
* Zhang Chen (zhangchen.f...@cn.fujitsu.com) wrote:
From: zhangchen
The packet recv by primary forward to secondary
The packet send by secondary forward to primary
Signed-off-by: zhangchen
---
net/colo-proxy.c | 118
Hi,Dave
On 12/02/2015 12:12 AM, Dr. David Alan Gilbert wrote:
* Zhang Chen (zhangchen.f...@cn.fujitsu.com) wrote:
From: zhangchen
Add common packet handle function and enqueue
packet distinguished connection,then we can
lookup one connection packet to compare
Signed-off-by: zhangchen
Hi,Dave
On 12/02/2015 12:37 AM, Dr. David Alan Gilbert wrote:
* Zhang Chen (zhangchen.f...@cn.fujitsu.com) wrote:
From: zhangchen
Lookup same connection's primary and secondary packet
to compare,if same we will send primary packet and
drop secondary packet,else send all of primary
pa
Hi,Dave
On 12/02/2015 12:44 AM, Dr. David Alan Gilbert wrote:
* Zhang Chen (zhangchen.f...@cn.fujitsu.com) wrote:
Hi,all
This patch add an colo-proxy object, COLO-Proxy is a part of COLO,
based on qemu netfilter and it's a plugin for qemu netfilter. the function
keep Secondary VM co
Hi,Dave
On 12/03/2015 05:09 PM, Dr. David Alan Gilbert wrote:
* Zhang Chen (zhangchen.f...@cn.fujitsu.com) wrote:
Hi,Dave
On 12/02/2015 12:12 AM, Dr. David Alan Gilbert wrote:
* Zhang Chen (zhangchen.f...@cn.fujitsu.com) wrote:
From: zhangchen
Add common packet handle function and
On 01/08/2016 07:19 PM, Dr. David Alan Gilbert wrote:
* Zhang Chen (zhangchen.f...@cn.fujitsu.com) wrote:
From: zhangchen
Hi,all
This patch add an colo-proxy object, COLO-Proxy is a part of COLO,
based on qemu netfilter and it's a plugin for qemu netfilter. the function
keep Seconda
On 01/08/2016 08:08 PM, Dr. David Alan Gilbert wrote:
* Zhang Chen (zhangchen.f...@cn.fujitsu.com) wrote:
From: zhangchen
Jhash used by colo-proxy to save and lookup
net connection info
Signed-off-by: zhangchen
Signed-off-by: zhanghailiang
---
include/qemu/jhash.h | 61
On 01/11/2016 08:50 PM, Dr. David Alan Gilbert wrote:
* Zhang Chen (zhangchen.f...@cn.fujitsu.com) wrote:
On 01/08/2016 08:08 PM, Dr. David Alan Gilbert wrote:
* Zhang Chen (zhangchen.f...@cn.fujitsu.com) wrote:
From: zhangchen
Jhash used by colo-proxy to save and lookup
net connection
On 01/11/2016 08:59 PM, Dr. David Alan Gilbert wrote:
* Zhang Chen (zhangchen.f...@cn.fujitsu.com) wrote:
On 01/08/2016 07:19 PM, Dr. David Alan Gilbert wrote:
* Zhang Chen (zhangchen.f...@cn.fujitsu.com) wrote:
From: zhangchen
Hi,all
This patch add an colo-proxy object, COLO-Proxy is a
On 01/06/2016 01:16 PM, Jason Wang wrote:
On 01/04/2016 07:17 PM, Zhang Chen wrote:
On 01/04/2016 05:46 PM, Jason Wang wrote:
On 01/04/2016 04:16 PM, Zhang Chen wrote:
On 01/04/2016 01:37 PM, Jason Wang wrote:
On 12/31/2015 04:40 PM, Zhang Chen wrote:
On 12/31/2015 10:36 AM, Jason Wang
On 01/16/2016 02:21 AM, Dr. David Alan Gilbert wrote:
* Zhang Chen (zhangchen.f...@cn.fujitsu.com) wrote:
From: zhangchen
add colo-proxy to vl.c and qemu-options.hx
add trace-colo-proxy relation
Signed-off-by: zhangchen
Signed-off-by: zhanghailiang
---
qemu-options.hx | 6
Sure.
Two main comments/suggestions:
- TCP analysis is missed in current version, maybe you point a git tree
(or another version of RFC) to me for a better understanding of the
design. (Just a skeleton for TCP should be sufficient to discuss).
- I prefer to make the code as reusable as possibl
From: zhangchen
Jhash used by colo-proxy to save and lookup
net connection info
Signed-off-by: zhangchen
Signed-off-by: zhanghailiang
---
include/qemu/jhash.h | 61
1 file changed, 61 insertions(+)
create mode 100644 include/qemu/jhash.h
From: zhangchen
Colo need to forward packets
we start socket server in secondary and primary
connect to secondary in startup
the packet recv by primary forward to secondary
the packet send by secondary forward to primary
Signed-off-by: zhangchen
Signed-off-by: zhanghailiang
---
net/colo-proxy
From: zhangchen
Hi,all
This patch add an colo-proxy object, COLO-Proxy is a part of COLO,
based on qemu netfilter and it's a plugin for qemu netfilter. the function
keep Secondary VM connect normal to Primary VM and compare packets
sent by PVM to sent by SVM.if the packet difference,notify COLO
From: zhangchen
add colo-proxy to vl.c and qemu-options.hx
add trace-colo-proxy relation
Signed-off-by: zhangchen
Signed-off-by: zhanghailiang
---
qemu-options.hx | 6 ++
trace-events| 8
vl.c| 3 ++-
3 files changed, 16 insertions(+), 1 deletion(-)
diff --git a/
Virtual Machines for Non-stop Service (COLO)
+ * (a.k.a. Fault Tolerance or Continuous Replication)
+ *
+ * Copyright (c) 2015 HUAWEI TECHNOLOGIES CO., LTD.
+ * Copyright (c) 2015 FUJITSU LIMITED
+ * Copyright (c) 2015 Intel Corporation
+ *
+ * Author: Zhang Chen
+ *
+ * This work is licensed under the
From: zhangchen
Add common packet handle function and enqueue
packet distinguished connection,then we can
lookup one connection packet to compare
Signed-off-by: zhangchen
Signed-off-by: zhanghailiang
---
net/colo-proxy.c | 148 ++-
1 file ch
From: zhangchen
add data structure and hash func will be uesed
Signed-off-by: zhangchen
Signed-off-by: zhanghailiang
---
net/colo-proxy.c | 66
1 file changed, 66 insertions(+)
diff --git a/net/colo-proxy.c b/net/colo-proxy.c
index 2e3
From: zhangchen
In here we will handle ip packet and connection
Signed-off-by: zhangchen
Signed-off-by: zhanghailiang
---
net/colo-proxy.c | 130 +++
1 file changed, 130 insertions(+)
diff --git a/net/colo-proxy.c b/net/colo-proxy.c
index 5
From: zhangchen
Do checkpoint and flush
Signed-off-by: zhangchen
Signed-off-by: zhanghailiang
---
net/colo-proxy.c | 88
1 file changed, 88 insertions(+)
diff --git a/net/colo-proxy.c b/net/colo-proxy.c
index abb289f..79b1b1b 100644
--
From: zhangchen
Add interface used by migration/colo.c
so colo framework can work with proxy
Signed-off-by: zhangchen
Signed-off-by: zhanghailiang
---
net/colo-proxy.c | 93
1 file changed, 93 insertions(+)
diff --git a/net/colo-proxy.
From: zhangchen
We will compare packet sent by primary guest
to secondary guest,if same,send primary packet.
else we will notify colo to do checkpoint to
make secondary guset running same as primary
Signed-off-by: zhangchen
Signed-off-by: zhanghailiang
---
net/colo-proxy.c | 64 ++
Hi~
Just a small ping...
No news for a week.
Colo proxy is a part of COLO project, we need review and comments.
Thanks
zhangchen
On 12/22/2015 06:42 PM, Zhang Chen wrote:
From: zhangchen
Hi,all
This patch add an colo-proxy object, COLO-Proxy is a part of COLO,
based on qemu netfilter and
On 12/29/2015 02:58 PM, Jason Wang wrote:
On 12/29/2015 02:31 PM, Zhang Chen wrote:
Hi~
Just a small ping...
No news for a week.
Colo proxy is a part of COLO project, we need review and comments.
Thanks
zhangchen
Hi, will find sometime to review this this week.
Thanks
Thanks very much
On 12/31/2015 10:36 AM, Jason Wang wrote:
On 12/22/2015 06:42 PM, Zhang Chen wrote:
From: zhangchen
Hi,all
This patch add an colo-proxy object, COLO-Proxy is a part of COLO,
based on qemu netfilter and it's a plugin for qemu netfilter. the function
keep Secondary VM connect norm
On 01/04/2016 01:37 PM, Jason Wang wrote:
On 12/31/2015 04:40 PM, Zhang Chen wrote:
On 12/31/2015 10:36 AM, Jason Wang wrote:
On 12/22/2015 06:42 PM, Zhang Chen wrote:
From: zhangchen
Hi,all
This patch add an colo-proxy object, COLO-Proxy is a part of COLO,
based on qemu netfilter and
On 01/04/2016 05:46 PM, Jason Wang wrote:
On 01/04/2016 04:16 PM, Zhang Chen wrote:
On 01/04/2016 01:37 PM, Jason Wang wrote:
On 12/31/2015 04:40 PM, Zhang Chen wrote:
On 12/31/2015 10:36 AM, Jason Wang wrote:
On 12/22/2015 06:42 PM, Zhang Chen wrote:
From: zhangchen
Hi,all
This
On 02/20/2016 03:57 AM, Dr. David Alan Gilbert wrote:
* Zhang Chen (zhangchen.f...@cn.fujitsu.com) wrote:
From: zhangchen
+static void colo_proxy_setup(NetFilterState *nf, Error **errp)
+{
+COLOProxyState *s = FILTER_COLO_PROXY(nf);
+
+if (!s->addr) {
+error_setg(e
On 02/20/2016 03:58 AM, Dr. David Alan Gilbert wrote:
* Zhang Chen (zhangchen.f...@cn.fujitsu.com) wrote:
From: zhangchen
Add interface used by migration/colo.c
so colo framework can work with proxy
Signed-off-by: zhangchen
Signed-off-by: zhanghailiang
---
net/colo-proxy.c | 93
On 02/20/2016 04:01 AM, Dr. David Alan Gilbert wrote:
* Zhang Chen (zhangchen.f...@cn.fujitsu.com) wrote:
From: zhangchen
Colo need to forward packets
we start socket server in secondary and primary
connect to secondary in startup
the packet recv by primary forward to secondary
the packet
On 02/20/2016 04:04 AM, Dr. David Alan Gilbert wrote:
* Zhang Chen (zhangchen.f...@cn.fujitsu.com) wrote:
From: zhangchen
In here we will handle ip packet and connection
Signed-off-by: zhangchen
Signed-off-by: zhanghailiang
---
net/colo-proxy.c | 130
On 02/23/2016 10:03 AM, Jason Wang wrote:
On 02/18/2016 04:10 PM, Zhang Chen wrote:
From: ZhangChen
Filter-mirror is a netfilter plugin.
It gives qemu the ability to mirror
packets to a chardev.
usage:
-netdev tap,id=hn0
-chardev socket,id=mirror0,host=ip_primary,port=X,server,nowait
On 02/23/2016 10:31 AM, Jason Wang wrote:
On 02/18/2016 04:10 PM, Zhang Chen wrote:
From: ZhangChen
In this unit test we will test the mirror function.
start qemu with:
-netdev socket,id=qtest-bn0,fd=%d
-device e1000,netdev=qtest-bn0,id=qtest-e0
-chardev socket,id=mirror0
ess Jason's comments.
v2:
- Address zhanghailiang's comments.
- Address Eric Blake's comments.
- Address Yang Hongyang's comments.
- Address Dave's comments.
v1:
initial patch.
Zhang Chen (2):
net/filter-mirror:Add filter-mirror
tests/test-filter-mirror:ad
Filter-mirror is a netfilter plugin.
It gives qemu the ability to mirror
packets to a chardev.
usage:
-netdev tap,id=hn0
-chardev socket,id=mirror0,host=ip_primary,port=X,server,nowait
-filter-mirror,id=m0,netdev=hn0,queue=tx/rx/all,outdev=mirror0
Signed-off-by: Zhang Chen
Signed-off-by: Wen
,queue=tx,outdev=mirror0
We inject packet to netdev socket id = qtest-bn0,
filter-mirror will copy and mirror the packet to mirror0.
we read packet from mirror0 and then compare to what we inject.
Signed-off-by: Zhang Chen
Signed-off-by: Wen Congyang
---
tests/.gitignore | 1 +
tests
On 02/24/2016 01:58 AM, Dr. David Alan Gilbert wrote:
* Zhang Chen (zhangchen.f...@cn.fujitsu.com) wrote:
On 02/20/2016 04:04 AM, Dr. David Alan Gilbert wrote:
* Zhang Chen (zhangchen.f...@cn.fujitsu.com) wrote:
From: zhangchen
In here we will handle ip packet and connection
Signed-off
On 02/24/2016 11:22 AM, Jason Wang wrote:
On 02/23/2016 08:00 PM, Zhang Chen wrote:
Filter-mirror is a netfilter plugin.
It gives qemu the ability to mirror
packets to a chardev.
usage:
-netdev tap,id=hn0
-chardev socket,id=mirror0,host=ip_primary,port=X,server,nowait
-filter-mirror,id=m0
On 02/24/2016 11:24 AM, Jason Wang wrote:
On 02/23/2016 08:00 PM, Zhang Chen wrote:
In this unit test we will test the mirror function.
start qemu with:
-netdev socket,id=qtest-bn0,fd=sockfd
-device e1000,netdev=qtest-bn0,id=qtest-e0
-chardev socket,id=mirror0,path=/tmp
ress zhanghailiang's comments.
- Address Jason's comments.
v2:
- Address zhanghailiang's comments.
- Address Eric Blake's comments.
- Address Yang Hongyang's comments.
- Address Dave's comments.
v1:
initial patch.
Zhang Chen (2):
net/filter-mirror:Add filter-m
,queue=tx,outdev=mirror0
We inject packet to netdev socket id = qtest-bn0,
filter-mirror will copy and mirror the packet to mirror0.
we read packet from mirror0 and then compare to what we inject.
Signed-off-by: Zhang Chen
Signed-off-by: Wen Congyang
---
tests/.gitignore | 1 +
tests
Filter-mirror is a netfilter plugin.
It gives qemu the ability to mirror
packets to a chardev.
usage:
-netdev tap,id=hn0
-chardev socket,id=mirror0,host=ip_primary,port=X,server,nowait
-filter-mirror,id=m0,netdev=hn0,queue=tx/rx/all,outdev=mirror0
Signed-off-by: Zhang Chen
Signed-off-by: Wen
On 02/24/2016 11:39 AM, Jason Wang wrote:
On 02/18/2016 03:50 PM, Zhang Chen wrote:
On 02/18/2016 10:41 AM, Jason Wang wrote:
On 02/05/2016 02:50 PM, Zhang Chen wrote:
From: ZhangChen
Filter-redirector is a netfilter plugin.
It gives qemu the ability to redirect net packet.
redirector
On 02/26/2016 03:06 PM, Jason Wang wrote:
On 02/24/2016 04:08 PM, Jason Wang wrote:
On 02/24/2016 02:54 PM, Zhang Chen wrote:
Filter-mirror is a netfilter plugin.
It gives qemu the ability to mirror
packets to a chardev.
v6:
- Address Jason's comments.
v5:
- Address Jason'
g
to Jason's comments
- Address zhanghailiang's comments.
- Address Jason's comments.
v2:
- Address zhanghailiang's comments.
- Address Eric Blake's comments.
- Address Yang Hongyang's comments.
- Address Dave's comments.
v1:
initial patch.
Zhang Chen (2):
,queue=tx,outdev=mirror0
We inject packet to netdev socket id = qtest-bn0,
filter-mirror will copy and mirror the packet to mirror0.
we read packet from mirror0 and then compare to what we inject.
Signed-off-by: Zhang Chen
Signed-off-by: Wen Congyang
---
tests/.gitignore | 1 +
tests
Filter-mirror is a netfilter plugin.
It gives qemu the ability to mirror
packets to a chardev.
usage:
-netdev tap,id=hn0
-chardev socket,id=mirror0,host=ip_primary,port=X,server,nowait
-filter-mirror,id=m0,netdev=hn0,queue=tx/rx/all,outdev=mirror0
Signed-off-by: Zhang Chen
Signed-off-by: Wen
filter
|
|
v
filter--> guest
v2:
- Address Jason's comments.
- Add filter-traffic.h to reuse parts of the codes
- Add unit test case
v1:
initial patch.
Zhang Chen (3):
net/filter-traffic: add filter-t
ect packet to -chardev redirector1,then filter-redirector
will pass it to filter, another filter-redirector get it and
redirect it to redirector0,we read packet from redirector0
and compare to what we inject.
Signed-off-by: Zhang Chen
Signed-off-by: Wen Congyang
---
tests/.gitignore
We can reuse filter-traffic by filter-mirror,
filter-redirector and so on.
Signed-off-by: Zhang Chen
Signed-off-by: Wen Congyang
---
net/filter-mirror.c | 70 +++
net/filter-traffic.h | 71
2
/rx/all,indev=s0,outdev=s1
Signed-off-by: Zhang Chen
Signed-off-by: Wen Congyang
---
net/Makefile.objs | 1 +
net/filter-redirector.c | 216
qemu-options.hx | 8 ++
vl.c| 3 +-
4 files changed, 227 insertion
On 02/29/2016 03:11 PM, Jason Wang wrote:
On 02/24/2016 05:03 PM, Zhang Chen wrote:
If queue=rx, filter-redirector will get the packet that guest send,
then redirect
to outdev(if none, do nothing). but queue=rx/tx/all not related to
indev. please
look the flow chart below. queue=xxx just
On 03/01/2016 11:02 AM, Li Zhijian wrote:
On 02/29/2016 08:23 PM, Zhang Chen wrote:
We can reuse filter-traffic by filter-mirror,
filter-redirector and so on.
Is the main purpose to export filter_traffic_send() ?
IMO, define it as a public API would be better.
Using MirrorState and
On 03/02/2016 02:19 PM, Jason Wang wrote:
On 02/29/2016 08:23 PM, Zhang Chen wrote:
We can reuse filter-traffic by filter-mirror,
filter-redirector and so on.
I think we could share more than this. E.g just use filter-mirror.c to
implement both mirror and redirector.
OK, should we change
On 03/02/2016 02:31 PM, Jason Wang wrote:
On 02/29/2016 08:23 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
On 03/03/2016 02:48 PM, Jason Wang wrote:
On 03/02/2016 03:25 PM, Zhang Chen wrote:
On 03/02/2016 02:19 PM, Jason Wang wrote:
On 02/29/2016 08:23 PM, Zhang Chen wrote:
We can reuse filter-traffic by filter-mirror,
filter-redirector and so on.
I think we could share more than this. E.g
On 03/03/2016 03:24 PM, Jason Wang wrote:
On 03/03/2016 03:20 PM, Zhang Chen wrote:
On 03/03/2016 02:48 PM, Jason Wang wrote:
On 03/02/2016 03:25 PM, Zhang Chen wrote:
On 03/02/2016 02:19 PM, Jason Wang wrote:
On 02/29/2016 08:23 PM, Zhang Chen wrote:
We can reuse filter-traffic by
Change filter_mirror_send interface to make it easier
to used by other filter
Signed-off-by: Zhang Chen
Signed-off-by: Wen Congyang
---
net/filter-mirror.c | 10 +-
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/net/filter-mirror.c b/net/filter-mirror.c
index ee13d94
r0,netdev=hn0,queue=tx/rx/all,indev=s0,outdev=s1
Signed-off-by: Zhang Chen
Signed-off-by: Wen Congyang
---
net/filter-mirror.c | 211
qemu-options.hx | 8 ++
vl.c| 3 +-
3 files changed, 221 insertions(+), 1 deletion(-)
dif
-> outdev
|| |
|| |
|| |
+--+
|
|
v
filter
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.
ot;
"-chardev socket,id=redirector2,path=%s,nowait "
"-object filter-redirector,id=qtest-f0,netdev=qtest-bn0,"
"queue=rx,outdev=redirector0 "
"-object filter-redirector,id=qtest-f1,netdev=qtest-bn0,"
"queue=rx,indev=redirector2 "
"-object filter
On 03/07/2016 03:29 PM, Jason Wang wrote:
On 03/04/2016 08:01 PM, Zhang Chen wrote:
Change filter_mirror_send interface to make it easier
to used by other filter
Signed-off-by: Zhang Chen
Signed-off-by: Wen Congyang
---
net/filter-mirror.c | 10 +-
1 file changed, 5 insertions
1 - 100 of 1732 matches
Mail list logo