linux-rdma.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* ibv_send_wr untagged union
@ 2020-03-31 12:42 Jacques Marais
  2020-03-31 13:02 ` Jason Gunthorpe
  0 siblings, 1 reply; 2+ messages in thread
From: Jacques Marais @ 2020-03-31 12:42 UTC (permalink / raw)
  To: linux-rdma

[-- Attachment #1: Type: text/plain, Size: 547 bytes --]

Hi

I have a question regarding a untagged union field added in commit:
https://github.com/linux-rdma/rdma-core/commit/f67fa98d3c0cb78c95f84301572eb93989d4b0f9

Specifically the union in the 'ibv_send_wr' structure:
https://github.com/linux-rdma/rdma-core/blob/master/libibverbs/verbs.h#L1097-L1100

We have a golang wrapper library in order to make use of infiniband in our system. However golang can only interface with tagged unions.

Is it possible to tag that union?

Or should I just send in a patch with it tagged?

Regards,
Jacques Marais

[-- Attachment #2: smime.p7s --]
[-- Type: application/pkcs7-signature, Size: 3915 bytes --]

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

* Re: ibv_send_wr untagged union
  2020-03-31 12:42 ibv_send_wr untagged union Jacques Marais
@ 2020-03-31 13:02 ` Jason Gunthorpe
  0 siblings, 0 replies; 2+ messages in thread
From: Jason Gunthorpe @ 2020-03-31 13:02 UTC (permalink / raw)
  To: Jacques Marais; +Cc: linux-rdma

On Tue, Mar 31, 2020 at 12:42:06PM +0000, Jacques Marais wrote:
> Hi
> 
> I have a question regarding a untagged union field added in commit:
> https://github.com/linux-rdma/rdma-core/commit/f67fa98d3c0cb78c95f84301572eb93989d4b0f9
> 
> Specifically the union in the 'ibv_send_wr' structure:
> https://github.com/linux-rdma/rdma-core/blob/master/libibverbs/verbs.h#L1097-L1100
> 
> We have a golang wrapper library in order to make use of infiniband
> in our system. However golang can only interface with tagged unions.
> 
> Is it possible to tag that union?

No, it is 'api' that it remain untagged

Jason

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

end of thread, other threads:[~2020-03-31 13:02 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-03-31 12:42 ibv_send_wr untagged union Jacques Marais
2020-03-31 13:02 ` Jason Gunthorpe

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).