mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-01 23:03:54 -06:00
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>
This commit is contained in:
parent
00d5c2406b
commit
ada1a33f9a
4 changed files with 12 additions and 5 deletions
|
@ -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)) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue