RDMA/nes: Clean out CQ completions when QP is destroyed
authorDon Wood <donald.e.wood@intel.com>
Sun, 6 Sep 2009 03:36:37 +0000 (20:36 -0700)
committerRoland Dreier <rolandd@cisco.com>
Sun, 6 Sep 2009 03:36:37 +0000 (20:36 -0700)
commit5ee21fe0eaf68fb840f442131ab7addced1a31c3
treec2161f284345f6f993b6e467b3840676c1141169
parentba0c5d9a8975cf740a4a4b8c579cc4b325f8b852
RDMA/nes: Clean out CQ completions when QP is destroyed

When a QP is destroyed, unprocessed CQ entries could still reference
the QP.  This change zeroes the context value at QP destroy time.  By
skipping over cqe's with a zero context, poll_cq no longer processes a
cqe for a destroyed QP.

Signed-off-by: Don Wood <donald.e.wood@intel.com>
Signed-off-by: Roland Dreier <rolandd@cisco.com>
drivers/infiniband/hw/nes/nes_verbs.c