mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-12 13:55:32 +00:00
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>
This commit is contained in:
parent
ad84dad216
commit
67cbe3532c
2 changed files with 4 additions and 0 deletions
|
@ -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;
|
||||
|
|
|
@ -50,6 +50,8 @@ struct qedr_alloc_ucontext_resp {
|
|||
__u32 sges_per_srq_wr;
|
||||
__u32 max_cqes;
|
||||
__u8 dpm_enabled;
|
||||
__u8 wids_enabled;
|
||||
__u16 wid_count;
|
||||
};
|
||||
|
||||
struct qedr_alloc_pd_ureq {
|
||||
|
|
Loading…
Reference in a new issue