Re: [dpdk-dev] [PATCH v4 3/3] net/virtio: support GUEST ANNOUNCE

2018-01-04 Thread Tiwei Bie
On Thu, Jan 04, 2018 at 07:59:38AM -0800, Xiao Wang wrote: [...] > +static void > +virtio_notify_peers(struct rte_eth_dev *dev) > +{ > + struct virtio_hw *hw = dev->data->dev_private; > + struct virtnet_tx *txvq = dev->data->tx_queues[0]; > + struct virtnet_rx *rxvq = dev->data->rx_queu

[dpdk-dev] [PATCH v4 3/3] net/virtio: support GUEST ANNOUNCE

2018-01-03 Thread Xiao Wang
When live migration is done, for the backup VM, either the virtio frontend or the vhost backend needs to send out gratuitous RARP packet to announce its new network location. This patch enables VIRTIO_NET_F_GUEST_ANNOUNCE feature to support live migration scenario where the vhost backend doesn't h