All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Bernard Metzler" <BMT@zurich.ibm.com>
To: "Kamal Heib" <kamalheib1@gmail.com>
Cc: linux-rdma@vger.kernel.org, "Jason Gunthorpe" <jgg@ziepe.ca>,
	"Doug Ledford" <dledford@redhat.com>
Subject: Re: [PATCH for-rc v1 1/4] RDMA/siw: Set max_pkeys attribute
Date: Mon, 6 Jul 2020 14:57:57 +0000	[thread overview]
Message-ID: <OF3A64F2C7.2B20CADD-ON0025859D.005235C6-0025859D.005235CF@notes.na.collabserv.com> (raw)
In-Reply-To: <20200706091119.367697-2-kamalheib1@gmail.com>

-----"Kamal Heib" <kamalheib1@gmail.com> wrote: -----

>To: linux-rdma@vger.kernel.org
>From: "Kamal Heib" <kamalheib1@gmail.com>
>Date: 07/06/2020 11:11AM
>Cc: "Jason Gunthorpe" <jgg@ziepe.ca>, "Doug Ledford"
><dledford@redhat.com>, "Kamal Heib" <kamalheib1@gmail.com>, "Bernard
>Metzler" <bmt@zurich.ibm.com>
>Subject: [EXTERNAL] [PATCH for-rc v1 1/4] RDMA/siw: Set max_pkeys
>attribute
>
>Make sure to set the max_pkeys attribute to indicate the maximum
>number
>of partitions supported by the siw device.
>
>Fixes: 303ae1cdfdf7 ("rdma/siw: application interface")
>Signed-off-by: Kamal Heib <kamalheib1@gmail.com>
>Cc: Bernard Metzler <bmt@zurich.ibm.com>
>---
> drivers/infiniband/sw/siw/siw_verbs.c | 1 +
> 1 file changed, 1 insertion(+)
>
>diff --git a/drivers/infiniband/sw/siw/siw_verbs.c
>b/drivers/infiniband/sw/siw/siw_verbs.c
>index 987e2ba05dbc..bef35d566aee 100644
>--- a/drivers/infiniband/sw/siw/siw_verbs.c
>+++ b/drivers/infiniband/sw/siw/siw_verbs.c
>@@ -151,6 +151,7 @@ int siw_query_device(struct ib_device *base_dev,
>struct ib_device_attr *attr,
> 	attr->max_srq = sdev->attrs.max_srq;
> 	attr->max_srq_sge = sdev->attrs.max_srq_sge;
> 	attr->max_srq_wr = sdev->attrs.max_srq_wr;
>+	attr->max_pkeys = 1;
> 	attr->page_size_cap = PAGE_SIZE;
> 	attr->vendor_id = SIW_VENDOR_ID;
> 	attr->vendor_part_id = sdev->vendor_part_id;
>-- 
>2.25.4
>
>
Thank you!
Reviewed-by: Bernard Metzler <bmt@zurich.ibm.com>


  parent reply	other threads:[~2020-07-06 14:58 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-07-06  9:11 [PATCH for-rc v1 0/4] RDMA/providers: Set max_pkey attribute Kamal Heib
2020-07-06  9:11 ` [PATCH for-rc v1 1/4] RDMA/siw: Set max_pkeys attribute Kamal Heib
2020-07-06  9:11 ` [PATCH for-rc v1 2/4] RDMA/cxgb4: " Kamal Heib
2020-07-06  9:11 ` [PATCH for-rc v1 3/4] RDMA/i40iw: " Kamal Heib
2020-07-06  9:11 ` [PATCH for-rc v1 4/4] RDMA/usnic: Fix reported " Kamal Heib
2020-07-06 14:57 ` Bernard Metzler [this message]
2020-07-07 16:12 ` [PATCH for-rc v1 0/4] RDMA/providers: Set max_pkey attribute Jason Gunthorpe
2020-07-07 19:13   ` Kamal Heib
2020-07-08 23:28     ` Jason Gunthorpe
2020-07-13  8:22       ` Kamal Heib

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=OF3A64F2C7.2B20CADD-ON0025859D.005235C6-0025859D.005235CF@notes.na.collabserv.com \
    --to=bmt@zurich.ibm.com \
    --cc=dledford@redhat.com \
    --cc=jgg@ziepe.ca \
    --cc=kamalheib1@gmail.com \
    --cc=linux-rdma@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.