]> git.openfabrics.org - ~shefty/libmlx4.git/commit
Fix possible missed completion event
authorRoland Dreier <roland@purestorage.com>
Wed, 7 Mar 2012 01:30:40 +0000 (17:30 -0800)
committerRoland Dreier <roland@purestorage.com>
Wed, 7 Mar 2012 01:30:40 +0000 (17:30 -0800)
commited13892a51d2ba852bf4fe7ac8b149c34134334e
tree2d86cecce445f965055467c29f8d049df941a977
parent60dade7a5e97da3b2eedf5839169c044f67577b3
Fix possible missed completion event

If an erroneous CQE is polled in the first iteration (i.e. npolled ==
0), we don't update the consumer index and hence the hardware could
get a wrong notion of how many CQEs software polled.  Fix this by
updating the doorbell record on error too.

Signed-off-by: Roland Dreier <roland@purestorage.com>
src/cq.c