linux/drivers/infiniband/hw
Mark Bloch 42caf9cb59 RDMA/mlx5: Allow only raw Ethernet QPs when RoCE isn't enabled
When operating in switchdev mode or using devlink to disable RoCE
only raw Ethernet QPs are allowed to be created.

When in switchdev mode this can lead to passing an invalid port number
as part of the modify qp firmware cmd and will lead to a syndrome
reported back to the user, such as:

 * mlx5_cmd_check:803:(pid 50148): RST2INIT_QP(0x502) op_mod(0x0) failed,
   status bad parameter(0x3), syndrome (0x177405).

Internal UD QP might be used to test for write combining support (even if
externally we report RoCE as disabled) check for that specific flag and
allow is specifically.

Fixes: b5ca15ad7e ("IB/mlx5: Add proper representors support")
Link: https://lore.kernel.org/r/20200506071602.7177-3-leon@kernel.org
Signed-off-by: Mark Bloch <markb@mellanox.com>
Signed-off-by: Leon Romanovsky <leonro@mellanox.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
2020-05-06 17:52:01 -03:00
..
bnxt_re RDMA: Group create AH arguments in struct 2020-05-02 20:19:53 -03:00
cxgb4 Linux 5.6-rc4 2020-03-04 13:11:06 -04:00
efa RDMA/efa: Count admin commands errors 2020-05-02 20:32:14 -03:00
hfi1 RDMA 5.7 pull request 2020-04-01 18:18:18 -07:00
hns RDMA/hns: Remove redundant assignment of caps 2020-05-06 17:33:20 -03:00
i40iw i40iw: Report correct firmware version 2020-03-18 13:53:44 -03:00
mlx4 RDMA: Group create AH arguments in struct 2020-05-02 20:19:53 -03:00
mlx5 RDMA/mlx5: Allow only raw Ethernet QPs when RoCE isn't enabled 2020-05-06 17:52:01 -03:00
mthca RDMA: Group create AH arguments in struct 2020-05-02 20:19:53 -03:00
ocrdma RDMA: Group create AH arguments in struct 2020-05-02 20:19:53 -03:00
qedr RDMA: Group create AH arguments in struct 2020-05-02 20:19:53 -03:00
qib IB/qib: Remove unused variable ret 2020-04-14 16:34:17 -03:00
usnic RDMA/providers: Fix return value when QP type isn't supported 2020-03-04 12:13:42 -04:00
vmw_pvrdma RDMA: Group create AH arguments in struct 2020-05-02 20:19:53 -03:00
Makefile RDMA/iw_cxgb3: Remove the iw_cxgb3 module from kernel 2019-10-04 15:08:59 -03:00