aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorAmrani, Ram <Ram.Amrani@cavium.com>2017-06-26 19:05:06 +0300
committerDoug Ledford <dledford@redhat.com>2017-07-27 08:59:52 -0400
commit67cbe3532c2cd84303a2073cedad6b8bcad13be3 (patch)
tree430ebb83bac7b2a7689276d788a276568f284c9d /drivers
parentRDMA/qedr: notify user application if DPM is supported (diff)
downloadlinux-dev-67cbe3532c2cd84303a2073cedad6b8bcad13be3.tar.xz
linux-dev-67cbe3532c2cd84303a2073cedad6b8bcad13be3.zip
RDMA/qedr: notify user application of supported WIDs
The number of supported WIDs, if they are supported at all, can be limited due to resources. Notifying the user space application the number of available WIDs allows it to utilize them correctly. Signed-off-by: Ram Amrani <Ram.Amrani@cavium.com> Signed-off-by: Doug Ledford <dledford@redhat.com>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/infiniband/hw/qedr/verbs.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/infiniband/hw/qedr/verbs.c b/drivers/infiniband/hw/qedr/verbs.c
index 4322ee00498e..9ee2dce3e5bb 100644
--- a/drivers/infiniband/hw/qedr/verbs.c
+++ b/drivers/infiniband/hw/qedr/verbs.c
@@ -377,6 +377,8 @@ struct ib_ucontext *qedr_alloc_ucontext(struct ib_device *ibdev,
memset(&uresp, 0, sizeof(uresp));
uresp.dpm_enabled = dev->user_dpm_enabled;
+ uresp.wids_enabled = 1;
+ uresp.wid_count = oparams.wid_count;
uresp.db_pa = ctx->dpi_phys_addr;
uresp.db_size = ctx->dpi_size;
uresp.max_send_wr = dev->attr.max_sqe;