[PATCH IB/core 1/2] IB/core: A full pkey is required to match a limited one

2018-05-09 Thread Håkon Bugge
In ib_find_cached_pkey(), the preference is to return the pkey-index of the full pkey, if both a limited and the full exists in the cache. However, if both pkeys are limited, the function return success. To detect if two pkeys are eligible for communication, ib_find_matched_cached_pkey() is

[PATCH IB/core 1/2] IB/core: A full pkey is required to match a limited one

2018-05-09 Thread Håkon Bugge
In ib_find_cached_pkey(), the preference is to return the pkey-index of the full pkey, if both a limited and the full exists in the cache. However, if both pkeys are limited, the function return success. To detect if two pkeys are eligible for communication, ib_find_matched_cached_pkey() is