diff options
author | Eli Cohen <[email protected]> | 2012-03-06 15:50:51 +0200 |
---|---|---|
committer | Roland Dreier <[email protected]> | 2012-03-12 16:24:59 -0700 |
commit | 3616f9cead935d4e4c35915600d5e4d1384219cd (patch) | |
tree | b82899b32ce3c64195195351358267764e535c04 /tools/perf/scripts/python/check-perf-trace.py | |
parent | 5984be90046fa978d94a5ec08bbf8f760cff2b30 (diff) |
IB/mlx4: 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
unconditionally updating the doorbell record. We could change the
check to be something like
if (npolled || err != -EAGAIN)
...
but it does not seem worth the effort since a posted write to memory
should not cost too much.
Signed-off-by: Eli Cohen <[email protected]>
Signed-off-by: Roland Dreier <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/check-perf-trace.py')
0 files changed, 0 insertions, 0 deletions