[openib-general] Local QP operation err while sending packet over UD transport
Venkatesh Babu
Venkatesh.Babu at 3leafnetworks.com
Wed Sep 28 09:57:13 PDT 2005
I missed the following lines when I did cut and paste of the code -
elem -> u.txwr.opcode = IB_WR_SEND;
elem -> u.txwr.next = NULL; /* Send only one */
So it is not the obvious error, it may be something else.
(Yes, I need to correct the coding style errors.)
VBabu
-----Original Message-----
From: Roland Dreier [mailto:rolandd at cisco.com]
Sent: Tue 9/27/2005 8:12 PM
To: Venkatesh Babu
Cc: Roland Dreier; openib-general at openib.org
Subject: Re: [openib-general] Local QP operation err while sending packet over UD transport
VBabu> I am not sure I can post the whole code. But here is the
VBabu> part of it.
It's a little hard to debug without being able to run your code and
reproduce the error. The only things I see obviously wrong are that
you never seem to set elem -> u.txwr.opcode to IB_WR_SEND, so you may
be posting an invalid work request, and also you never set elem ->
u.txwr.next to NULL, so ib_post_send() could follow the next pointer
into some other memory and post a random work request.
(BTW, if your coding style is to put spaces around every operator,
shouldn't you write things like 'elem -> u . txwr . next'? ;)
- R.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openfabrics.org/pipermail/general/attachments/20050928/8f4241bc/attachment.html>
More information about the general
mailing list