]> 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)
commit0ecc042eee9aff04f10df6eb828e73a4d4df2152
tree2e0e3eb24d24ed2040bba1b62883cc62b847f77c
parent1bcf775933815b576904fad661a533e4cdcc3eb9
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