aboutsummaryrefslogtreecommitdiff
path: root/net/colo-compare.c
diff options
context:
space:
mode:
authorZhang Chen <zhangchen.fnst@cn.fujitsu.com>2017-07-04 14:53:50 +0800
committerJason Wang <jasowang@redhat.com>2017-07-17 20:13:48 +0800
commitada1a33f9a690b95d32115b38b88a33cb66c83bd (patch)
tree791f16e563bca412faabee8dea8151d1eb25aacd /net/colo-compare.c
parent00d5c2406bceb2eb5b77b47948311bf3ef8653a7 (diff)
downloadqemu-ada1a33f9a690b95d32115b38b88a33cb66c83bd.zip
qemu-ada1a33f9a690b95d32115b38b88a33cb66c83bd.tar.gz
qemu-ada1a33f9a690b95d32115b38b88a33cb66c83bd.tar.bz2
net/colo.c: Make vnet_hdr_len as packet property
We can use this property flush and send packet with vnet_hdr_len. Signed-off-by: Zhang Chen <zhangchen.fnst@cn.fujitsu.com> Signed-off-by: Jason Wang <jasowang@redhat.com>
Diffstat (limited to 'net/colo-compare.c')
-rw-r--r--net/colo-compare.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/net/colo-compare.c b/net/colo-compare.c
index ea9bccc..9c2b1ea 100644
--- a/net/colo-compare.c
+++ b/net/colo-compare.c
@@ -121,9 +121,13 @@ static int packet_enqueue(CompareState *s, int mode)
Connection *conn;
if (mode == PRIMARY_IN) {
- pkt = packet_new(s->pri_rs.buf, s->pri_rs.packet_len);
+ pkt = packet_new(s->pri_rs.buf,
+ s->pri_rs.packet_len,
+ s->pri_rs.vnet_hdr_len);
} else {
- pkt = packet_new(s->sec_rs.buf, s->sec_rs.packet_len);
+ pkt = packet_new(s->sec_rs.buf,
+ s->sec_rs.packet_len,
+ s->sec_rs.vnet_hdr_len);
}
if (parse_packet_early(pkt)) {