From: Alexander Schmidt Date: Tue, 12 Aug 2008 13:46:07 +0000 (+0200) Subject: IB/ehca: Update qp_state on cached modify_qp() X-Git-Tag: v2.6.27-rc3~2^2~5 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=51ad241af45a0bfc02d1ed72a3ad58b46f8e30df;p=pandora-kernel.git IB/ehca: Update qp_state on cached modify_qp() Since the introduction of the port auto-detect mode for ehca, calls to modify_qp() may be cached in the device driver when the ports are not activated yet. When a modify_qp() call is cached, the qp state remains untouched until the port is activated, which will leave the qp in the reset state. In the reset state, however, it is not allowed to post SQ WQEs, which confuses applications like ib_mad. The solution for this problem is to immediately set the qp state as requested by modify_qp(), even when the call is cached. Signed-off-by: Alexander Schmidt Signed-off-by: Roland Dreier --- Reading git-diff-tree failed