Re: [V4 PATCH] virtio-net: send gratuitous packet when needed

2012-03-13 Thread Michael S. Tsirkin
On Tue, Mar 13, 2012 at 05:08:41PM +0800, Jason Wang wrote: > As hypervior does not have the knowledge of guest network configuration, it's > better to ask guest to send gratuitous packet when needed. packet -> packets > > Guest test VIRTIO_NET_S_ANNOUNCE bit during config change interrupt and wh

[V4 PATCH] virtio-net: send gratuitous packet when needed

2012-03-13 Thread Jason Wang
As hypervior does not have the knowledge of guest network configuration, it's better to ask guest to send gratuitous packet when needed. Guest test VIRTIO_NET_S_ANNOUNCE bit during config change interrupt and when it is set, a workqueue is scheduled to send gratuitous packet through NETDEV_NOTIFY_