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:[EMAIL PROTECTED]]
Sent: Tue 9/27/2005 8:12 PM
To: Venkatesh Babu
Cc: Roland Dreier; openib-general@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.
_______________________________________________ openib-general mailing list openib-general@openib.org http://openib.org/mailman/listinfo/openib-general
To unsubscribe, please visit http://openib.org/mailman/listinfo/openib-general