]> git.baikalelectronics.ru Git - kernel.git/commit
RDMA/mlx5: Don't create IB representors when in multiport RoCE mode
authorMark Bloch <markb@mellanox.com>
Thu, 28 Mar 2019 13:46:27 +0000 (15:46 +0200)
committerJason Gunthorpe <jgg@mellanox.com>
Mon, 22 Apr 2019 18:24:05 +0000 (15:24 -0300)
commitb1c59367da69869125ca23cf1bed0d771a1787d0
tree6951990ffe933d78a7326774a50bf42c4a6f209d
parentf1f9113b7b9809e359a1653b2dc87d2654e4d920
RDMA/mlx5: Don't create IB representors when in multiport RoCE mode

Switchdev mode and mutiport RoCE mode aren't compatible at this point.
Don't create IB reps when a user switches to switchdev mode and the driver
operates in that mode.

Signed-off-by: Mark Bloch <markb@mellanox.com>
Signed-off-by: Leon Romanovsky <leonro@mellanox.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
drivers/infiniband/hw/mlx5/main.c