filter-rewriter: introduce filter-rewriter initialization
authorZhang Chen <zhangchen.fnst@cn.fujitsu.com>
Tue, 27 Sep 2016 02:22:32 +0000 (10:22 +0800)
committerJason Wang <jasowang@redhat.com>
Tue, 27 Sep 2016 09:54:22 +0000 (17:54 +0800)
commite6eee8ab5148aee369416e5126d6d149319579be
treea970b490e104c97f2c81eedf7ed9b9f1c09aebd2
parentf4b618360e5a81b097e2e35d52011bec3c63af68
filter-rewriter: introduce filter-rewriter initialization

Filter-rewriter is a part of COLO project.
It will rewrite some of secondary packet to make
secondary guest's tcp connection established successfully.
In this module we will rewrite tcp packet's ack to the secondary
from primary,and rewrite tcp packet's seq to the primary from
secondary.

usage:

colo secondary:
-object filter-redirector,id=f1,netdev=hn0,queue=tx,indev=red0
-object filter-redirector,id=f2,netdev=hn0,queue=rx,outdev=red1
-object filter-rewriter,id=rew0,netdev=hn0,queue=all

Signed-off-by: Zhang Chen <zhangchen.fnst@cn.fujitsu.com>
Signed-off-by: Li Zhijian <lizhijian@cn.fujitsu.com>
Signed-off-by: Wen Congyang <wency@cn.fujitsu.com>
Signed-off-by: Jason Wang <jasowang@redhat.com>
net/Makefile.objs
net/filter-rewriter.c [new file with mode: 0644]
qemu-options.hx
vl.c