]> git.baikalelectronics.ru Git - kernel.git/commit
IB/mlx5: When in switchdev mode, expose only raw packet capabilities
authorMark Bloch <markb@mellanox.com>
Mon, 6 Nov 2017 12:22:13 +0000 (12:22 +0000)
committerSaeed Mahameed <saeedm@mellanox.com>
Fri, 23 Feb 2018 20:36:39 +0000 (12:36 -0800)
commit8072cdc170432b17b561fda57f32e2d3e590dac2
tree2e0e3eb24d24ed2040bba1b62883cc62b847f77c
parent1768fe3fde12514d0643ad328df98ff427b33885
IB/mlx5: When in switchdev mode, expose only raw packet capabilities

Currently in switchdev mode we allow only for raw packet QPs.
Expose the right capabilities and set the gid table length to 0, also
make sure we don't try to enable RoCE, so split the function
to enable RoCE so representors can enable only the notifier needed for
net device events.

Signed-off-by: Mark Bloch <markb@mellanox.com>
Signed-off-by: Leon Romanovsky <leon@kernel.org>
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
drivers/infiniband/hw/mlx5/main.c
drivers/infiniband/hw/mlx5/mlx5_ib.h