]> git.baikalelectronics.ru Git - kernel.git/commit
net: Introduce net_failover driver
authorSridhar Samudrala <sridhar.samudrala@intel.com>
Thu, 24 May 2018 16:55:15 +0000 (09:55 -0700)
committerDavid S. Miller <davem@davemloft.net>
Tue, 29 May 2018 02:59:54 +0000 (22:59 -0400)
commit8a44e20be97ab20bc4c44ba0be556a50f259cd53
treeda95be375f932bd726ea4e57a504cd6373fdfc8f
parentc2a18fabbf159e64b0fb427637d2e40f663e17c3
net: Introduce net_failover driver

The net_failover driver provides an automated failover mechanism via APIs
to create and destroy a failover master netdev and manages a primary and
standby slave netdevs that get registered via the generic failover
infrastructure.

The failover netdev acts a master device and controls 2 slave devices. The
original paravirtual interface gets registered as 'standby' slave netdev and
a passthru/vf device with the same MAC gets registered as 'primary' slave
netdev. Both 'standby' and 'failover' netdevs are associated with the same
'pci' device. The user accesses the network interface via 'failover' netdev.
The 'failover' netdev chooses 'primary' netdev as default for transmits when
it is available with link up and running.

This can be used by paravirtual drivers to enable an alternate low latency
datapath. It also enables hypervisor controlled live migration of a VM with
direct attached VF by failing over to the paravirtual datapath when the VF
is unplugged.

Signed-off-by: Sridhar Samudrala <sridhar.samudrala@intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Documentation/networking/net_failover.rst [new file with mode: 0644]
MAINTAINERS
drivers/net/Kconfig
drivers/net/Makefile
drivers/net/net_failover.c [new file with mode: 0644]
include/net/net_failover.h [new file with mode: 0644]