All of lore.kernel.org
 help / color / mirror / Atom feed
* [RFC] Adding private data and private data len as argument to rdma_disconnect()
@ 2022-05-05 10:02 Anand Ashok Khoje
  2022-05-13  4:10 ` Anand Ashok Khoje
  0 siblings, 1 reply; 5+ messages in thread
From: Anand Ashok Khoje @ 2022-05-05 10:02 UTC (permalink / raw)
  To: Linux RDMA, Jason Gunthorpe, Doug Ledford
  Cc: Rama Nichanamatlu, Manjunath Patil

Hi,

I just wanted to float an idea for an enhancement and get opinions.

There is a provision in ib_cm layer API ib_send_cm_dreq() to send a
private_data along with the DREQ.
This private_data is helpful in situations where the receiver of DREQ 
may want
to understand the reason for the DREQ and do some action on the basis of 
that
reason.
We have come across issues where it was critical for the RDS code to 
understand
the reason behind a DREQ and recover/tweak some parameters.

Now, rdma_cm layer has a wrapper around ib_send_cm_dreq() i.e 
rdma_disconnect().
rdma_disconnect() is used by the consumers of rdma_cm. rdma_disconnect() 
does
not have an argument that accepts private data. Due to this, consumers 
are not
able to use this feature.

In case if we add the arguments private_data and private_data_length to
rds_disconnect(), the only challenge would be to add those to the callers
of it (NULL and 0).

Please let me know your thoughts on this.

Thanks
Anand


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

end of thread, other threads:[~2022-05-13 13:50 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-05-05 10:02 [RFC] Adding private data and private data len as argument to rdma_disconnect() Anand Ashok Khoje
2022-05-13  4:10 ` Anand Ashok Khoje
2022-05-13  9:39   ` Bernard Metzler
2022-05-13 12:46     ` Jason Gunthorpe
2022-05-13 13:31       ` Tom Talpey

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.