Skip to content

Commit d293dac

Browse files
Yuanhan LiuThomas Monjalon
authored andcommitted
vhost: claim support of guest announce
It's actually a feature already enabled in Linux kernel (since v3.5). What we need to do is simply to claim that we support such feature, and nothing else. With that, the guest will send an ARP message after live migration to notify the switches about the new location of migrated VM. Signed-off-by: Yuanhan Liu <yuanhan.liu@linux.intel.com> Tested-by: Pavel Fedin <p.fedin@samsung.com>
1 parent 699e357 commit d293dac

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lib/librte_vhost/virtio-net.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,7 @@ static struct virtio_net_config_ll *ll_root;
7474
#define VHOST_SUPPORTED_FEATURES ((1ULL << VIRTIO_NET_F_MRG_RXBUF) | \
7575
(1ULL << VIRTIO_NET_F_CTRL_VQ) | \
7676
(1ULL << VIRTIO_NET_F_CTRL_RX) | \
77+
(1ULL << VIRTIO_NET_F_GUEST_ANNOUNCE) | \
7778
(VHOST_SUPPORTS_MQ) | \
7879
(1ULL << VIRTIO_F_VERSION_1) | \
7980
(1ULL << VHOST_F_LOG_ALL) | \

0 commit comments

Comments
 (0)