<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 15 (filtered medium)">
<!--[if !mso]><style>v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style><![endif]--><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;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;}
span.EmailStyle17
        {mso-style-type:personal-compose;
        font-family:"Calibri",sans-serif;
        color:#4472C4;}
p.xxxxmsonormal, li.xxxxmsonormal, div.xxxxmsonormal
        {mso-style-name:x_xxxmsonormal;
        margin:0cm;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;}
p.xmsonormal, li.xmsonormal, div.xmsonormal
        {mso-style-name:x_msonormal;
        margin:0cm;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-family:"Calibri",sans-serif;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:72.0pt 72.0pt 72.0pt 72.0pt;}
div.WordSection1
        {page:WordSection1;}
--></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="#0563C1" vlink="#954F72" style="word-wrap:break-word">
<div class="WordSection1">
<p class="xxxxmsonormal"><span style="color:#4472C4">Hi,</span><o:p></o:p></p>
<p class="xxxxmsonormal"><span style="color:#4472C4"> </span><o:p></o:p></p>
<p class="xxxxmsonormal"><span style="color:#4472C4">Can you please share the motivation of not filling l2/l3-len fields on PMD’s RX function?</span><o:p></o:p></p>
<p class="xxxxmsonormal"><span style="color:#4472C4">PMD already filling the mbuf with parsing info, and the l2/l3-len are also probably part of the HW descriptor, so why no propagate them as well?<o:p></o:p></span></p>
<p class="xmsonormal"><span style="color:#4472C4">The current way for application to find the l2_len (for example) is to examine the ptype using multiple if statement.<o:p></o:p></span></p>
<p class="xmsonormal"><span style="color:#4472C4">However, this may not always work if there are unknown/user headers (e.g. DSA header).<br>
in addition, some of the examples are not checking the ptype and assumes a specific packet structure.<br>
e.g. l3-fwd, assumes only ethernet header exist and hardcoded jump by 14B to access the IP header.<br>
but if VLAN exist it will fail.<o:p></o:p></span></p>
<p class="xmsonormal"><span style="color:#4472C4">checking the l2_len will work in any case.</span><o:p></o:p></p>
<p class="xxxxmsonormal"><o:p> </o:p></p>
<p class="MsoNormal"><span style="color:#4472C4">Regards,<o:p></o:p></span></p>
<div>
<div>
<div>
<p class="MsoNormal"><b><span style="font-size:10.0pt;font-family:"Arial",sans-serif;color:black">Liron Himi</span></b><b><span style="font-size:10.0pt;font-family:"Arial",sans-serif;color:black"><br>
<br>
</span></b><span style="font-size:10.0pt;font-family:"Arial",sans-serif;color:black"><o:p></o:p></span></p>
<p class="MsoNormal"><a href="https://www.marvell.com/"><span style="font-size:9.0pt;font-family:"Arial",sans-serif;color:black;text-decoration:none"><img border="0" width="125" height="36" style="width:1.302in;height:.375in" id="Picture_x0020_1" src="cid:image003.jpg@01D8110E.BA3F6200" alt="A picture containing clipart

Description automatically generated"></span></a><span style="font-size:9.0pt;font-family:"Arial",sans-serif;color:black">
<br>
</span><span style="font-size:10.0pt;font-family:"Arial",sans-serif;color:black"><br>
Park Azorim, Kyriat Arie, Petah Tikva, 49527, Israel<br>
Mobile: +972.52.3329169<o:p></o:p></span></p>
</div>
</div>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
</body>
</html>