forked from Rust-for-Linux/linux
-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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 <[email protected]> Signed-off-by: David S. Miller <[email protected]>
- Loading branch information
1 parent
1ff7807
commit cfc80d9
Showing
6 changed files
with
923 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
.. SPDX-License-Identifier: GPL-2.0 | ||
============ | ||
NET_FAILOVER | ||
============ | ||
|
||
Overview | ||
======== | ||
|
||
The net_failover driver provides an automated failover mechanism via APIs | ||
to create and destroy a failover master netdev and mananges a primary and | ||
standby slave netdevs that get registered via the generic failover | ||
infrastructrure. | ||
|
||
The failover netdev acts a master device and controls 2 slave devices. The | ||
original paravirtual interface is 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. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9654,6 +9654,14 @@ S: Maintained | |
F: Documentation/hwmon/nct6775 | ||
F: drivers/hwmon/nct6775.c | ||
|
||
NET_FAILOVER MODULE | ||
M: Sridhar Samudrala <[email protected]> | ||
L: [email protected] | ||
S: Supported | ||
F: driver/net/net_failover.c | ||
F: include/net/net_failover.h | ||
F: Documentation/networking/net_failover.rst | ||
|
||
NETEFFECT IWARP RNIC DRIVER (IW_NES) | ||
M: Faisal Latif <[email protected]> | ||
L: [email protected] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.