diff options
| author | Zhang Chen <zhangchen.fnst@cn.fujitsu.com> | 2017-07-04 14:53:52 +0800 |
|---|---|---|
| committer | Jason Wang <jasowang@redhat.com> | 2017-07-17 20:13:50 +0800 |
| commit | aa3a7032f73f603818ea3e781b19ce8eab0d33f1 (patch) | |
| tree | de1edbd56d51f87a372e284c33f96550cd3eac40 /qemu-options.hx | |
| parent | 3037e7a5b7670e9b99dd61e3fe4b9e41ce8c1143 (diff) | |
| download | focaccia-qemu-aa3a7032f73f603818ea3e781b19ce8eab0d33f1.tar.gz focaccia-qemu-aa3a7032f73f603818ea3e781b19ce8eab0d33f1.zip | |
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>
Diffstat (limited to 'qemu-options.hx')
| -rw-r--r-- | qemu-options.hx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/qemu-options.hx b/qemu-options.hx index b86c09efa1..91a25ee3b9 100644 --- a/qemu-options.hx +++ b/qemu-options.hx @@ -4282,13 +4282,13 @@ Dump the network traffic on netdev @var{dev} to the file specified by The file format is libpcap, so it can be analyzed with tools such as tcpdump or Wireshark. -@item -object colo-compare,id=@var{id},primary_in=@var{chardevid},secondary_in=@var{chardevid}, -outdev=@var{chardevid} +@item -object colo-compare,id=@var{id},primary_in=@var{chardevid},secondary_in=@var{chardevid},outdev=@var{chardevid}[,vnet_hdr_support] Colo-compare gets packet from primary_in@var{chardevid} and secondary_in@var{chardevid}, than compare primary packet with secondary packet. If the packets are same, we will output primary packet to outdev@var{chardevid}, else we will notify colo-frame do checkpoint and send primary packet to outdev@var{chardevid}. +if it has the vnet_hdr_support flag, colo compare will send/recv packet with vnet_hdr_len. we must use it with the help of filter-mirror and filter-redirector. |