IB/mlx4: Fetch XRC SRQ in the CQ polling code
authorShlomo Pongratz <shlomop@mellanox.com>
Wed, 10 Apr 2013 14:26:48 +0000 (14:26 +0000)
committerRoland Dreier <roland@purestorage.com>
Wed, 17 Apr 2013 05:42:55 +0000 (22:42 -0700)
commitf3cca4b1f410c653241f005f4f401c7cd7232058
treeec55b8daa06842bad14fdb048d1fbdb1032070f4
parent9f550553a470d3b05fc8bdced3a738d8ed5b8d8a
IB/mlx4: Fetch XRC SRQ in the CQ polling code

An XRC target QP may redirect to more than one XRC SRQ.  This means
that for work completions associated with a XRC TGT QP, the srq field
in the QP has no usage and the real XRC SRQ need to be retrived using
the information from the XRCETH placed into the CQE, do that.

Signed-off-by: Shlomo Pongratz <shlomop@mellanox.com>
Signed-off-by: Or Gerlitz <ogerlitz@mellanox.com>
Signed-off-by: Roland Dreier <roland@purestorage.com>
drivers/infiniband/hw/mlx4/cq.c