]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commit
IPoIB/cm: Fix receive QP cleanup
authorRoland Dreier <rolandd@cisco.com>
Fri, 26 Oct 2007 20:44:25 +0000 (13:44 -0700)
committerRoland Dreier <rolandd@cisco.com>
Fri, 26 Oct 2007 20:44:25 +0000 (13:44 -0700)
commit09f60f8f54c5e2391f0b7c38dccd7b00d83587ab
tree4d296b98490e9f30b6a2f06e1676f3cdb8eb646a
parent0b776eb5426752d4e53354ac89e3710d857e09a7
IPoIB/cm: Fix receive QP cleanup

Commit 1b524963 ("IPoIB/cm: Use common CQ for CM send completions")
changed how the high-order bits of work request IDs were used, which
had the effect that IPOIB_CM_RX_DRAIN_WRID was no longer handled as a
connected mode receive completion.  This leads to the messages

    ib1: cm send completion event with wrid 1073741823 (> 64)
    ib1: RX drain timing out

when an interface with connected mode QPs is brought down.  Fix this
by making sure that both IPOIB_OP_CM and IPOIB_OP_RECV are set in
IPOIB_CM_RX_DRAIN_WRID.

Signed-off-by: Roland Dreier <rolandd@cisco.com>
drivers/infiniband/ulp/ipoib/ipoib_cm.c