mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-12-11 21:14:07 +08:00
RDMA/mlx5: Fix integrity enabled QP creation
create_flags checks was refactored and broke the creation on integrity
enabled QPs and actually broke the NVMe/RDMA and iSER ULP's when using
mlx5 driven devices.
Fixes: 2978975ce7
("RDMA/mlx5: Process create QP flags in one place")
Link: https://lore.kernel.org/r/20200617130230.2846915-1-leon@kernel.org
Signed-off-by: Max Gurtovoy <maxg@mellanox.com>
Signed-off-by: Leon Romanovsky <leonro@mellanox.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
This commit is contained in:
parent
2c0f5292d5
commit
9e0dc7b9e1
@ -2668,6 +2668,9 @@ static int process_create_flags(struct mlx5_ib_dev *dev, struct mlx5_ib_qp *qp,
|
||||
if (qp_type == IB_QPT_RAW_PACKET && attr->rwq_ind_tbl)
|
||||
return (create_flags) ? -EINVAL : 0;
|
||||
|
||||
process_create_flag(dev, &create_flags,
|
||||
IB_QP_CREATE_INTEGRITY_EN,
|
||||
MLX5_CAP_GEN(mdev, sho), qp);
|
||||
process_create_flag(dev, &create_flags,
|
||||
IB_QP_CREATE_BLOCK_MULTICAST_LOOPBACK,
|
||||
MLX5_CAP_GEN(mdev, block_lb_mc), qp);
|
||||
|
Loading…
Reference in New Issue
Block a user