<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)">
<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;
mso-fareast-language:EN-US;}
span.EmailStyle17
{mso-style-type:personal-compose;
font-family:"Calibri",sans-serif;
color:windowtext;}
.MsoChpDefault
{mso-style-type:export-only;
font-family:"Calibri",sans-serif;
mso-fareast-language:EN-US;}
@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-IN" link="#0563C1" vlink="#954F72" style="word-wrap:break-word">
<div class="WordSection1">
<p class="MsoNormal"><span lang="EN-US">Hi All,<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"> Need inputs on using rte_hash_table.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">Created hash table to store the mbuf as data and the key is sequence number.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">Hashtable size is 8096 I have stored the 200packets which was received.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">There is no error in during insert.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">While I am trying to do lookup using loop (rte_hash_lookup_data) it is only working for first 63 entries .<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">For 64<sup>th</sup> time lookup failed to return data for the given key.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">This is happen exactly for the 64<sup>th</sup> entry not for the particular key value .<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">Whatever keys stored after 63<sup>rd</sup> I am not able fetch using rte_hash_lookup_data.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">If I do the rte_hash_iterate() , I able to get the all the entries stored in the hash table.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">Could any please tell me why the lookup not returning data even though the data and key is present in the table.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">Hash table details:<o:p></o:p></span></p>
<p class="MsoNormal"><b><span lang="EN-US">#define MAX_INNER_ENTRIES 8096<o:p></o:p></span></b></p>
<p class="MsoNormal"><b><span lang="EN-US">mempool MEMPOOL3 buffer 2304 pool 4096k cache 128 cpu 0 (create using command line)<o:p></o:p></span></b></p>
<p class="MsoNormal"><b><span lang="EN-US"><o:p> </o:p></span></b></p>
<p class="MsoNormal"><span lang="EN-US">struct rte_hash_parameters mbuf_hash_params = {<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"> .name = NULL,<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"> .entries = MAX_INNER_ENTRIES,<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"> .key_len = sizeof(uint32_t),<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"> .hash_func = rte_hash_crc,<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"> .hash_func_init_val = 0,<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"> .extra_flag = RTE_HASH_EXTRA_FLAGS_MULTI_WRITER_ADD | RTE_HASH_EXTRA_FLAGS_RW_CONCURRENCY,<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">};<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
</div>
</body>
</html>