diff options
author | Eli Cohen <eli@dev.mellanox.co.il> | 2014-04-02 00:10:16 +0300 |
---|---|---|
committer | Roland Dreier <roland@purestorage.com> | 2014-04-10 18:43:32 -0700 |
commit | f360d88a2efddf2d2a2d01a8ac76fded34d624b4 (patch) | |
tree | 9ca4486f3bbd72018b5876a60ce2a351e5045271 /drivers/infiniband/hw/mlx5/main.c | |
parent | 877f075aac900288ce2e6a64075cceff09210a7e (diff) | |
download | op-kernel-dev-f360d88a2efddf2d2a2d01a8ac76fded34d624b4.zip op-kernel-dev-f360d88a2efddf2d2a2d01a8ac76fded34d624b4.tar.gz |
IB/mlx5: Add block multicast loopback support
Add support for the block multicast loopback QP creation flag along
the proper firmware API for that.
Signed-off-by: Eli Cohen <eli@mellanox.com>
Signed-off-by: Or Gerlitz <ogerlitz@mellanox.com>
Signed-off-by: Roland Dreier <roland@purestorage.com>
Diffstat (limited to 'drivers/infiniband/hw/mlx5/main.c')
-rw-r--r-- | drivers/infiniband/hw/mlx5/main.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/infiniband/hw/mlx5/main.c b/drivers/infiniband/hw/mlx5/main.c index fa6dc87..364d4b6 100644 --- a/drivers/infiniband/hw/mlx5/main.c +++ b/drivers/infiniband/hw/mlx5/main.c @@ -282,6 +282,8 @@ static int mlx5_ib_query_device(struct ib_device *ibdev, props->sig_guard_cap = IB_GUARD_T10DIF_CRC | IB_GUARD_T10DIF_CSUM; } + if (flags & MLX5_DEV_CAP_FLAG_BLOCK_MCAST) + props->device_cap_flags |= IB_DEVICE_BLOCK_MULTICAST_LOOPBACK; props->vendor_id = be32_to_cpup((__be32 *)(out_mad->data + 36)) & 0xffffff; |