diff options
author | Eli Cohen <eli@dev.mellanox.co.il> | 2014-02-06 17:41:25 +0200 |
---|---|---|
committer | Roland Dreier <roland@purestorage.com> | 2014-02-06 23:09:48 -0800 |
commit | 1a4c3a3dc5fdeef2a7bdf4ac7d81df58c3c0a51e (patch) | |
tree | 52ead1be35e239c95123e64be894da365fa10a1a /drivers/infiniband/hw/mlx5/qp.c | |
parent | 78c0f98cc9dd46824fa66f35f14ea24ba733d145 (diff) | |
download | op-kernel-dev-1a4c3a3dc5fdeef2a7bdf4ac7d81df58c3c0a51e.zip op-kernel-dev-1a4c3a3dc5fdeef2a7bdf4ac7d81df58c3c0a51e.tar.gz |
IB/mlx5: Don't set "block multicast loopback" capability
Currently Connect-IB does not support blocking multicast loopback, so
don't set IB_DEVICE_BLOCK_MULTICAST_LOOPBACK in the device caps.
Reported by: Or Gerlitz <ogerlitz@mellanox.com>
Signed-off-by: Eli Cohen <eli@mellanox.com>
Signed-off-by: Roland Dreier <roland@purestorage.com>
Diffstat (limited to 'drivers/infiniband/hw/mlx5/qp.c')
-rw-r--r-- | drivers/infiniband/hw/mlx5/qp.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/infiniband/hw/mlx5/qp.c b/drivers/infiniband/hw/mlx5/qp.c index 091576a..7dfe8a1 100644 --- a/drivers/infiniband/hw/mlx5/qp.c +++ b/drivers/infiniband/hw/mlx5/qp.c @@ -665,8 +665,8 @@ static int create_kernel_qp(struct mlx5_ib_dev *dev, int err; uuari = &dev->mdev.priv.uuari; - if (init_attr->create_flags & IB_QP_CREATE_BLOCK_MULTICAST_LOOPBACK) - qp->flags |= MLX5_IB_QP_BLOCK_MULTICAST_LOOPBACK; + if (init_attr->create_flags) + return -EINVAL; if (init_attr->qp_type == MLX5_IB_QPT_REG_UMR) lc = MLX5_IB_LATENCY_CLASS_FAST_PATH; |