<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:0in;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;
        mso-ligatures:standardcontextual;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:#0563C1;
        text-decoration:underline;}
span.EmailStyle20
        {mso-style-type:personal-reply;
        font-family:"Calibri",sans-serif;
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
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="MsoNormal">Yes, for auth cases, the PMD may give errors. However, cipher only cases would work without issues.<o:p></o:p></p>
<p class="MsoNormal">You can send a patch to fix this. But make sure not to add that inside the time keeping loop.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<div style="border:none;border-left:solid blue 1.5pt;padding:0in 0in 0in 4.0pt">
<div>
<div style="border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0in 0in 0in">
<p class="MsoNormal"><b><span style="mso-ligatures:none">From:</span></b><span style="mso-ligatures:none"> Suanming Mou <suanmingm@nvidia.com>
<br>
<b>Sent:</b> Friday, July 21, 2023 5:23 PM<br>
<b>To:</b> Akhil Goyal <gakhil@marvell.com>; ciara.power@intel.com<br>
<b>Cc:</b> dev@dpdk.org<br>
<b>Subject:</b> [EXT] RE: crypto decryption support in test-crypto-perf pmd-cycle-count test<o:p></o:p></span></p>
</div>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><span style="font-size:18.0pt;color:red;mso-ligatures:none">External Email</span><span style="mso-ligatures:none">
<o:p></o:p></span></p>
<div class="MsoNormal" align="center" style="text-align:center"><span style="mso-ligatures:none">
<hr size="2" width="100%" align="center">
</span></div>
<p class="MsoNormal">Thanks Akhil.<o:p></o:p></p>
<p class="MsoNormal">Yes, I see.<o:p></o:p></p>
<p class="MsoNormal">But for decryption, we should prepare the correct cipher data, right? Or that test does not make any sense.<o:p></o:p></p>
<p class="MsoNormal">I assume decryption with incorrect data will cause PMD reject work properly.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<div style="border:none;border-left:solid blue 1.5pt;padding:0in 0in 0in 4.0pt">
<div>
<div style="border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0in 0in 0in">
<p class="MsoNormal"><b><span style="mso-ligatures:none">From:</span></b><span style="mso-ligatures:none"> Akhil Goyal <<a href="mailto:gakhil@marvell.com">gakhil@marvell.com</a>>
<br>
<b>Sent:</b> Friday, July 21, 2023 7:49 PM<br>
<b>To:</b> Suanming Mou <<a href="mailto:suanmingm@nvidia.com">suanmingm@nvidia.com</a>>;
<a href="mailto:ciara.power@intel.com">ciara.power@intel.com</a><br>
<b>Cc:</b> <a href="mailto:dev@dpdk.org">dev@dpdk.org</a><br>
<b>Subject:</b> RE: crypto decryption support in test-crypto-perf pmd-cycle-count test<o:p></o:p></span></p>
</div>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Hi Suanming,<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">The pmd-cycle-count mode is for counting the cycles for enqueue and dequeue.<o:p></o:p></p>
<p class="MsoNormal">It does not matter what is the content of the packet, as we are not validating the content<o:p></o:p></p>
<p class="MsoNormal">after dequeue of the packet. PMD/Hw will assume it as plain/encrypted payload and<o:p></o:p></p>
<p class="MsoNormal">will process it as per the session attached.<o:p></o:p></p>
<p class="MsoNormal">Hence, doing memcpy to mbuf is not required.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Regards,<o:p></o:p></p>
<p class="MsoNormal">Akhil<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<div style="border:none;border-left:solid blue 1.5pt;padding:0in 0in 0in 4.0pt">
<div>
<div style="border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0in 0in 0in">
<p class="MsoNormal"><b><span style="mso-ligatures:none">From:</span></b><span style="mso-ligatures:none"> Suanming Mou <<a href="mailto:suanmingm@nvidia.com">suanmingm@nvidia.com</a>>
<br>
<b>Sent:</b> Friday, July 21, 2023 4:06 PM<br>
<b>To:</b> <a href="mailto:ciara.power@intel.com">ciara.power@intel.com</a>; Akhil Goyal <<a href="mailto:gakhil@marvell.com">gakhil@marvell.com</a>><br>
<b>Cc:</b> <a href="mailto:dev@dpdk.org">dev@dpdk.org</a><br>
<b>Subject:</b> [EXT] crypto decryption support in test-crypto-perf pmd-cycle-count test<o:p></o:p></span></p>
</div>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><span style="font-size:18.0pt;color:red;mso-ligatures:none">External Email</span><span style="mso-ligatures:none">
<o:p></o:p></span></p>
<div class="MsoNormal" align="center" style="text-align:center"><span style="mso-ligatures:none">
<hr size="1" width="100%" align="center">
</span></div>
<p class="MsoNormal">Hi Guys,<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Sorry for the inconvenience.<o:p></o:p></p>
<p class="MsoNormal">I have one small question with pmd-cycle-count test in test-crypto-perf application.<o:p></o:p></p>
<p class="MsoNormal">As in pmd-cycle-count run code, I don’t see the cperf_mbuf_set() function is called to fill the test data.<o:p></o:p></p>
<p class="MsoNormal">So for decryption, I assume it will always fails. Feel like pmd-cycle-count test does not expect to support decryption. Or is it a bug?<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">I have no idea with the application design background, is it expected?<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Thanks,<o:p></o:p></p>
<p class="MsoNormal">Suanming Mou<o:p></o:p></p>
</div>
</div>
</div>
</div>
</body>
</html>