From: Jack Morgenstein Date: Fri, 3 Aug 2012 08:40:39 +0000 (+0000) Subject: IB/core: Add ib_find_exact_cached_pkey() X-Git-Tag: omap-for-v3.7-rc1/fixes-cpufreq-signed~42^2^5~25 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=73aaa7418f8069103ca56fc620b3cd16c5a37d6e;p=pandora-kernel.git IB/core: Add ib_find_exact_cached_pkey() When P_Key tables potentially contain both full and partial membership copies for the same P_Key, we need a function to find the index for an exact (16-bit) P_Key. This is necessary when the master forwards QP1 MADs sent by guests. If the guest has sent the MAD with a limited membership P_Key, we need to to forward the MAD using the same limited membership P_Key. Since the master may have both the limited and the full member P_Keys in its table, we must make sure to retrieve the limited membership P_Key in this case. Signed-off-by: Jack Morgenstein Signed-off-by: Or Gerlitz Signed-off-by: Roland Dreier --- Reading git-diff-tree failed