]> git.baikalelectronics.ru Git - kernel.git/commit
mlx4_core: Implement SRQ object lookup from srqn
authorShlomo Pongratz <shlomop@mellanox.com>
Wed, 10 Apr 2013 14:26:47 +0000 (14:26 +0000)
committerRoland Dreier <roland@purestorage.com>
Wed, 17 Apr 2013 05:42:55 +0000 (22:42 -0700)
commit3325b3caa55b24e6d34cbc2781f9b7f6c4426b1a
tree8fd3f2332afb1827cc701192cca1153e63962185
parentd1efe35cce3603f58276bcf31ecfed13264f5683
mlx4_core: Implement SRQ object lookup from srqn

Expose a new API mlx4_srq_lookup() to retrive a SRQ based on its
number.  This API is needed in the mlx4_ib driver CQ polling logic,
when a work completion is associated with a XRC TGT QP.  Since a
target QP may redirect to more than one XRC SRQ, the srq field in the
QP has no usage and the real XRC SRQ need to be retrived using the
information from the XRCETH IB header which is placed in the HW CQE.

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/net/ethernet/mellanox/mlx4/srq.c
include/linux/mlx4/srq.h