Commit 33033b79 authored by Jack Morgenstein's avatar Jack Morgenstein Committed by Roland Dreier

[IB] mthca: Report correct atomic capability

Return correct atomic capability flag from mthca query function.
Signed-off-by: default avatarJack Morgenstein <jackm@mellanox.co.il>
Signed-off-by: default avatarRoland Dreier <rolandd@cisco.com>
parent 0c33aeed
...@@ -148,6 +148,7 @@ struct mthca_limits { ...@@ -148,6 +148,7 @@ struct mthca_limits {
int reserved_mcgs; int reserved_mcgs;
int num_pds; int num_pds;
int reserved_pds; int reserved_pds;
u32 flags;
u8 port_width_cap; u8 port_width_cap;
}; };
......
...@@ -172,6 +172,7 @@ static int __devinit mthca_dev_lim(struct mthca_dev *mdev, struct mthca_dev_lim ...@@ -172,6 +172,7 @@ static int __devinit mthca_dev_lim(struct mthca_dev *mdev, struct mthca_dev_lim
mdev->limits.reserved_uars = dev_lim->reserved_uars; mdev->limits.reserved_uars = dev_lim->reserved_uars;
mdev->limits.reserved_pds = dev_lim->reserved_pds; mdev->limits.reserved_pds = dev_lim->reserved_pds;
mdev->limits.port_width_cap = dev_lim->max_port_width; mdev->limits.port_width_cap = dev_lim->max_port_width;
mdev->limits.flags = dev_lim->flags;
/* IB_DEVICE_RESIZE_MAX_WR not supported by driver. /* IB_DEVICE_RESIZE_MAX_WR not supported by driver.
May be doable since hardware supports it for SRQ. May be doable since hardware supports it for SRQ.
......
...@@ -99,6 +99,8 @@ static int mthca_query_device(struct ib_device *ibdev, ...@@ -99,6 +99,8 @@ static int mthca_query_device(struct ib_device *ibdev,
props->max_qp_rd_atom = 1 << mdev->qp_table.rdb_shift; props->max_qp_rd_atom = 1 << mdev->qp_table.rdb_shift;
props->max_qp_init_rd_atom = 1 << mdev->qp_table.rdb_shift; props->max_qp_init_rd_atom = 1 << mdev->qp_table.rdb_shift;
props->local_ca_ack_delay = mdev->limits.local_ca_ack_delay; props->local_ca_ack_delay = mdev->limits.local_ca_ack_delay;
props->atomic_cap = mdev->limits.flags & DEV_LIM_FLAG_ATOMIC ?
IB_ATOMIC_HCA : IB_ATOMIC_NONE;
err = 0; err = 0;
out: out:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment