net/colo-compare.c: Make colo-compare support vnet_hdr_len
commitaa3a7032f73f603818ea3e781b19ce8eab0d33f1
authorZhang Chen <zhangchen.fnst@cn.fujitsu.com>
Tue, 4 Jul 2017 06:53:52 +0000 (4 14:53 +0800)
committerJason Wang <jasowang@redhat.com>
Mon, 17 Jul 2017 12:13:50 +0000 (17 20:13 +0800)
treede1edbd56d51f87a372e284c33f96550cd3eac40
parent3037e7a5b7670e9b99dd61e3fe4b9e41ce8c1143
net/colo-compare.c: Make colo-compare support vnet_hdr_len

We add the vnet_hdr_support option for colo-compare, default is disabled.
If you use virtio-net-pci or other driver needs vnet_hdr, please enable it.
You can use it for example:
-object colo-compare,id=comp0,primary_in=compare0-0,secondary_in=compare1,outdev=compare_out0,vnet_hdr_support

COLO-compare can get vnet header length from filter,
Add vnet_hdr_len to struct packet and output packet with
the vnet_hdr_len.

Signed-off-by: Zhang Chen <zhangchen.fnst@cn.fujitsu.com>
Signed-off-by: Jason Wang <jasowang@redhat.com>
net/colo-compare.c
qemu-options.hx