<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<META NAME="Generator" CONTENT="MS Exchange Server version 6.5.7232.36">
<TITLE>RE: [openib-general] Local QP operation err while sending packet over UD transport</TITLE>
</HEAD>
<BODY>
<!-- Converted from text/plain format -->
<BR>

<P><FONT SIZE=2> I missed the following lines when I did cut and paste of the code -<BR>
                elem -> u.txwr.opcode = IB_WR_SEND;<BR>
                elem -> u.txwr.next = NULL;     /* Send only one */<BR>
<BR>
 So it is not the obvious error, it may be something else.<BR>
<BR>
 (Yes, I need to correct the coding style errors.)<BR>
<BR>
 VBabu<BR>
<BR>
-----Original Message-----<BR>
From: Roland Dreier [<A HREF="mailto:rolandd@cisco.com">mailto:rolandd@cisco.com</A>]<BR>
Sent: Tue 9/27/2005 8:12 PM<BR>
To: Venkatesh Babu<BR>
Cc: Roland Dreier; openib-general@openib.org<BR>
Subject: Re: [openib-general] Local QP operation err while sending packet over UD transport<BR>
<BR>
    VBabu> I am not sure I can post the whole code. But here is the<BR>
    VBabu> part of it.<BR>
<BR>
It's a little hard to debug without being able to run your code and<BR>
reproduce the error.  The only things I see obviously wrong are that<BR>
you never seem to set elem -> u.txwr.opcode to IB_WR_SEND, so you may<BR>
be posting an invalid work request, and also you never set elem -><BR>
u.txwr.next to NULL, so ib_post_send() could follow the next pointer<BR>
into some other memory and post a random work request.<BR>
<BR>
(BTW, if your coding style is to put spaces around every operator,<BR>
shouldn't you write things like 'elem -> u . txwr . next'? ;)<BR>
<BR>
 - R.<BR>
<BR>
</FONT>
</P>

</BODY>
</HTML>