virtio_net: disable VIRTIO_NET_F_STANDBY if VIRTIO_NET_F_MAC is not set
authorLaurent Vivier <lvivier@redhat.com>
Fri, 27 Jan 2023 20:44:59 +0000 (21:44 +0100)
committerJakub Kicinski <kuba@kernel.org>
Thu, 2 Feb 2023 04:53:04 +0000 (20:53 -0800)
commit7c06458c102ee66068c03780527fcfc9b954ad91
tree6457f019bfdccba42249b3f44d3c31d3eed35098
parentca3daf437d9c261ca498f518090c3ddbf1bf824f
virtio_net: disable VIRTIO_NET_F_STANDBY if VIRTIO_NET_F_MAC is not set

failover relies on the MAC address to pair the primary and the standby
devices:

  "[...] the hypervisor needs to enable VIRTIO_NET_F_STANDBY
   feature on the virtio-net interface and assign the same MAC address
   to both virtio-net and VF interfaces."

  Documentation/networking/net_failover.rst

This patch disables the STANDBY feature if the MAC address is not
provided by the hypervisor.

Signed-off-by: Laurent Vivier <lvivier@redhat.com>
Acked-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/virtio_net.c