mlx4: fill the attribute masked_atomic_cap according to device capabilities
Subsystems (2)
PATCH 1/2 mlx4: fill the attribute masked_atomic_cap according to device capabilities
When the user queries for device capabilities, fill the attribute masked_atomic_cap according to the support level of the regular atomic capabilities and not using a hard coded value.
Signed-off-by Dotan Barak <[email protected]>
--- drivers/infiniband/hw/mlx4/main.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
drivers/infiniband/hw/mlx4/main.c +1 -1
@@ -175,7 +175,7 @@ static int mlx4_ib_query_device(struct ib_device *ibdev, props->local_ca_ack_delay = dev->dev->caps.local_ca_ack_delay; props->atomic_cap = dev->dev->caps.flags &MLX4_DEV_CAP_FLAG_ATOMIC ?IB_ATOMIC_HCA :IB_ATOMIC_NONE ; - props->masked_atomic_cap =IB_ATOMIC_HCA ; + props->masked_atomic_cap = props->atomic_cap; props->max_pkeys = dev->dev->caps.pkey_table_len[1 ]; props->max_mcast_grp = dev->dev->caps.num_mgms + dev->dev->caps.num_amgms; props->max_mcast_qp_attach = dev->dev->caps.num_qp_per_mgm;
Signature · 6 lines
1.7.4.1 -- To unsubscribe from this list: send the line "unsubscribe linux-rdma" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html