]> git.openfabrics.org - ~shefty/libmlx4.git/commit
Fix problem with inline WQE in post_send error flow
authorJack Morgenstein <jackm@dev.mellanox.co.il>
Mon, 11 Jun 2007 15:09:50 +0000 (18:09 +0300)
committerRoland Dreier <rolandd@cisco.com>
Mon, 11 Jun 2007 21:48:27 +0000 (14:48 -0700)
commitc77ead01ac476ded29f9b4e1e0fbabf4c2fa7156
tree56f1916613da6e6dc23c24fdd5c49b46d059d7a3
parent919c3773f87dcd310a6dc02dd6112f844ab17353
Fix problem with inline WQE in post_send error flow

Suppose a consumer posts a list of two WQEs, with the second wqe in
the list being an INLINE which is too long.  In this case, post_send
jumps to "out" with: nreq = 1, inl positive, and size in the range
allowing blueflame. All the blueflame test conditions are met.
However, the cntl pointer now points to the invalid wqe, and this will
be "blueflamed".

Fix this by setting inl to 0 before jumping out of the loop.

Signed-off-by: Jack Morgenstein <jackm@dev.mellanox.co.il>
Signed-off-by: Roland Dreier <rolandd@cisco.com>
src/qp.c