> I have little to no idea why the one causes a SEGFAULT and the other
> not, after all I have created and initialized them in the same way. I am
> really getting frustrated by this, I spend the past 3 days looking for
> some cause but to no avail. If I ommit the line where the SEGFAULT
> occurs I get another later when trying to get the QP to the RTS state,
> so sonething is definetly wrong, but right now I don't have the
> slightest clue what. So please, if someone has some idea what I might be
> doing wrong, share it with me. I am really starting to hate this code,
> as there is no comprehensible description as to what are the
> requirements to create a QP for the different transport types, and also
> no examples (at least I didn't found any).

Both libibverbs and librdmacm provide sample programs, and you could also look 
at some of the perftest samples.  The simplest of these for RC QPs is probably 
the rdma_server/rdma_client samples with the librdmacm, but these make use of 
newer APIs.  For UC QPs, you would need to look at libibverbs.  UD QPs are 
setup differently, but both libibverbs and librdmacm have samples.

There wasn't enough context provided in the code snippet for me to see the 
cause of the crash.

- Sean
--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to