]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
IB/ib_mthca: Pre-link receive WQEs in Tavor mode
authorEli Cohen <eli at mellanox.co.il>
Thu, 24 Jan 2008 14:38:06 +0000 (06:38 -0800)
committerRoland Dreier <rolandd@cisco.com>
Tue, 5 Feb 2008 04:20:44 +0000 (20:20 -0800)
commit1d368c546566e249da8181e933c53788093965cf
tree08ea2e0280f125f2981ab7ada0d335b5928cc670
parent1203c42e7be1aa0be641b701f42b6d38c2d94b39
IB/ib_mthca: Pre-link receive WQEs in Tavor mode

We have recently discovered that Tavor mode requires each WQE in a
posted list of receive WQEs to have a valid NDA field at all times.
This requirement holds true for regular QPs as well as for SRQs.  This
patch prelinks the receive queue in a regular QP and keeps the free
list in SRQ always properly linked.

Signed-off-by: Eli Cohen <eli@mellanox.co.il>
Reviewed-by: Jack Morgenstein <jackm@mellanox.co.il>
Signed-off-by: Roland Dreier <rolandd@cisco.com>
drivers/infiniband/hw/mthca/mthca_qp.c
drivers/infiniband/hw/mthca/mthca_srq.c