[IB] mthca: Report correct atomic capability
Return correct atomic capability flag from mthca query function. Signed-off-by: Jack Morgenstein <jackm@mellanox.co.il> Signed-off-by: Roland Dreier <rolandd@cisco.com>
This commit is contained in:
parent
0c33aeedb2
commit
33033b7972
@ -148,6 +148,7 @@ struct mthca_limits {
|
||||
int reserved_mcgs;
|
||||
int num_pds;
|
||||
int reserved_pds;
|
||||
u32 flags;
|
||||
u8 port_width_cap;
|
||||
};
|
||||
|
||||
|
@ -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_pds = dev_lim->reserved_pds;
|
||||
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.
|
||||
May be doable since hardware supports it for SRQ.
|
||||
|
@ -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_init_rd_atom = 1 << mdev->qp_table.rdb_shift;
|
||||
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;
|
||||
out:
|
||||
|
Loading…
Reference in New Issue
Block a user