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/main.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/main.c')
-rw-r--r-- | drivers/infiniband/hw/qedr/main.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/infiniband/hw/qedr/main.c b/drivers/infiniband/hw/qedr/main.c index 0ae30f5c8cbc..199b6edbef92 100644 --- a/drivers/infiniband/hw/qedr/main.c +++ b/drivers/infiniband/hw/qedr/main.c @@ -777,6 +777,7 @@ static struct qedr_dev *qedr_add(struct qed_dev *cdev, struct pci_dev *pdev, if (rc) goto init_err; + dev->user_dpm_enabled = dev_info.user_dpm_enabled; dev->num_hwfns = dev_info.common.num_hwfns; dev->rdma_ctx = dev->ops->rdma_get_rdma_ctx(cdev); |