]> 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)
commita25972d3424855e89e691802f94342d8f6bb91cf
treec2cd546376bf110d9b1dc28021c9f45f3308faa7
parentdc97cf3d5d0c2d292524603025be18cc0149461d
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