All of lore.kernel.org
 help / color / mirror / Atom feed
From: Cheng Xu <chengyou@linux.alibaba.com>
To: Wenpeng Liang <liangwenpeng@huawei.com>,
	jgg@ziepe.ca, dledford@redhat.com
Cc: leon@kernel.org, linux-rdma@vger.kernel.org,
	KaiShen@linux.alibaba.com, tonylu@linux.alibaba.com,
	BMT@zurich.ibm.com
Subject: Re: [PATCH for-next v4 03/12] RDMA/erdma: Add the hardware related definitions
Date: Sat, 19 Mar 2022 15:53:17 +0800	[thread overview]
Message-ID: <7330e0e7-477f-fac5-43aa-8ec32cd41890@linux.alibaba.com> (raw)
In-Reply-To: <657d3bf4-e09c-a36a-6a0d-4c27c4720773@huawei.com>



On 3/18/22 6:27 PM, Wenpeng Liang wrote:
>> +
>> +struct erdma_cmdq_dereg_mr_req {
>> +	u64 hdr;
>> +	u32 cfg0;
>> +};
> 
> A single cfg may not need numbering.
> 
> cfg0->cfg
> 
>> +
>> +/* modify qp cfg0 */
> 
> Ditto.
> 
> cfg0->cfg
> 

Fine will fix.

>> +#define ERDMA_CMD_MODIFY_QP_STATE_MASK GENMASK(31, 24)
>> +#define ERDMA_CMD_MODIFY_QP_CC_MASK GENMASK(23, 20)
>> +#define ERDMA_CMD_MODIFY_QP_QPN_MASK GENMASK(19, 0)
>> +
>> +struct erdma_cmdq_modify_qp_req {
>> +	u64 hdr;
>> +	u32 cfg0;
>> +	u32 cookie;
>> +	u32 dip;
>> +	u32 sip;
>> +	u16 sport;
>> +	u16 dport;
>> +	u32 send_nxt;
>> +	u32 recv_nxt;
>> +};
> 
> Ditto.
> 
> cfg0->cfg
Will fix.

> 
>> +
>> +/* create qp cfg0 */
>> +#define ERDMA_CMD_CREATE_QP_SQ_DEPTH_MASK GENMASK(31, 20)
>> +#define ERDMA_CMD_CREATE_QP_QPN_MASK GENMASK(19, 0)
>> +
>> +/* create qp cfg1 */
>> +#define ERDMA_CMD_CREATE_QP_RQ_DEPTH_MASK GENMASK(31, 20)
>> +#define ERDMA_CMD_CREATE_QP_PD_MASK GENMASK(19, 0)
>> +
> 
>> +
>> +/* Receive Queue Element */
>> +struct erdma_rqe {
>> +	__le16 qe_idx;
>> +	__le16 rsvd;
>> +	__le32 qpn;
>> +	__le32 rsvd2;
>> +	__le32 rsvd3;
>> +	__le64 to;
>> +	__le32 length;
>> +	__le32 stag;
>> +};
> 
> Can these "rsvd" be numbered sequentially?
> 
> rsvd->rsvd0
> rsvd2->rsvd1
> rsvd3->rsvd2
> 

OK, I will pay more attention about this.

Thanks.

>> +
>> +struct erdma_readreq_sqe {
>> +	__le64 hdr;
>> +	__le32 invalid_stag;
>> +	__le32 length;
>> +	__le32 sink_stag;
>> +	__le32 sink_to_low;
>> +	__le32 sink_to_high;
>> +	__le32 rsvd0;
>> +};
> 
> A single rsvd may not need numbering.
> 
> rsvd0->rsvd
> 

Also will fix.
> 
>> +struct erdma_aeqe {
>> +	__le32 hdr;
>> +	__le32 event_data0;
>> +	__le32 event_data1;
>> +	__le32 rsvd2;
>> +};
> 
> Ditto.
> 
> rsvd2->rsvd

will fix.

Thanks,
Cheng Xu

> 
> Thanks,
> Wenpeng

  reply	other threads:[~2022-03-19  7:53 UTC|newest]

Thread overview: 39+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-03-14  6:47 [PATCH for-next v4 00/12] Elastic RDMA Adapter (ERDMA) driver Cheng Xu
2022-03-14  6:47 ` [PATCH for-next v4 01/12] RDMA: Add ERDMA to rdma_driver_id definition Cheng Xu
2022-03-14  6:47 ` [PATCH for-next v4 02/12] RDMA/core: Allow calling query_port when netdev isn't attached in iWarp Cheng Xu
2022-03-14  6:47 ` [PATCH for-next v4 03/12] RDMA/erdma: Add the hardware related definitions Cheng Xu
2022-03-18 10:27   ` Wenpeng Liang
2022-03-19  7:53     ` Cheng Xu [this message]
2022-03-14  6:47 ` [PATCH for-next v4 04/12] RDMA/erdma: Add main include file Cheng Xu
2022-03-18 10:35   ` Wenpeng Liang
2022-03-19  8:11     ` Cheng Xu
2022-03-14  6:47 ` [PATCH for-next v4 05/12] RDMA/erdma: Add cmdq implementation Cheng Xu
2022-03-18 11:13   ` Wenpeng Liang
2022-03-19  8:38     ` Cheng Xu
2022-03-18 11:16   ` Wenpeng Liang
2022-03-18 18:17     ` Jason Gunthorpe
2022-03-19  1:26       ` Wenpeng Liang
2022-03-18 12:57   ` Wenpeng Liang
2022-03-19  9:18     ` Cheng Xu
2022-03-14  6:47 ` [PATCH for-next v4 06/12] RDMA/erdma: Add event queue implementation Cheng Xu
2022-03-18 11:43   ` Wenpeng Liang
2022-03-18 18:18     ` Jason Gunthorpe
2022-03-19  9:43       ` Cheng Xu
2022-03-21 22:23         ` Jason Gunthorpe
2022-03-22  3:06           ` Cheng Xu
2022-03-19  8:54     ` Cheng Xu
2022-03-14  6:47 ` [PATCH for-next v4 07/12] RDMA/erdma: Add verbs header file Cheng Xu
2022-03-18 11:46   ` Wenpeng Liang
2022-03-19  8:55     ` Cheng Xu
2022-03-14  6:47 ` [PATCH for-next v4 08/12] RDMA/erdma: Add verbs implementation Cheng Xu
2022-03-18 12:24   ` Wenpeng Liang
2022-03-19  9:06     ` Cheng Xu
2022-03-14  6:47 ` [PATCH for-next v4 09/12] RDMA/erdma: Add connection management (CM) support Cheng Xu
2022-03-18 12:38   ` Wenpeng Liang
2022-03-19  9:10     ` Cheng Xu
2022-03-14  6:47 ` [PATCH for-next v4 10/12] RDMA/erdma: Add the erdma module Cheng Xu
2022-03-18 12:46   ` Wenpeng Liang
2022-03-19  9:13     ` Cheng Xu
2022-03-14  6:47 ` [PATCH for-next v4 11/12] RDMA/erdma: Add the ABI definitions Cheng Xu
2022-03-14  6:47 ` [PATCH for-next v4 12/12] RDMA/erdma: Add driver to kernel build environment Cheng Xu
2022-03-17  3:14   ` kernel test robot

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=7330e0e7-477f-fac5-43aa-8ec32cd41890@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=liangwenpeng@huawei.com \
    --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.