All of lore.kernel.org
 help / color / mirror / Atom feed
From: Cheng Xu <chengyou@linux.alibaba.com>
To: Bernard Metzler <BMT@zurich.ibm.com>,
	"jgg@ziepe.ca" <jgg@ziepe.ca>,
	"dledford@redhat.com" <dledford@redhat.com>
Cc: "leon@kernel.org" <leon@kernel.org>,
	"linux-rdma@vger.kernel.org" <linux-rdma@vger.kernel.org>,
	"KaiShen@linux.alibaba.com" <KaiShen@linux.alibaba.com>,
	"tonylu@linux.alibaba.com" <tonylu@linux.alibaba.com>
Subject: Re: [PATCH rdma-next v2 06/11] RDMA/erdma: Add verbs header file
Date: Wed, 19 Jan 2022 10:53:50 +0800	[thread overview]
Message-ID: <65938b6f-421a-1284-017f-f11553884d69@linux.alibaba.com> (raw)
In-Reply-To: <BYAPR15MB2631AB8978A9892821CBEA3B99589@BYAPR15MB2631.namprd15.prod.outlook.com>



On 1/18/22 9:11 PM, Bernard Metzler wrote:

<...>

>> +struct erdma_qp {
>> +	struct ib_qp ibqp;
>> +	struct kref ref;
>> +	struct completion safe_free;
>> +	struct erdma_dev *dev;
>> +	struct erdma_cep *cep;
>> +	struct rw_semaphore state_lock;
>> +	bool is_kernel_qp;
> 
> this information is available via RDMA core.
> one can always query 'rdma_is_kernel_res(&qp->ibqp.res)'
> you should really look at the latest siw code 😉
> 

Thanks, I will fix this. I referred the latest siw code, mainly for CM
part and modify_qp in verbs, other part of verbs already have lots of
differences, so I ignored. I will check them before v3 patch.

<...>

>> +
>> +struct erdma_cq {
>> +	struct ib_cq ibcq;
>> +	u32 cqn;
>> +
>> +	u32 depth;
>> +	u32 assoc_eqn;
>> +	u32 is_kernel_cq;
> 
> bogus u32 here, and can be completely removed.
> use rdma_is_kernel_res(&cq->ibcq.res)

Will fix it also,

Thanks,
Cheng Xu

  reply	other threads:[~2022-01-19  2:53 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-01-18 13:11 [PATCH rdma-next v2 06/11] RDMA/erdma: Add verbs header file Bernard Metzler
2022-01-19  2:53 ` Cheng Xu [this message]
  -- strict thread matches above, loose matches on Subject: below --
2022-01-17  8:48 [PATCH rdma-next v2 00/11] Elastic RDMA Adapter (ERDMA) driver Cheng Xu
2022-01-17  8:48 ` [PATCH rdma-next v2 06/11] RDMA/erdma: Add verbs header file Cheng Xu

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=65938b6f-421a-1284-017f-f11553884d69@linux.alibaba.com \
    --to=chengyou@linux.alibaba.com \
    --cc=BMT@zurich.ibm.com \
    --cc=KaiShen@linux.alibaba.com \
    --cc=dledford@redhat.com \
    --cc=jgg@ziepe.ca \
    --cc=leon@kernel.org \
    --cc=linux-rdma@vger.kernel.org \
    --cc=tonylu@linux.alibaba.com \
    /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.