diff options
author | Faisal Latif <faisal.latif@intel.com> | 2009-06-23 01:52:30 -0400 |
---|---|---|
committer | Roland Dreier <rolandd@cisco.com> | 2009-06-23 01:52:30 -0400 |
commit | 66388d67a0d7bf39735650de54e42064d1af8b62 (patch) | |
tree | 641ab89de7ff7dd5e6610a0a85b79d68d31bb626 /drivers/infiniband/hw/nes | |
parent | 65795efbd380a832ae508b04dba8f8e53f0b84d9 (diff) |
RDMA/nes: Fix max_qp_init_rd_atom returned from query device
In nes_query_device(), max_qp_init_rd_atom is incorrectly set to
max_qp_wr. This was found when a test application had a dapl async
event error.
Signed-off-by: Faisal Latif <faisal.latif@intel.com>
Signed-off-by: Roland Dreier <rolandd@cisco.com>
Diffstat (limited to 'drivers/infiniband/hw/nes')
-rw-r--r-- | drivers/infiniband/hw/nes/nes_verbs.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/infiniband/hw/nes/nes_verbs.c b/drivers/infiniband/hw/nes/nes_verbs.c index 64d5cfd8f380..21e0fd336cf7 100644 --- a/drivers/infiniband/hw/nes/nes_verbs.c +++ b/drivers/infiniband/hw/nes/nes_verbs.c | |||
@@ -654,7 +654,7 @@ static int nes_query_device(struct ib_device *ibdev, struct ib_device_attr *prop | |||
654 | default: | 654 | default: |
655 | props->max_qp_rd_atom = 0; | 655 | props->max_qp_rd_atom = 0; |
656 | } | 656 | } |
657 | props->max_qp_init_rd_atom = props->max_qp_wr; | 657 | props->max_qp_init_rd_atom = props->max_qp_rd_atom; |
658 | props->atomic_cap = IB_ATOMIC_NONE; | 658 | props->atomic_cap = IB_ATOMIC_NONE; |
659 | props->max_map_per_fmr = 1; | 659 | props->max_map_per_fmr = 1; |
660 | 660 | ||