Skip to content

Commit

Permalink
net: fix qemu_announce_self not emitting packets
Browse files Browse the repository at this point in the history
commit fefe2a7 accidently dropped the code path for injecting
raw packets. This feature is needed for sending gratuitous ARPs
after an incoming migration has completed. The result is increased
network downtime for vservers where the network card is not virtio-net
with the VIRTIO_NET_F_GUEST_ANNOUNCE feature.

Fixes: fefe2a7
Cc: [email protected]
Cc: [email protected]
Signed-off-by: Peter Lieven <[email protected]>
Signed-off-by: Jason Wang <[email protected]>
  • Loading branch information
plieven authored and jasowang committed Jun 28, 2016
1 parent 14e60aa commit ca1ee3d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion net/net.c
Original file line number Diff line number Diff line change
Expand Up @@ -722,7 +722,7 @@ ssize_t qemu_deliver_packet_iov(NetClientState *sender,
return 0;
}

if (nc->info->receive_iov) {
if (nc->info->receive_iov && !(flags & QEMU_NET_PACKET_FLAG_RAW)) {
ret = nc->info->receive_iov(nc, iov, iovcnt);
} else {
ret = nc_sendv_compat(nc, iov, iovcnt, flags);
Expand Down

0 comments on commit ca1ee3d

Please sign in to comment.