]> git.openfabrics.org - ~shefty/libibverbs.git/commit
Handle out-of-order completions in pingpong examples
authorRoland Dreier <rolandd@cisco.com>
Tue, 25 Oct 2005 22:40:13 +0000 (22:40 +0000)
committerRoland Dreier <rolandd@cisco.com>
Thu, 9 Nov 2006 19:35:58 +0000 (11:35 -0800)
commit35e165d9e688988f556ce80c041817895841fd7d
treec0fc93e8b90293ec4ec71678c32b84349ef5aca5
parentfd3757753787a07bc57b450015f158e256437dbf
Handle out-of-order completions in pingpong examples

Keep track of whether send and/or receive is pending in libibverbs
pingpong examples.  This avoids failures when the remote side receives
data and posts a send very quickly, and the local side completes the
receive before the previous send.  With the old code, this could
result in posting a send before the previous send completed, and
therefore overrun the send queue.

Signed-off-by: Roland Dreier <rolandd@cisco.com>
ChangeLog
examples/rc_pingpong.c
examples/srq_pingpong.c
examples/uc_pingpong.c
examples/ud_pingpong.c