[openib-general] [PATCH] librdmacm: fix bug causing failure to work with partial membership pkey
Or Gerlitz
or.gerlitz at gmail.com
Wed Feb 21 12:34:11 PST 2007
On 2/21/07, Sean Hefty <sean.hefty at intel.com> wrote:
>>However, no matter what the SM configures, the core & ipoib code act as
>>the full pkey is there. This is nice simplification and it works well.
> Is the problem here really in the librdmacm or in the core/ipoib software?
There is no problem. As i have explained over this thread the ipoib
and the core abstract away from the user the actual value of the MSb
of the pkey, that is whether it is a full or partial membership pkey.
IPoIB does it by OR-ing 0x8000 to the pkey it uses and the core does
it in ib_find_cached_pkey() which when provided a pkey, return the
index of $pkey or of $pkey & 0x7fff which ever one of the them is
there. The only missing piece is for librdmacm to play this game as
well and the patch does this.
> (I looked at the patch, but haven't looked into the full reason why it's
> needed.)
start with checking me... tell the SM to configure 0x7fff instead of
0xffff to one of your nodes as the pkey at index 0, then see that
ping is working but librdmacm RC utils such as rping or ib_rdma_bw -c
do not. Then apply the patch and check again.
Or.
Or.
More information about the general
mailing list