]> git.karo-electronics.de Git - karo-tx-linux.git/commit
IB/core: Add ib_find_exact_cached_pkey()
authorJack Morgenstein <jackm@dev.mellanox.co.il>
Fri, 3 Aug 2012 08:40:39 +0000 (08:40 +0000)
committerRoland Dreier <roland@purestorage.com>
Wed, 19 Sep 2012 05:09:27 +0000 (22:09 -0700)
commit9cab3eaf5b949667a621ba83240e5ef220170241
tree96d484d24e37abd5095743a871a2433a2b07c52e
parent507a2360697f3e28b6801bd2e5e462de97814f55
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 <jackm@dev.mellanox.co.il>
Signed-off-by: Or Gerlitz <ogerlitz@mellanox.com>
Signed-off-by: Roland Dreier <roland@purestorage.com>
drivers/infiniband/core/cache.c
include/rdma/ib_cache.h