<br><br>
<div><span class="gmail_quote">On 7/22/07, <b class="gmail_sendername">Moni Shoua</b> <<a href="mailto:monisonlists@gmail.com">monisonlists@gmail.com</a>> wrote:</span>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">IPoIB turns on the P_Key membership bit of limited membership P_Keys<br>when creating a child interface. After that IPoIB looks for the full
<br>membership P_key in the table to make the interface "RUNNING". This<br>patch fixes the pkey lookup in order to match full and partial membership<br>keys that belong of the same partition.<br><br>device.c | 2 +-
<br>1 files changed, 1 insertion(+), 1 deletion(-)<br><br>Index: infiniband/drivers/infiniband/core/device.c<br>===================================================================<br>--- infiniband.orig/drivers/infiniband/core/device.c 2007-07-08 12:45:
07.000000000 +0300<br>+++ infiniband/drivers/infiniband/core/device.c 2007-07-22 17:43:32.440829619 +0300<br>@@ -702,7 +702,7 @@ int ib_find_pkey(struct ib_device *devic<br> if (ret)<br> return ret;
<br><br>- if (pkey == tmp_pkey) {<br>+ if ((pkey & 0x7fff) == (tmp_pkey & 0x7fff)) {</blockquote>
<div> </div>
<div>Wouldn't this allow 2 limited PKeys to match though ?</div>
<div> </div>
<div>-- Hal</div><br>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid"> *index = i;<br> return 0;<br> }<br><br>_______________________________________________
<br>general mailing list<br><a href="mailto:general@lists.openfabrics.org">general@lists.openfabrics.org</a><br><a href="http://lists.openfabrics.org/cgi-bin/mailman/listinfo/general">http://lists.openfabrics.org/cgi-bin/mailman/listinfo/general
</a><br><br>To unsubscribe, please visit <a href="http://openib.org/mailman/listinfo/openib-general">http://openib.org/mailman/listinfo/openib-general</a><br></blockquote></div><br>