<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">

<head>
<meta http-equiv=Content-Type content="text/html; charset=us-ascii">
<meta name=Generator content="Microsoft Word 12 (filtered medium)">
<style>
<!--
 /* Font Definitions */
 @font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
span.EmailStyle17
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page Section1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.Section1
        {page:Section1;}
-->
</style>
<!--[if gte mso 9]><xml>
 <o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
 <o:shapelayout v:ext="edit">
  <o:idmap v:ext="edit" data="1" />
 </o:shapelayout></xml><![endif]-->
</head>

<body lang=EN-US link=blue vlink=purple>

<div class=Section1>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>If you want to avoid all the SM stuff, and are willing to
program the switches directly (a few mads), then I’ve used schemes like:<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p> </o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>Node LID=base + (switch port * constant) (base=0, constant = 1
works)<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p> </o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>Then to figure out QP connections, you just use a function of 3
parameters:<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>  my_qp_num = fn_sqp(my_node, target_node, qp_num)<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>  target_qp_num = fn_tqp(my_node, target_node, qp_num)<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>Where qp_num is a small number between 0 and the maximum number
of QPs you need active between any 2 endpoints.  <o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p> </o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>With the above scheme, you know your node_id (switch port
number), your lid, the lid of the target node,  and the QPs on both
sides.  From there on, it is clear sailing.  You don’t even
need to send MADs; just transition the QP up and try and use it.  If it
works, you are done.  If not, reset, up, wait for him to connect and send
something to you.  A little timer to make sure everybody retries once in
awhile and what can go wrong?<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p> </o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>Jim<o:p></o:p></span></p>

<div style='border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in 0in 0in'>

<p class=MsoNormal><b><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>From:</span></b><span
style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>
general-bounces@lists.openfabrics.org
[mailto:general-bounces@lists.openfabrics.org] <b>On Behalf Of </b>Yicheng Jia<br>
<b>Sent:</b> Thursday, July 10, 2008 2:59 PM<br>
<b>To:</b> general@lists.openfabrics.org<br>
<b>Subject:</b> [ofa-general] minimum sw components requirement for
driver/opensm in a single unmanaged switch network<o:p></o:p></span></p>

</div>

<p class=MsoNormal><o:p> </o:p></p>

<p class=MsoNormal><br>
<span style='font-size:10.0pt;font-family:"Arial","sans-serif"'>Hi Folks,</span>
<br>
<br>
<span style='font-size:10.0pt;font-family:"Arial","sans-serif"'>I have a IB
network which consists of only a single unmanaged switch, all end nodes
connecting with the switch only need to do RDMA read/write operation with each
other. My question is, what are the indispensable modules in driver's core and
opensm that make the network up and run? </span><br>
<br>
<span style='font-size:10.0pt;font-family:"Arial","sans-serif"'>I've been using
only ib_mad module in driver's core with a managed switch before, and the
network works fine. So I assume that only the ib_mad module in driver's core
and SM in opensm are mandatory in my network. The LIDs are assigned by them.
The SA and CM modules are not useful in my case. Am I right?</span> <br>
<br>
<span style='font-size:10.0pt;font-family:"Arial","sans-serif"'>I need to
minimize driver and opensm to fit them in my network, the HCA driver is mthca.</span>
<br>
<br>
<span style='font-size:10.0pt;font-family:"Arial","sans-serif"'>Best,</span> <br>
<span style='font-size:10.0pt;font-family:"Arial","sans-serif"'>Yicheng</span> <br>
_____________________________________________________________________________<br>
Scanned by IBM Email Security Management Services powered by MessageLabs. For
more information please visit http://www.ers.ibm.com<br>
_____________________________________________________________________________<o:p></o:p></p>

</div>

</body>

</html>