Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

virtio_net: Introduce VIRTIO_NET_F_STANDBY feature bit

This feature bit can be used by hypervisor to indicate virtio_net device to
act as a standby for another device with the same MAC address.

VIRTIO_NET_F_STANDBY is defined as bit 62 as it is a device feature bit.

Signed-off-by: Sridhar Samudrala <sridhar.samudrala@intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>

authored by

Sridhar Samudrala and committed by
David S. Miller
9805069d cfc80d9a

+4 -1
+1 -1
drivers/net/virtio_net.c
··· 3030 3030 VIRTIO_NET_F_GUEST_ANNOUNCE, VIRTIO_NET_F_MQ, \ 3031 3031 VIRTIO_NET_F_CTRL_MAC_ADDR, \ 3032 3032 VIRTIO_NET_F_MTU, VIRTIO_NET_F_CTRL_GUEST_OFFLOADS, \ 3033 - VIRTIO_NET_F_SPEED_DUPLEX 3033 + VIRTIO_NET_F_SPEED_DUPLEX, VIRTIO_NET_F_STANDBY 3034 3034 3035 3035 static unsigned int features[] = { 3036 3036 VIRTNET_FEATURES,
+3
include/uapi/linux/virtio_net.h
··· 57 57 * Steering */ 58 58 #define VIRTIO_NET_F_CTRL_MAC_ADDR 23 /* Set MAC address */ 59 59 60 + #define VIRTIO_NET_F_STANDBY 62 /* Act as standby for another device 61 + * with the same MAC. 62 + */ 60 63 #define VIRTIO_NET_F_SPEED_DUPLEX 63 /* Device set linkspeed and duplex */ 61 64 62 65 #ifndef VIRTIO_NET_NO_LEGACY