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)
commit8e6efa3a31f4a81a4d8817d68110446df383d049
tree2e0e3eb24d24ed2040bba1b62883cc62b847f77c
parentbcf87f1dbbec0d9abaf89073dd761a41876bc6c1
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