On Tue, Mar 15, 2011 at 02:45:12PM -0400, Greg I Kerr wrote: > I was wondering how the Q_KEY is set by default, if > the user doesn't specify it in the ibv_qp_attr struct?
Qkey is only used for UD connections (it is part of the DETH header) and setting it is mandatory to transition from INIT to RTR. So if you are not using UD then you don't have to worry about qkey, if you are, then whatever value you pass in is being used (even if it is unit'd memory) > I couldn't find a suitable answer in the spec. The reason > I'm asking is because I have a program where I create a > "connection" in the sense that I perform all steps from > opening the device to creating queue pairs and modifying > them to point at the remote queue pairs. Then I run all the > destructor functions, until I close the device. > > I then re-open a new "connection." Right now I'm having > issues with the poll_cq function either never finding anything > on the queue, or returning transport retry counter error, when > I try to send data over the new connection. If you get RNR retry you are using RC and you have to worry about the PSNs as well for every 'connection'. Jason -- 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
