Re: [dpdk-dev] [PATCH v3 2/2] net/virtio: support GUEST ANNOUNCE

2018-01-03 Thread Wang, Xiao W
Hi Tiwei, > -Original Message- > From: Bie, Tiwei > Sent: Thursday, January 4, 2018 10:51 AM > To: Wang, Xiao W > Cc: dev@dpdk.org; y...@fridaylinux.org; step...@networkplumber.org > Subject: Re: [PATCH v3 2/2] net/virtio: support GUEST ANNOUNCE > > Hi Xiao, > > On Wed, Jan 03, 2018 at

Re: [dpdk-dev] [PATCH v3 2/2] net/virtio: support GUEST ANNOUNCE

2018-01-03 Thread Tiwei Bie
Hi Xiao, On Wed, Jan 03, 2018 at 11:41:40PM -0800, Xiao Wang wrote: [...] > +static int > +virtio_dev_pause(struct rte_eth_dev *dev) > +{ > + struct virtio_hw *hw = dev->data->dev_private; > + > + if (hw->started == 0) > + return -1; > + hw->started = 0; > + /* > +

[dpdk-dev] [PATCH v3 2/2] 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