aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/infiniband
diff options
context:
space:
mode:
authorMark Bloch <markb@mellanox.com>2018-01-23 11:24:13 +0000
committerSaeed Mahameed <saeedm@mellanox.com>2018-02-23 12:36:39 -0800
commitc5447c70594b6a8e1e62a9dd9373813cb38f1c69 (patch)
tree54ddc5661098fc02d327acb484a8afd7a092bd89 /drivers/infiniband
parentIB/mlx5: Add proper representors support (diff)
downloadlinux-dev-c5447c70594b6a8e1e62a9dd9373813cb38f1c69.tar.xz
linux-dev-c5447c70594b6a8e1e62a9dd9373813cb38f1c69.zip
net/mlx5: E-Switch, Reload IB interface when switching devlink modes
Up until this point it wasn't possible to activate IB representors when switching to switchdev mode, remove this limitation. We trigger reload of the PF IB interface in order to make sure that already allocated resources are invalid and new resources will be opened correctly with all the limitations of switchdev mode applied (only raw packet capabilities, without RoCE). We also move the remove/add to a place where the E-Switch mode is set/unset to better control when to trigger this action, this will allow the IB side to start in the correct mode. For better code reuse, create a function which reloads an interface and export it. Signed-off-by: Mark Bloch <markb@mellanox.com> Reviewed-by: Or Gerlitz <ogerlitz@mellanox.com> Signed-off-by: Leon Romanovsky <leon@kernel.org> Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
Diffstat (limited to 'drivers/infiniband')
0 files changed, 0 insertions, 0 deletions