<br><br>
<div class="gmail_quote">On Tue, Aug 4, 2009 at 10:03 AM, Hal Rosenstock <span dir="ltr"><<a href="mailto:hal.rosenstock@gmail.com">hal.rosenstock@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid"><br><br>
<div class="gmail_quote">
<div class="im">On Sun, Aug 2, 2009 at 5:45 PM, Todd Rimmer <span dir="ltr"><<a href="mailto:todd.rimmer@qlogic.com" target="_blank">todd.rimmer@qlogic.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">What is the proper way to control the SLID used for outgoing umad sends?<br><br>For example, when using LMC>0, the PathRecord returned from the SM for talking to a given remove node may have a SLID which is not the BaseLid for the sender. How does the sender ensure the correct SLID is used for the outgoing mad?<br>
<br>In reviewing the API it seems like the only way to do this is:<br>void *umad = umad_alloc(...);<br><br>// call various umad calls to initialize address and contents<br>umad_get_mad_addr(umad)->path_bits = lower LMC bits of SLID;<br>
<br>umad_send(..., umad, ...);<br><br>Was path_bits an intentional omission in the API? </blockquote>
<div> </div></div>
<div>No; it was an unintentional omission AFAIT.</div>
<div class="im">
<div> </div>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid"><span></span> It would seem that a function which could update the ib_mad_addr in a umad given a path record would seem appropriate.</blockquote>
<div> </div></div>
<div>Seems reasonable to me. </div></div></blockquote>
<div> </div>
<div>On second thought, umad is lower level than this and knows nothing of path records (that at higher level). Some API like umad_set_addr handling path bits would be another alternative for this.</div>
<div> </div>
<div>-- Hal</div>
<div> </div>
<div> </div>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">
<div class="gmail_quote">
<div><span id=""></span>Care to supply a patch ?</div>
<div> </div><font color="#888888">
<div>-- Hal</div></font>
<div class="im">
<div> </div>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid"><span></span><br>Todd Rimmer<br>Chief Architect<br>QLogic Network Systems Group<br>Voice: 610-233-4852 Fax: 610-233-4777<br>
Todd.Rimmer@QLogic.com <a href="http://www.qlogic.com/" target="_blank">www.QLogic.com</a><br><br>_______________________________________________<br>general mailing list<br><a href="mailto:general@lists.openfabrics.org" target="_blank">general@lists.openfabrics.org</a><br>
<a href="http://lists.openfabrics.org/cgi-bin/mailman/listinfo/general" target="_blank">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" target="_blank">http://openib.org/mailman/listinfo/openib-general</a><br>
</blockquote></div></div><br></blockquote></div><br>