summaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/mellanox/mlx5/core/eswitch.c
diff options
context:
space:
mode:
authorMohamad Haj Yahia2016-09-09 16:35:23 +0200
committerDavid S. Miller2016-09-11 06:21:50 +0200
commitc2d6e31a0008f8188f935f8dd81c81c44697b256 (patch)
treeec18128ae7485db8b7b03f859585f4558eb672b5 /drivers/net/ethernet/mellanox/mlx5/core/eswitch.c
parentnet/mlx5: Implement eswitch attach/detach flows (diff)
downloadkernel-qcow2-linux-c2d6e31a0008f8188f935f8dd81c81c44697b256.tar.gz
kernel-qcow2-linux-c2d6e31a0008f8188f935f8dd81c81c44697b256.tar.xz
kernel-qcow2-linux-c2d6e31a0008f8188f935f8dd81c81c44697b256.zip
net/mlx5: Align sriov/eswitch modules with the new load/unload flow.
Init/cleanup sriov/eswitch in the core software context init/cleanup flows. Attach/detach sriov/eswitch in the core load/unload flows. Signed-off-by: Mohamad Haj Yahia <mohamad@mellanox.com> Signed-off-by: Saeed Mahameed <saeedm@mellanox.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/mellanox/mlx5/core/eswitch.c')
-rw-r--r--drivers/net/ethernet/mellanox/mlx5/core/eswitch.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/net/ethernet/mellanox/mlx5/core/eswitch.c b/drivers/net/ethernet/mellanox/mlx5/core/eswitch.c
index 2405889421a5..015f1bfec7d7 100644
--- a/drivers/net/ethernet/mellanox/mlx5/core/eswitch.c
+++ b/drivers/net/ethernet/mellanox/mlx5/core/eswitch.c
@@ -1654,7 +1654,6 @@ int mlx5_eswitch_init(struct mlx5_core_dev *dev)
esw->enabled_vports = 0;
esw->mode = SRIOV_NONE;
- mlx5_eswitch_attach(esw);
dev->priv.eswitch = esw;
return 0;
abort:
@@ -1675,7 +1674,6 @@ void mlx5_eswitch_cleanup(struct mlx5_eswitch *esw)
esw_info(esw->dev, "cleanup\n");
- mlx5_eswitch_detach(esw);
esw->dev->priv.eswitch = NULL;
destroy_workqueue(esw->work_queue);
kfree(esw->l2_table.bitmap);