diff options
author | Amrani, Ram <Ram.Amrani@cavium.com> | 2017-06-26 19:05:05 +0300 |
---|---|---|
committer | Doug Ledford <dledford@redhat.com> | 2017-07-27 08:59:52 -0400 |
commit | ad84dad2160d5f36bb471b391462d651c887d693 (patch) | |
tree | 71de6dd7a72915810ff6089327f189bccdc25955 /drivers/infiniband/hw/qedr/verbs.c | |
parent | 9c2d33d44dccfb0cdac987ddc3716527ebf971e0 (diff) |
RDMA/qedr: notify user application if DPM is supported
Direct Packet Mode support may be disabled, e.g, due to limited
resources. Notifying the user application prevents wasting cycles
on attempting to send these kind of packets.
Signed-off-by: Ram Amrani <Ram.Amrani@cavium.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
Diffstat (limited to 'drivers/infiniband/hw/qedr/verbs.c')
-rw-r--r-- | drivers/infiniband/hw/qedr/verbs.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/infiniband/hw/qedr/verbs.c b/drivers/infiniband/hw/qedr/verbs.c index 2ae71b8f1ba8..4322ee00498e 100644 --- a/drivers/infiniband/hw/qedr/verbs.c +++ b/drivers/infiniband/hw/qedr/verbs.c @@ -376,6 +376,7 @@ struct ib_ucontext *qedr_alloc_ucontext(struct ib_device *ibdev, memset(&uresp, 0, sizeof(uresp)); + uresp.dpm_enabled = dev->user_dpm_enabled; uresp.db_pa = ctx->dpi_phys_addr; uresp.db_size = ctx->dpi_size; uresp.max_send_wr = dev->attr.max_sqe; |