]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
[PATCH] IB/mthca: fix posting of first work request
authorRoland Dreier <rolandd@cisco.com>
Tue, 13 Sep 2005 17:41:03 +0000 (10:41 -0700)
committerRoland Dreier <rolandd@cisco.com>
Mon, 19 Sep 2005 05:02:37 +0000 (22:02 -0700)
commitd6cff021e24515255b296d399ec517a68bf2ed08
treef3d21aca027cb7065522629c00f65fc3a8fb1d96
parentbb4a7f0da75ce9f3e933880428d39b2aa1f16961
[PATCH] IB/mthca: fix posting of first work request

Fix posting first WQE for mem-free HCAs: we need to link to previous
WQE even in that case.  While we're at it, simplify code for
Tavor-mode HCAs.  We don't really need the conditional test there
either; we can similarly always link to the previous WQE.

Based on Michael S. Tsirkin's analogous fix for userspace libmthca.

Signed-off-by: Roland Dreier <rolandd@cisco.com>
drivers/infiniband/hw/mthca/mthca_qp.c
drivers/infiniband/hw/mthca/mthca_srq.c