From: Ralph Campbell Date: Fri, 7 Sep 2007 23:54:01 +0000 (-0700) Subject: IB/ipath: Optimize completion queue entry insertion and polling X-Git-Tag: v2.6.24-rc1~1453^2~14 X-Git-Url: https://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6cff2faaf135b602c914710f3414630c3fc1ee83;p=pandora-kernel.git IB/ipath: Optimize completion queue entry insertion and polling The code to add an entry to the completion queue stored the QPN which is needed for the user level verbs view of the completion queue entry but the kernel struct ib_wc contains a pointer to the QP instead of a QPN. When the kernel polled for a completion queue entry, the QPN was lookup up and the QP pointer recovered. This patch stores the CQE differently based on whether the CQ is a kernel CQ or a user CQ thus avoiding the QPN to QP lookup overhead. Signed-off-by: Ralph Campbell Signed-off-by: Roland Dreier --- Reading git-diff-tree failed