<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.2900.2802" name=GENERATOR></HEAD>
<BODY>
<DIV><FONT face=Arial size=2><SPAN
class=468513715-09032006>Fab</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><STRONG><SPAN
class=468513715-09032006></SPAN></STRONG></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN class=468513715-09032006>In the
documentation of IBAL its states , </SPAN></FONT><FONT face=Arial size=2><SPAN
class=468513715-09032006>that if one post WQ to QP that is not in
valid state (RTR) it should get
IB_INVALID_QP_STATE.</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN class=468513715-09032006>
<DIV><FONT face=Arial size=2><SPAN class=468513715-09032006>If you want to
check qp state you need to issue query_qp </SPAN></FONT><FONT face=Arial
size=2><SPAN class=468513715-09032006>and still you have race with the
wire ( like RTR that move to RTS or RTS that move to ERR)</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN class=468513715-09032006>
<DIV><FONT face=Arial size=2><SPAN class=468513715-09032006>The only state that
may generate this error is RESET which is not creating CQE,
a</SPAN></FONT><FONT face=Arial size=2><SPAN class=468513715-09032006>ll other
state return CQE with error so let the user check the CQE.</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=468513715-09032006></SPAN></FONT></SPAN></FONT></SPAN></FONT><FONT
face=Arial size=2><SPAN
class=468513715-09032006></SPAN></FONT> </DIV></DIV></DIV>
<DIV><FONT face=Arial size=2><SPAN class=468513715-09032006>Our new
implementation of mthca skip the QP state checkin ( like gen2)
</SPAN></FONT><FONT face=Arial size=2><SPAN class=468513715-09032006>and relay
on the CQE.</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN class=468513715-09032006>Can we change the
documentation of the verb and remove this return value ? or state that its for
RESET state?</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=468513715-09032006></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN class=468513715-09032006></SPAN></FONT><FONT
face=Arial size=2><SPAN class=468513715-09032006></SPAN></FONT><FONT face=Arial
size=2><SPAN class=468513715-09032006></SPAN></FONT><FONT face=Arial
size=2><SPAN class=468513715-09032006>Thanks</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN class=468513715-09032006>Yossi
</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><FONT
size=3><STRONG></STRONG></FONT></FONT> </DIV>
<DIV><FONT face=Arial size=2><FONT
size=3><STRONG></STRONG></FONT></FONT> </DIV>
<DIV><FONT face=Arial size=2><FONT
size=3><STRONG>ib_post_send</STRONG>(<BR>
IN
const
ib_qp_handle_t
h_qp,<BR>
IN
</FONT><A href="file:///W:/work/mthca/docs/iba/ib_types_h.html#robo241"><FONT
size=3>ib_send_wr_t</FONT></A><FONT size=3>*
const
p_send_wr,<BR>
OUT
</FONT><A href="file:///W:/work/mthca/docs/iba/ib_types_h.html#robo241"><FONT
size=3>ib_send_wr_t</FONT></A><FONT
size=3>
**pp_send_failure OPTIONAL );<BR></DIV></FONT>
<P><STRONG>PARAMETERS</STRONG></P><SPAN class=PARAMETERS><PRE> h_qp
[in] The queue pair to which this work request is being submitted.
p_send_wr
[in] A reference to the head of the work request list.
pp_send_failure
[out] If the post send operation failed, this references the work
request in the p_send_wr list where the first failure occurred.
This parameter may be NULL if only a single work request is being
posted to the QP.
RETURN VALUES
IB_SUCCESS
All work requests were successfully posted.
IB_INVALID_QP_HANDLE
The queue pair handle was invalid.
IB_INVALID_PARAMETER
A reference to the send work request list was not provided.
IB_INSUFFICIENT_RESOURCES
The number of posted work requests exceed the current depth available
on the send queue.
IB_INVALID_WR_TYPE
The work request type was invalid.
IB_INVALID_QP_STATE
The current queue pair state does not allow posting sends.
IB_INVALID_MAX_SGE
The number of work request scatter gather elements exceed the queue
pair configuration.
IB_UNSUPPORTED
The requested operation is not supported by the channel adapter.
</PRE></SPAN></FONT></BODY></HTML>