]> git.baikalelectronics.ru Git - kernel.git/commit
net/mlx5: E-Switch, Handle mode change failures
authorOr Gerlitz <ogerlitz@mellanox.com>
Sun, 18 Sep 2016 15:20:29 +0000 (18:20 +0300)
committerDavid S. Miller <davem@davemloft.net>
Tue, 20 Sep 2016 02:10:16 +0000 (22:10 -0400)
commitd91f0a4c71be606ca179af4608815276fe0cb3e9
treec2cd546376bf110d9b1dc28021c9f45f3308faa7
parentece0482eae8490142b18aa16c3ec30aa62ea2338
net/mlx5: E-Switch, Handle mode change failures

E-switch mode changes involve creating HW tables, potentially allocating
netdevices, etc, and things can fail. Add an attempt to rollback to the
existing mode when changing to the new mode fails. Only if rollback fails,
getting proper SRIOV functionality requires module unload or sriov
disablement/enablement.

Signed-off-by: Or Gerlitz <ogerlitz@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c