linux-rdma.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* struct rdma_conn_param uses u8 for responder_resources, initiator_depth and private_data_len
@ 2025-08-21 21:04 Stefan Metzmacher
  2025-08-21 21:11 ` Stefan Metzmacher
  2025-08-29  1:03 ` Namjae Jeon
  0 siblings, 2 replies; 3+ messages in thread
From: Stefan Metzmacher @ 2025-08-21 21:04 UTC (permalink / raw)
  To: linux-rdma@vger.kernel.org
  Cc: linux-cifs@vger.kernel.org, Samba Technical, Tom Talpey,
	Steve French, Namjae Jeon

Hi,

this mail is triggered by the discussion in this thread on
linux-cifs:
https://lore.kernel.org/linux-cifs/f551bf7f-697a-4298-a62c-74da18992204@samba.org/T/#t

In include/rdma/rdma_cm.h we have this:

struct rdma_conn_param {
         const void *private_data;
         u8 private_data_len;
         u8 responder_resources;
         u8 initiator_depth;
         u8 flow_control;
         u8 retry_count;         /* ignored when accepting */
         u8 rnr_retry_count;
         /* Fields below ignored if a QP is created on the rdma_cm_id. */
         u8 srq;
         u32 qp_num;
         u32 qkey;
};

The iwarp MPA v2 negotiation can handle values up to
0x3fff for responder_resources and initiator_depth.
And private_data_len can be 0xffff for MPA v1 and
0xffff - 4 for MPA v2.

I just found that ROCE only supports u8 in the CM ConnectRequest
(and I guess it's ROCE v1 and v2 as well as Infiniband,
but I've only every seen ROCE v2 captures).

BTW: does ROCE also support private data and if how much?

So is it desired to limit iwarp to u8 values too?

Thanks!
metze

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: struct rdma_conn_param uses u8 for responder_resources, initiator_depth and private_data_len
  2025-08-21 21:04 struct rdma_conn_param uses u8 for responder_resources, initiator_depth and private_data_len Stefan Metzmacher
@ 2025-08-21 21:11 ` Stefan Metzmacher
  2025-08-29  1:03 ` Namjae Jeon
  1 sibling, 0 replies; 3+ messages in thread
From: Stefan Metzmacher @ 2025-08-21 21:11 UTC (permalink / raw)
  To: linux-rdma@vger.kernel.org
  Cc: Tom Talpey, linux-cifs@vger.kernel.org, Samba Technical,
	Namjae Jeon, Steve French

Am 21.08.25 um 23:04 schrieb Stefan Metzmacher via samba-technical:
> Hi,
> 
> this mail is triggered by the discussion in this thread on
> linux-cifs:
> https://lore.kernel.org/linux-cifs/f551bf7f-697a-4298-a62c-74da18992204@samba.org/T/#t
> 
> In include/rdma/rdma_cm.h we have this:
> 
> struct rdma_conn_param {
>          const void *private_data;
>          u8 private_data_len;
>          u8 responder_resources;
>          u8 initiator_depth;
>          u8 flow_control;
>          u8 retry_count;         /* ignored when accepting */
>          u8 rnr_retry_count;
>          /* Fields below ignored if a QP is created on the rdma_cm_id. */
>          u8 srq;
>          u32 qp_num;
>          u32 qkey;
> };

struct iw_cm_event {
         enum iw_cm_event_type event;
         int                      status;
         struct sockaddr_storage local_addr;
         struct sockaddr_storage remote_addr;
         void *private_data;
         void *provider_data;
         u8 private_data_len;
         u8 ord;
         u8 ird;
};

Also has them as u8...

> The iwarp MPA v2 negotiation can handle values up to
> 0x3fff for responder_resources and initiator_depth.
> And private_data_len can be 0xffff for MPA v1 and
> 0xffff - 4 for MPA v2.
> 
> I just found that ROCE only supports u8 in the CM ConnectRequest
> (and I guess it's ROCE v1 and v2 as well as Infiniband,
> but I've only every seen ROCE v2 captures).
> 
> BTW: does ROCE also support private data and if how much?
> 
> So is it desired to limit iwarp to u8 values too?
> 
> Thanks!
> metze
> 


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: struct rdma_conn_param uses u8 for responder_resources, initiator_depth and private_data_len
  2025-08-21 21:04 struct rdma_conn_param uses u8 for responder_resources, initiator_depth and private_data_len Stefan Metzmacher
  2025-08-21 21:11 ` Stefan Metzmacher
@ 2025-08-29  1:03 ` Namjae Jeon
  1 sibling, 0 replies; 3+ messages in thread
From: Namjae Jeon @ 2025-08-29  1:03 UTC (permalink / raw)
  To: Stefan Metzmacher, Jason Gunthorpe, Leon Romanovsky
  Cc: linux-rdma@vger.kernel.org, linux-cifs@vger.kernel.org,
	Samba Technical, Tom Talpey, Steve French

On Fri, Aug 22, 2025 at 6:04 AM Stefan Metzmacher <metze@samba.org> wrote:
>
> Hi,
CC: Jason and Leon.
>
> this mail is triggered by the discussion in this thread on
> linux-cifs:
> https://lore.kernel.org/linux-cifs/f551bf7f-697a-4298-a62c-74da18992204@samba.org/T/#t
>
> In include/rdma/rdma_cm.h we have this:
>
> struct rdma_conn_param {
>          const void *private_data;
>          u8 private_data_len;
>          u8 responder_resources;
>          u8 initiator_depth;
>          u8 flow_control;
>          u8 retry_count;         /* ignored when accepting */
>          u8 rnr_retry_count;
>          /* Fields below ignored if a QP is created on the rdma_cm_id. */
>          u8 srq;
>          u32 qp_num;
>          u32 qkey;
> };
>
> The iwarp MPA v2 negotiation can handle values up to
> 0x3fff for responder_resources and initiator_depth.
> And private_data_len can be 0xffff for MPA v1 and
> 0xffff - 4 for MPA v2.
>
> I just found that ROCE only supports u8 in the CM ConnectRequest
> (and I guess it's ROCE v1 and v2 as well as Infiniband,
> but I've only every seen ROCE v2 captures).
>
> BTW: does ROCE also support private data and if how much?
>
> So is it desired to limit iwarp to u8 values too?
>
> Thanks!
> metze

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2025-08-29  1:03 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-08-21 21:04 struct rdma_conn_param uses u8 for responder_resources, initiator_depth and private_data_len Stefan Metzmacher
2025-08-21 21:11 ` Stefan Metzmacher
2025-08-29  1:03 ` Namjae Jeon

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).