<html xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:st1="urn:schemas-microsoft-com:office:smarttags" xmlns="http://www.w3.org/TR/REC-html40">

<head>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=US-ASCII">


<meta name=ProgId content=Word.Document>
<meta name=Generator content="Microsoft Word 10">
<meta name=Originator content="Microsoft Word 10">
<link rel=File-List href="cid:filelist.xml@01C5A6F6.8172D7C0">
<title>RMPP Message Format Errors</title>
<o:SmartTagType namespaceuri="urn:schemas-microsoft-com:office:smarttags"
 name="PersonName"/>
<!--[if gte mso 9]><xml>
 <o:OfficeDocumentSettings>
  <o:DoNotRelyOnCSS/>
 </o:OfficeDocumentSettings>
</xml><![endif]--><!--[if gte mso 9]><xml>
 <w:WordDocument>
  <w:Zoom>120</w:Zoom>
  <w:SpellingState>Clean</w:SpellingState>
  <w:GrammarState>Clean</w:GrammarState>
  <w:DocumentKind>DocumentEmail</w:DocumentKind>
  <w:EnvelopeVis/>
  <w:Compatibility>
   <w:ApplyBreakingRules/>
  </w:Compatibility>
  <w:BrowserLevel>MicrosoftInternetExplorer4</w:BrowserLevel>
 </w:WordDocument>
