]> 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)
commit05e86b93324eb302c1a9d15ed4f95becb979f7f8
tree0c6eee78d4b1f7e715efc9225846fa8e2d8cbf39
parentbdf43aab5c7c5c94f2d9af11f11e232b5aebc86c
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: 73a7cc073f5b ("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