Re: [PATCH 11/17] net: drop packet from tap device if all NICs are down

2009-05-19 Thread Mark McLoughlin
On Sun, 2009-05-17 at 10:43 -0500, Anthony Liguori wrote: > From: Mark McLoughlin > > If you do e.g. "set_link virtio.0 down" and there are packets > pending on the tap interface, we currently buffer a packet > and constantly try and send it until the link is up again. > > We actually just want

[PATCH 11/17] net: drop packet from tap device if all NICs are down

2009-05-17 Thread Anthony Liguori
From: Mark McLoughlin If you do e.g. "set_link virtio.0 down" and there are packets pending on the tap interface, we currently buffer a packet and constantly try and send it until the link is up again. We actually just want to drop the packet if the NIC is down. Upstream qemu already does this,

[PATCH 11/17] net: drop packet from tap device if all NICs are down

2009-05-17 Thread Anthony Liguori
From: Mark McLoughlin If you do e.g. "set_link virtio.0 down" and there are packets pending on the tap interface, we currently buffer a packet and constantly try and send it until the link is up again. We actually just want to drop the packet if the NIC is down. Upstream qemu already does this,