</xml><![endif]--><!--[if !mso]>
<style>
st1\:*{behavior:url(#default#ieooui) }
</style>
<![endif]-->
<style>
<!--
 /* Font Definitions */
 @font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;
        mso-font-charset:0;
        mso-generic-font-family:swiss;
        mso-font-pitch:variable;
        mso-font-signature:1627421319 -2147483648 8 0 66047 0;}
@font-face
        {font-family:"Palatino Linotype";
        panose-1:2 4 5 2 5 5 5 3 3 4;
        mso-font-charset:0;
        mso-generic-font-family:roman;
        mso-font-pitch:variable;
        mso-font-signature:-536870009 1073741843 0 0 415 0;}
@font-face
        {font-family:"Monotype Corsiva";
        panose-1:3 1 1 1 1 2 1 1 1 1;
        mso-font-charset:0;
        mso-generic-font-family:script;
        mso-font-pitch:variable;
        mso-font-signature:647 0 0 0 159 0;}
 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
        {mso-style-parent:"";
        margin:0in;
        margin-bottom:.0001pt;
        mso-pagination:widow-orphan;
        font-size:12.0pt;
        font-family:"Times New Roman";
        mso-fareast-font-family:"Times New Roman";}
a:link, span.MsoHyperlink
        {color:blue;
        text-decoration:underline;
        text-underline:single;}
a:visited, span.MsoHyperlinkFollowed
        {color:#606420;
        text-decoration:underline;
        text-underline:single;}
p
        {mso-margin-top-alt:auto;
        margin-right:0in;
        mso-margin-bottom-alt:auto;
        margin-left:0in;
        mso-pagination:widow-orphan;
        font-size:12.0pt;
        font-family:"Times New Roman";
        mso-fareast-font-family:"Times New Roman";}
span.emailstyle18
        {mso-style-name:emailstyle18;
        font-family:Arial;
        mso-ascii-font-family:Arial;
        mso-hansi-font-family:Arial;
        mso-bidi-font-family:Arial;
        color:navy;}
span.EmailStyle19
        {mso-style-type:personal-reply;
        mso-style-noshow:yes;
        mso-ansi-font-size:12.0pt;
        mso-bidi-font-size:12.0pt;
        font-family:"Palatino Linotype";
        mso-ascii-font-family:"Palatino Linotype";
        mso-hansi-font-family:"Palatino Linotype";
        color:navy;
        font-weight:bold;
        font-style:normal;
        text-decoration:none;
        text-underline:none;
        text-decoration:none;
        text-line-through:none;}
span.SpellE
        {mso-style-name:"";
        mso-spl-e:yes;}
@page Section1
        {size:8.5in 11.0in;
        margin:1.0in 1.25in 1.0in 1.25in;
        mso-header-margin:.5in;
        mso-footer-margin:.5in;
        mso-paper-source:0;}
div.Section1
        {page:Section1;}
-->
</style>
<!--[if gte mso 10]>
<style>
 /* Style Definitions */ 
 table.MsoNormalTable
        {mso-style-name:"Table Normal";
        mso-tstyle-rowband-size:0;
        mso-tstyle-colband-size:0;
        mso-style-noshow:yes;
        mso-style-parent:"";
        mso-padding-alt:0in 5.4pt 0in 5.4pt;
        mso-para-margin:0in;
        mso-para-margin-bottom:.0001pt;
        mso-pagination:widow-orphan;
        font-size:10.0pt;
        font-family:"Times New Roman";}
</style>
<![endif]-->
</head>

<body lang=EN-US link=blue vlink="#606420" style='tab-interval:.5in'>

<div class=Section1>

<p class=MsoNormal><b><font size=3 color=navy face="Palatino Linotype"><span
Palatino><span style='font-size:12.0pt;font-family:"Palatino Linotype";
color:navy;font-weight:bold'>Hi Sean,<o:p></o:p></span></font></b></p>

<p class=MsoNormal><b><font size=3 color=navy face="Palatino Linotype"><span
style='font-size:12.0pt;font-family:"Palatino Linotype";color:navy;font-weight:
bold'><o:p> </o:p></span></font></b></p>

<p class=MsoNormal><b><font size=3 color=navy face="Palatino Linotype"><span
style='font-size:12.0pt;font-family:"Palatino Linotype";color:navy;font-weight:
bold'>You wrote:<o:p></o:p></span></font></b></p>

<p class=MsoNormal><font size=3 color=navy face="Palatino Linotype"><span
style='font-size:12.0pt;font-family:"Palatino Linotype";color:navy'>"Note
that the current implementation of the RMPP code ignores the payload length on
the receive side, and instead relies on the last bit to determine the end of a
transfer."<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=3 color=navy face="Palatino Linotype"><span
style='font-size:12.0pt;font-family:"Palatino Linotype";color:navy'><o:p> </o:p></span></font></p>

<p class=MsoNormal><b><font size=3 color=navy face="Palatino Linotype"><span
style='font-size:12.0pt;font-family:"Palatino Linotype";color:navy;font-weight:
bold'>But the receive side needs to calculate back the correct size of the assembled
MAD.<o:p></o:p></span></font></b></p>

<p class=MsoNormal><b><font size=3 color=navy face="Palatino Linotype"><span
style='font-size:12.0pt;font-family:"Palatino Linotype";color:navy;font-weight:
bold'>If it is done in kernel or user it does not matter. To my best knowledge
the only way to calculate how many records are enclosed in an RMPP message is
to use the <span class=SpellE>paylen</span> and offset.<o:p></o:p></span></font></b></p>

<p class=MsoNormal><b><font size=3 color=navy face="Palatino Linotype"><span
style='font-size:12.0pt;font-family:"Palatino Linotype";color:navy;font-weight:
bold'>How can it be done without looking at <span class=SpellE>paylen</span> ?<o:p></o:p></span></font></b></p>

<p class=MsoNormal><b><font size=3 color=navy face="Palatino Linotype"><span
style='font-size:12.0pt;font-family:"Palatino Linotype";color:navy;font-weight:
bold'><o:p> </o:p></span></font></b></p>

<p class=MsoNormal><b><font size=3 color=navy face="Palatino Linotype"><span
style='font-size:12.0pt;font-family:"Palatino Linotype";color:navy;font-weight:
bold'>EZ<o:p></o:p></span></font></b></p>

<p class=MsoNormal><b><font size=3 color=navy face="Palatino Linotype"><span
style='font-size:12.0pt;font-family:"Palatino Linotype";color:navy;font-weight:
bold'><o:p> </o:p></span></font></b></p>

<div>

<p class=MsoNormal style='mso-layout-grid-align:none;text-autospace:none'><st1:PersonName><st1:PersonName><b><i><font
  size=5 color=blue face="Monotype Corsiva"><span lang=EN-GB style='font-size:
  20.0pt;font-family:"Monotype Corsiva";mso-bidi-font-family:"Monotype Corsiva";
  color:blue;mso-ansi-language:EN-GB;font-weight:bold;font-style:italic;
  mso-no-proof:yes'>Eitan</span></font></i></b></st1:PersonName><b><i><font
 size=5 color=blue face="Monotype Corsiva"><span lang=EN-GB style='font-size:
 20.0pt;font-family:"Monotype Corsiva";mso-bidi-font-family:"Monotype Corsiva";
 color:blue;mso-ansi-language:EN-GB;font-weight:bold;font-style:italic;
 mso-no-proof:yes'> Zahavi</span></font></i></b></st1:PersonName><font size=1
color=navy face=Tahoma><span lang=EN-GB style='font-size:8.5pt;font-family:
Tahoma;color:navy;mso-ansi-language:EN-GB;mso-no-proof:yes'><o:p></o:p></span></font></p>

<p class=MsoNormal style='mso-layout-grid-align:none;text-autospace:none'><font
size=1 color=navy face=Tahoma><span lang=EN-GB style='font-size:8.5pt;
font-family:Tahoma;color:navy;mso-ansi-language:EN-GB;mso-no-proof:yes'>Design
Technology Director<o:p></o:p></span></font></p>

<p class=MsoNormal style='mso-layout-grid-align:none;text-autospace:none'><font
size=1 color=navy face=Tahoma><span lang=EN-GB style='font-size:8.5pt;
font-family:Tahoma;color:navy;mso-ansi-language:EN-GB;mso-no-proof:yes'>Mellanox
Technologies LTD<o:p></o:p></span></font></p>

<p class=MsoNormal style='mso-layout-grid-align:none;text-autospace:none'><font
size=1 color=navy face=Tahoma><span lang=EN-GB style='font-size:8.5pt;
font-family:Tahoma;color:navy;mso-ansi-language:EN-GB;mso-no-proof:yes'>Tel:+972-4-9097208<br>
Fax:+972-4-9593245<o:p></o:p></span></font></p>

<p class=MsoNormal style='mso-layout-grid-align:none;text-autospace:none'><font
size=1 color=navy face=Tahoma><span lang=EN-GB style='font-size:8.5pt;
font-family:Tahoma;color:navy;mso-ansi-language:EN-GB;mso-no-proof:yes'>P.O.
Box 586 Yokneam 20692 ISRAEL<o:p></o:p></span></font></p>

</div>

<p class=MsoNormal><b><font size=3 color=navy face="Palatino Linotype"><span
style='font-size:12.0pt;font-family:"Palatino Linotype";color:navy;font-weight:
bold'><o:p> </o:p></span></font></b></p>

<div style='border:none;border-left:solid blue 1.5pt;padding:0in 0in 0in 4.0pt'>

<p class=MsoNormal><font size=2 face=Tahoma><span style='font-size:10.0pt;
font-family:Tahoma'>-----Original Message-----<br>
<b><span style='font-weight:bold'>From:</span></b> Sean Hefty
[mailto:sean.hefty@intel.com] <br>
<b><span style='font-weight:bold'>Sent:</span></b> Monday, August 22, 2005 1:01
AM<br>
<b><span style='font-weight:bold'>To:</span></b> 'Eitan Zahavi'; Hal Rosenstock<br>
<b><span style='font-weight:bold'>Cc:</span></b> OPENIB GENERAL; Liran Sorani;
Amit Krig; Aviram Gutman<br>
<b><span style='font-weight:bold'>Subject:</span></b> RE: RMPP Message Format
Errors</span></font></p>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'><o:p> </o:p></span></font></p>

<div style='border:none;border-left:solid blue 1.5pt;padding:0in 0in 0in 4.0pt'>

<p><font size=3 color=blue face="Palatino Linotype"><span style='font-size:
12.0pt;font-family:"Palatino Linotype";color:blue'>Please let me know if you
will have time to dig into these problems or if I should try</span></span></font>
<font color=blue face="Palatino Linotype"><span Palatino><span
style='font-family:"Palatino Linotype";color:blue'>and</span></span></font> <font
color=blue face="Palatino Linotype"><span Palatino><span style='font-family:
"Palatino Linotype";color:blue'>resolve them myself and provide patches.</span></span></font>
<o:p></o:p></p>

<p><font size=3 color=navy face="Palatino Linotype"><span Palatino><span
style='font-size:12.0pt;font-family:"Palatino Linotype";color:navy'>I will not
be able to look at this until early next week (with IDF running this week), but
I will try to do so.   So, it wouldn't surprise me if the
receive side accepted an invalid RMPP MAD.</span></span></font><o:p></o:p></p>

<p><font size=2 color=navy face=Arial><span style='font-size:10.0pt;font-family:
Arial;color:navy'>- Sean</span></font><o:p></o:p></p>

</div>

</div>

</div>

</body>

</html>