IB/mthca: Fix PRM compliance problem in atomic-send completions
authorJack Morgenstein <jackm@dev.mellanox.co.il>
Mon, 25 Dec 2006 07:24:52 +0000 (09:24 +0200)
committerRoland Dreier <rolandd@cisco.com>
Mon, 8 Jan 2007 04:25:24 +0000 (20:25 -0800)
commit98714cb161b4b1a5d0c5bd0337a8578196b73677
tree7ea22e79dc95a7c16bcba73430939ca2b21c348b
parent0cefcf0bbc2d252eb48bff3289fb59c3817dd405
IB/mthca: Fix PRM compliance problem in atomic-send completions

According to the Tavor and Arbel programmer's reference manuals, the
number of bytes transferred is not provided in the byte_cnt field of
the CQ entry for atomic operation completions.  For atomic operations,
the number of bytes transferred is always 8 (when the status is
"success"), and this constant value should always be used by the
driver in the ib_wc entry returned, rather than using the CQE.

Signed-off-by: Jack Morgenstein <jackm@dev.mellanox.co.il>
Signed-off-by: Roland Dreier <rolandd@cisco.com>
drivers/infiniband/hw/mthca/mthca_cq.c