<div>Hi again,</div>
<div> </div>
<div>OK, so I've narrowed it down to the write() function returning the -1, indicating an error. The value of errno I get is EINVAL, but indicates the file descriptor is not valid. However, I've check the file descriptor value and it's listing in the lsof output and all looks fine.
</div>
<div> </div>
<div>Just looking at the code in cm.c, how does the CM_CREATE_MSG_CMD macro work? I can't seem to see where the "msg" parameter gets to point to the "cmd" parameter. Just curious, as I know that the cmpost example application works fine.
</div>
<div> </div>
<div>Any ideas?</div>
<div> </div>
<div>By the way, I'm using OFED 1.1</div>
<div> </div>
<div>Thanks,</div>
<div> </div>
<div>Steve.<br><br> </div>
<div><span class="gmail_quote">On 05/12/06, <b class="gmail_sendername">Steven Wooding</b> <<a href="mailto:steve.apo@googlemail.com">steve.apo@googlemail.com</a>> wrote:</span>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">
<div>Hi,</div>
<div> </div>
<div>In my application I keep getting -1 returned by a call to ib_cm_send_req() function. The cmpost example application works fine, so I can rule out system set-up issues.</div>
<div> </div>
<div>I could do with a glue as to what the -1 means and then hopefully correct my application.</div>
<div> </div>
<div>Thanks,</div>
<div> </div>
<div>Steve.</div></blockquote></div><br>