]> git.baikalelectronics.ru Git - kernel.git/commit
net/mlx5e: E-Switch, Initialize eswitch only if eswitch manager
authorEli Cohen <eli@mellanox.com>
Mon, 16 Jul 2018 08:49:27 +0000 (11:49 +0300)
committerSaeed Mahameed <saeedm@mellanox.com>
Tue, 31 Jul 2018 19:58:43 +0000 (12:58 -0700)
commitd5cfa0355cfa524585ce0c9b4e7fb5b1c56c339c
tree0c6eee78d4b1f7e715efc9225846fa8e2d8cbf39
parent1c54995ec69880cf5a98f6da063722497cc7ec3b
net/mlx5e: E-Switch, Initialize eswitch only if eswitch manager

Execute mlx5_eswitch_init() only if we have MLX5_ESWITCH_MANAGER
capabilities.
Do the same for mlx5_eswitch_cleanup().

Fixes: 4c3a9c6b353b ("net/mlx5: Unify vport manager capability check")
Signed-off-by: Eli Cohen <eli@mellanox.com>
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
drivers/net/ethernet/mellanox/mlx5/core/eswitch.c